♥FWR Media Posted November 10, 2009 Share Posted November 10, 2009 I just posted this somewhere but thought it was worth its own post as we'll be seeing more posts asking what they should do with this error. Simple .. catalog/includes/application_top.php line 17(ish) Find .. error_reporting(E_ALL & ~E_NOTICE); Change to .. error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); Note: Eventually (in a few years) when PHP 6 becomes mainstream you will have to deal with the deprecated functions in osCommerce, but for now this is fine. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
MrPhil Posted November 10, 2009 Share Posted November 10, 2009 These: http://www.oscommerce.com/forums/topic/341737-function-ereg-replace-is-deprecated/page__p__1434612__hl__eregi%20deprecated__fromsearch__1entry1447311 and http://www.oscommerce.com/forums/topic/342525-page-script-error/page__p__1430745entry1430745 list various fixes needed to deal with the deprecated functions and avoid the messages in PHP 5.3+. Of course, just turning off the warnings will also work for the time being (until you go to PHP 6), but that is a bit risky in that you might forget to deal with the problem until it's too late. I guess the best course of action would be to turn off the warnings AND tie a string around your finger (very tightly) to remind you to deal with the problem soon. Turn the warnings back on after fixing the code, so that anything else that shows up can be caught. Link to comment Share on other sites More sharing options...
♥FWR Media Posted November 10, 2009 Author Share Posted November 10, 2009 I guess the best course of action would be to turn off the warnings AND tie a string around your finger (very tightly) to remind you to deal with the problem soon :D Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Mark Evans Posted November 10, 2009 Share Posted November 10, 2009 I would expect all functions being depreciated to be long gone in osCommerce way before PHP6 is released Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds) Link to comment Share on other sites More sharing options...
♥FWR Media Posted November 10, 2009 Author Share Posted November 10, 2009 I would expect all functions being depreciated to be long gone in osCommerce way before PHP6 is released Well that's nice Mark .. but as is the norm with the average osC user most of the sites out there sadly will not be on your shiny new code. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
FIMBLE Posted November 10, 2009 Share Posted November 10, 2009 See here also http://github.com/osCommerce/oscommerce2 Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Mark Evans Posted November 10, 2009 Share Posted November 10, 2009 but as is the norm with the average osC user most of the sites out there sadly will not be on your shiny new code. v2,2 is being made PHP 5.3 compatible (and actually already is in github) which will fix all of the current depreciated warnings. I can't speak for PHP 6 since we are unlikely to see that in the wild for another 18 months at least but looking at the list of things depreciated most could be fixed way before then. Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.