This problem cropped up recently where an old os-commerce installation started showing “Deprecated function” errors all of a sudden. I think it coincided with a server and php upgrade here but the main reason is os-commerce being an old piece of software. The site functionality was fine but there was a shit load of php errors all over the place which totally messed up the design and layout:
Deprecated: Function ereg_replace() is deprecated in /home/nautybit/public_html/includes/classes/seo.class.php on line 1299
That particular line above is from a module I added to this os-commerce but there were other areas of the site showing errors for default os-commerce functions.
Basically, you need to turn off php error reporting in your script/app or at least change it to not show deprecated errors. I done that in os-commerce by editing the following lines in “includes/application_top.php” and “admin/includes/application_top.php”.
Change:
error_reporting(E_ALL & ~E_NOTICE);
To:
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
Leon