"Send Email" Workflow Action fails in PHP8.0+ #5003

Open
opened 2026-02-20 16:27:44 -05:00 by deekerman · 0 comments
Owner

Originally created by @johnM2401 on GitHub (Apr 24, 2023).

Issue

When the user has a "Send Email" Workflow Action set.

If a record meets the set Conditions and the Workflow fires, (either by On-Save or Scheduler), it fails to send.

On-save records will show a white screen.

Cron runs show the following error:
image

Expected Behavior

Users should be able to send Emails via Workflow in PHP8

Actual Behavior

Emails cannot be sent via Workflow in PHP8, as an error occurs.

Steps to Reproduce

  1. Ensure System Emails are set up via Admin->Email Settings
  2. Create a Workflow on an Email-valid module, (ie: accounts)
  3. Set an Action to "Send Email" to a valid address
  4. Cause the workflow to fire, via On-save or Scheduled Job
  5. See that the Mail is not sent, and the item gets stuck at "Running"
    image

Your Environment

  • SuiteCRM Version used: 7.13.3
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Firefox 112.0.1
  • Environment name and version (e.g. MySQL, PHP 7): PHP8.0/Mariadb 10.4
  • Operating System and version (e.g Ubuntu 16.04): Ubuntu 18.04
Originally created by @johnM2401 on GitHub (Apr 24, 2023). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> <!--- Ensure that all code ``` is surrounded ``` by triple back quotes. This can also be done over multiple lines --> When the user has a "Send Email" Workflow Action set. If a record meets the set Conditions and the Workflow fires, (either by On-Save or Scheduler), it fails to send. On-save records will show a white screen. Cron runs show the following error: ![image](https://user-images.githubusercontent.com/13675281/233983006-5a5c172e-5890-41f4-a26c-229f9b91b3f7.png) #### Expected Behavior Users should be able to send Emails via Workflow in PHP8 #### Actual Behavior Emails cannot be sent via Workflow in PHP8, as an error occurs. #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Ensure System Emails are set up via Admin->Email Settings 2. Create a Workflow on an Email-valid module, (ie: accounts) 3. Set an Action to "Send Email" to a valid address 4. Cause the workflow to fire, via On-save or Scheduled Job 5. See that the Mail is not sent, and the item gets stuck at "Running" ![image](https://user-images.githubusercontent.com/13675281/233983629-5795f0b3-1a05-4cde-803b-aeb71d6e6e27.png) #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: 7.13.3 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Firefox 112.0.1 * Environment name and version (e.g. MySQL, PHP 7): PHP8.0/Mariadb 10.4 * Operating System and version (e.g Ubuntu 16.04): Ubuntu 18.04
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5003
No description provided.