hi
i am new with OS Commerce
i have got this problem
" Deprecated: Function session_is_registered() is deprecated "
and i can not add products in my shopping cart also banner and few buttons (including checkout) are missing.
My PHP version 5.3.0
Mysql version 5.1.36
Apache Version 2.2.11
register_globals = off
safe_mode = off
please give me an idea how to solve the provlem
Thanks
regads
newuser101
Latest News: (loading..)
Deprecated: Function session_is_registered() is deprecated
Started by newuser101, Aug 31 2009 03:29 AM
2 replies to this topic
#1
Posted 31 August 2009 - 03:29 AM
#2
Posted 31 August 2009 - 04:20 AM
Its due to the version of php on your server,
In includes/application_top.php and admin/includes/application_top.php
find:
replace with:
In includes/application_top.php and admin/includes/application_top.php
find:
//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);
Sam
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
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.
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
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.
#3
Posted 31 August 2009 - 06:21 AM
It may also be due to the version of osCommerce in this case. The RC2a sessions file should not call session_is_registered in PHP versions of 4.3 or higher (and it's 5.3 that gives that warning):
function tep_session_is_registered($variable) {
if (PHP_VERSION < 4.3) {
return session_is_registered($variable);
} else {
return isset($_SESSION) && array_key_exists($variable, $_SESSION);
}
}Updating to the RC2a sessions file would fix this as well. It looks API compatible with the older file. So it should work as a drop in replacement, but I haven't tested it. Even better, if this is a new install, then start over with RC2a.
Always backup before making changes.









