Jump to content


This topic is now archived and is closed to further replies.


Function session_is_registered() is deprecated

Recommended Posts

Hi there!


My OSCommerce version: 'osCommerce 2.2-MS2'

Server PHP Version: 5.3

Domain in question: http://telecom.gtbinc.ca


What I use to get in my computer:

All languages was working, and I could see Item details.


>> I uploaded everything in the server >>


What I have now:


Deprecated: Function session_is_registered() is deprecated in /home/g/gtbinc/html/telecom/catalog/includes/functions/sessions.php on line 111


now my "sessions.php on line 111"


	function tep_session_register($variable) {
if (PHP_VERSION < 1.3) {
  return session_register($variable);
} else {
  if (isset($GLOBALS[$variable])) {
	$_SESSION[$variable] =& $GLOBALS[$variable];
  } else {
	$_SESSION[$variable] = null;

return false;

 function tep_session_is_registered($variable) {
if (PHP_VERSION < 4.3) {
  return session_is_registered($variable);
} else {														   /* THAT'S LINE 111*/
  return array_key_exists($variable, $_SESSION);

 function tep_session_unregister($variable) {
if (PHP_VERSION < 4.3) {
  return session_unregister($variable);
} else {



I search on the net and I found:

In includes/application_top.php and admin/includes/application_top.php >

REPLACE: error_reporting(E_ALL & ~E_NOTICE)

WITH: error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);


Now That takes the warning out... but all the links to other languages and all are still broken <_<


Someone have an idea?

Share this post

Link to post
Share on other sites


Hello experts,


I have exactly same problem. I installed my MS2.2 template in a php5.3.0 server.


I did what is mentioned above to change this functions






and the links are broken.


Is there any way to fix this?


Thanks in advance!



Share this post

Link to post
Share on other sites