Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

PHP upgrade has caused errors with my shop(s)


Recommended Posts

Hi there,

I have had to upgrade to the latest version of PHP 5 (). However this is causing some problems with OS commerce builds on the server. I am getting the following error message when first entering a shop:


Deprecated: Function eregi() is deprecated in /home/jetstrea/public_html/catalog/admin/includes/classes/language.php on line 87


If I refresh the page the issue goes.


However I also get an error on trying to add a product as follows...


Deprecated: Function ereg() is deprecated in /home/jetstrea/public_html/catalog/includes/functions/general.php on line 1094

Warning: Cannot modify header information - headers already sent by (output started at /home/jetstrea/public_html/catalog/includes/functions/general.php:1094) in /home/jetstrea/public_html/catalog/includes/functions/general.php on line 33


If I hit 'back' I can return to the shop and the product is added.


I can see that this is because the new PHP does not have functions that are mentioned in the code. I will be intending to thus upgrade these shops - but what I need to do in the meantime is quickly fix this by addign in updated files - does anyone know if there are files that can get around this issue and if so where can I find them? There are some shops that have a lot of mods and thus it would be great to be able to just use the files needed to keep thing simple for the short term.


Any help gratefully recieved.

Link to comment
Share on other sites



to hide notices: in includes/application_top.php and admin/includes/application_top.php




 //set the level of error reporting
 error_reporting(E_ALL & ~E_NOTICE);


replace with:


//set the level of error reporting
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);


or there is this thread on how to replace the deprecated regex extension functions.






Remember, What you think I ment may not be what I thought I ment when I said it.




Auto Backup your Database, Easy way


Multi Images with Fancy Pop-ups, Easy way


Products in columns with multi buy etc etc


Disable any Category or Product, Easy way


Secure & Improve your account pages et al.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...