[osCommerce] Register Globals MOD (Invalid argument supplie)

Discussions about MODs and Tips published on our web site.
ticinosoft
Posts: 1
Joined: Fri Mar 07, 2008 4:39 am

[osCommerce] Register Globals MOD (Invalid argument supplie)

Postby ticinosoft » Fri Mar 07, 2008 4:45 am

I've this problem with register globals easy:

I receive this error:

Warning: Invalid argument supplied for foreach() in /home/xxxxxx/web/includes/functions/sessions.php on line 141


This is the code in sessions.php around line 141

code at line 141:

Code: Select all

// Register Globals MOD - http://www.magic-seo-url.com  function tep_session_close() {    foreach($_SESSION as $key => $value) {      global $$key;      $_SESSION[$key] = $$key;    }  }

marker
Posts: 2
Joined: Tue Dec 09, 2008 2:23 pm

Re: [osCommerce] Register Globals MOD (Invalid argument supplie)

Postby marker » Tue Dec 09, 2008 2:24 pm

I have the same problem.

Any help appreciated, thanks.

Regards

marker
Posts: 2
Joined: Tue Dec 09, 2008 2:23 pm

Re: [osCommerce] Register Globals MOD (Invalid argument supplie)

Postby marker » Wed Dec 24, 2008 4:43 am

Any help, please?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [osCommerce] Register Globals MOD (Invalid argument supplie)

Postby inveo » Mon Oct 05, 2009 5:29 pm

Code: Select all

// Register Globals MOD - http://www.magic-seo-url.com  function tep_session_close() {    foreach($_SESSION as $key => $value) {      global $$key;      $_SESSION[$key] = $$key;    }  }


This has been fixed.

http://www.magic-seo-url.com/oscommerce ... s-off.html