Thursday, April 21, 2011

session_register() is deprecated in oscommerce

Just open sessions.php file inside
catalog\includes\functions\

And find this line -
return session_is_registered($variable);

And replace with this line -
if (PHP_VERSION < 4.3) {
return session_is_registered($variable);
} else {
   
return isset($_SESSION) && array_key_exists($variable, $_SESSION);
}

No comments:

Post a Comment