osCommerce 2.2-MS2 not working on PHP 5.3



1) replace all occurences in all .php files:
$HTTP_COOKIE_VARS -> $_COOKIE
$HTTP_SERVER_VARS -> $_SERVER
$HTTP_SESSION_VARS -> $_SESSION
$HTTP_GET_VARS -> $_GET
$HTTP_POST_VARS -> $_POST


for i in $( find . -name '*.php' ) ; do sed -i 's/HTTP_COOKIE_VARS/_COOKIE/g' $i ; done
for i in $( find . -name '*.php' ) ; do sed -i 's/HTTP_SERVER_VARS/_SERVER/g' $i ; done
for i in $( find . -name '*.php' ) ; do sed -i 's/HTTP_SESSION_VARS/_SESSION/g' $i ; done
for i in $( find . -name '*.php' ) ; do sed -i 's/HTTP_GET_VARS/_GET/g' $i ; done
for i in $( find . -name '*.php' ) ; do sed -i 's/HTTP_POST_VARS/_POST/g' $i ; done


2) supress "deprecated" warning
in /shop/includes/application_top.php replace
// error_reporting(E_ALL & ~E_NOTICE);
with
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

Last update:
2012-06-05 16:50
Author:
Daniel
Revision:
1.2
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.