7.2.2 MAX on Windows Server 2008 with IIS, PHP 5.3
Was a fresh install a couple months ago, with some customizing since then.
Iām puzzled by an issue I canāt resolve. Iāve made a workflow where the action is Send Email upon New Record. When the proper record is saved, it does get created, but the email isnāt sent, and the user is taken only to a blank page.
With error logging set to Error, nothing appears in the CRM log. At the PHP log, I see:
PHP Fatal error: Class name must be a valid object or a string in C:\inetpub\wwwroot\suitecrm\modules\AOW_Actions\actions\templateParser.php on line 110
Iāve learned a lot in the past year, but am not adept enough to figure out exactly what the problem here is. Not sure it isnāt file permission issues, or something else. When I look in that file, here are the lines Iām seeing:
Here it is. I have it inactive since it causes that issue, and set to me instead of the user Andy for now.
Also, the same issue occurs if I pick any of the stock (yet irrelevant) templates, too.
Can that userās E-mail address successfully receive E-mails? You can test it by Going to Admin > Email Settings and Sending a Test E-mail with their address.
If the E-mail is received then it is likely that the issue lies with your chosen E-mail Template as it is not one that comes with SuiteCRM.
If you have any Templates you can test with then you could Send an E-mail using those, this would act as testing to see if it is the āNew Opportunity Alertā Template causing Issue
I edited my last reply to include that Iāve tried the other templates with the same result. And the user thatās on the workflow now is myself, and I do successfully receive other emails from the system.
It may be worth re-checking that your permissions and owner/group user settings are correct.
Also, In your config.php file, ensure that :
dir_mode => 1517
file_mode => 420
Do any errors appear in the console during the process, even at the blank screen? You can open the console with ctrl+shift+k in firefox
I canāt seem to edit my last reply ā I wanted to correct it to add new info:
Iāve started a XAMPP (Apache) installation to test with, inside a Windows Server 2008 machine. I copied my entire SuiteCRM prod folder into it. Now I see some more info when my workflow with email gets triggered - the browser only shows a page with these, from the PHP error log:
Warning: require_once(C:\XAMPP\xampp\htdocs\crm) [function.require-once]: failed to open stream: Permission denied in C:\XAMPP\xampp\htdocs\crm\modules\AOW_Actions\actions\templateParser.php on line 109
Fatal error: require_once() [function.require]: Failed opening required āā (include_path=āC:\XAMPP\xampp\htdocs\crm;C:\XAMPP\xampp\htdocs\crm\include\HTMLPurifier/standalone;C:\XAMPP\xampp\htdocs\crm\include/ā¦;.;C:\XAMPP\xampp\php\PEAR;modules/AOD_Index/Libā) in C:\XAMPP\xampp\htdocs\crm\modules\AOW_Actions\actions\templateParser.php on line 109