After successfully setting up SMTP. When I try to send email I get the following error:
Deprecated: Non-static method EmailTemplate::_parseUserValues() should not be called statically, assuming $this from incompatible context in /home/XXXXXXX/public_html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 635
Deprecated: Non-static method EmailTemplate::_convertToType() should not be called statically, assuming $this from incompatible context in /home/XXXXXXX/public_html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 531
Deprecated: Non-static method EmailTemplate::parse_template_bean() should not be called statically, assuming $this from incompatible context in /home/XXXXXXX/public_html/suitecrm/modules/EmailTemplates/EmailTemplate.php on line 773
Deprecated: Non-static method EmailTemplate::_parseUserValues() should not be called statically, assuming $this from incompatible context in
But Iām also running 5.4 and things seem to work fine, so donāt take that as an absolute.
If you upgrade PHP, consider jumping directly to 7.0, but some testing ia advisable because some people (not necessarily many) mention having problems with PHP 7.0. Itās quite new in SuiteCRM, I guess itās a matter of giving it a little time so that all the problems get fixed.
If youāre not getting any functionality problems, I would just ignore those warnings in the logs. Those ādeprecatedā messages are just a way of slowly nudging people to update their code according to new standards; it doesnāt mean that the old code is going to break immediately - although it could, in a future PHP upgrade.
I am using PHP .5.6 and get this message when we send the email and other messages like this in other places.
This message is saying that some future version of PHP will not work with this.
This version does function correctly that why the email sent but the next version WILL NOT work the same. The code must change to work with PHP 7
PHP 7 will break some things BUT they warned us about this one.
I wanted to surpress these warnings so in index.php i un commented the error reporting line in index.php
and added the ones i didnāt want with a ~
I have the same problem. Using Php 7.0.
I can send emails, including templates emails, but I get that long list of warnings.
Furthermore, the cppy of the email saved in my sent box in my server gets the subject line fine, but the body is completely empty.
to avoid getting warning messages there are two ways to do it:
Edit php.ini (the location and the way you can modify it depends on you system)
change it to:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING
Edit index.php (in the SuiteCRM main folder)
Add the following line after the first line which should be: <?php
error_reporting(0);
You could also add the following line:
ini_set(āerror_reportingā, E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING);
Empty body
Unfortunately I am not able to help on this issue. However I think that others are experiencing similar issues so you should search the Forums o gitHub to find if there are other similar problems and if a fix has been developed.
Otherwise I hope someone that else helps.