Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Function session_is_registered() is deprecated


fryser_d

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:

5X

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 {
  unset($_SESSION[$variable]);
}
 }

 

 

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?

Link to comment
Share on other sites

  • 1 month later...

 

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

 

tep_session_registerand

tep_session_is_registered

tep_session_unregister

 

and the links are broken.

 

Is there any way to fix this?

 

Thanks in advance!

 

Cole

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...