[color=“#800080”][font=“Comic Sans MS”]I recently posted about some serious error messages that were blatant in admin and in the front end. It was determined it was a server issue and my hosting company was able to quell the problem…thankfully
BUT now I just started getting the following error in the order emails to me AND the customer whenever they include any comments in the order process text box:[/font][/color]
Deprecated: Function split() is deprecated in /home/affyours/public_html/core/templater_plugins/modifier.wordwrap.php on line 26
[color=“#800080”][font=“Comic Sans MS”]My host claims it is a coding problem and they do not provide any coding assistance. So unless I can find a solution, the error is probably going to be a permanent resident in my order emails…and it is embarrassing
Does anyone know why all of a sudden this would happen…and what I can do about it ?[/font][/color]
You can add a line at the end of your config.local.php file that will prevent the display, but the correct solution is for cs-cart to fix the code.
You can add lines of:
if( CONTROLLER == 'orders' )
error_reporting(error_reporting() & ~E_DEPRECATED);
Actually, upon further review it seems that your site is running PHP 5.3. You should already have lines in your config.local.php file of:
if (version_compare(PHP_VERSION, "5.3.0", ">=")) {
error_reporting(error_reporting() & ~E_DEPRECATED);
}
If not, then something has gotten missed in the upgrade process and you should add that line right after the define for 'AUTH_CODE'.
[quote name=‘tbirnseth’ timestamp=‘1311371512’ post=‘118030’]
You can add a line at the end of your config.local.php file that will prevent the display, but the correct solution is for cs-cart to fix the code.
You can add lines of:
<br />
if( CONTROLLER == 'orders' )<br />
error_reporting(error_reporting() & ~E_DEPRECATED);<br />
```<br />
<br />
Actually, upon further review it seems that your site is running PHP 5.3. You should already have lines in your config.local.php file of:<br />
```php
<br />
if (version_compare(PHP_VERSION, "5.3.0", ">=")) {<br />
error_reporting(error_reporting() & ~E_DEPRECATED);<br />
}<br />
```<br />
<br />
If not, then something has gotten missed in the upgrade process and you should add that line right after the define for 'AUTH_CODE'.<br />
[/quote]<br />
<br />
[color="#800080"][font="Comic Sans MS"]Thanks SO much for responding <img src="upload://yGrKuhdxbbf2nIFvV2XDJuEFQb7.gif" class="bbc_emoticon" alt=":)"><br />
<br />
There was nothing AFTER Auth_Code, but I found this above most of the coding there:[/font][/color]<br />
<br />
//if (version_compare(PHP_VERSION, '5.3.0', '>=')) {<br />
// error_reporting(error_reporting() & ~E_DEPRECATED);<br />
//}<br />
<br />
[color="#800080"][font="Comic Sans MS"]Am I to assume the forward slashes mean it is commented out ? I did add it again at the bottom as you suggested[/font][/color]
Yes, remove the slashes and you will probably be just fine.
I'm guessing you do not (or have not) tried the printing as PDF functionality since it would generate thousands of errors related to deprecated functionality without the error_reporting() changes.
[quote name=‘tbirnseth’ timestamp=‘1311376849’ post=‘118040’]
Yes, remove the slashes and you will probably be just fine.
I’m guessing you do not (or have not) tried the printing as PDF functionality since it would generate thousands of errors related to deprecated functionality without the error_reporting() changes.
[/quote]
[color=“#800080”][font=“Comic Sans MS”]No I have never delved into the PDF functionality…in fact don’t even know how to go about it
Thanks so VERY much for your help ! You saved my sanity one more time[/font][/color]