Welcome to WebmasterWorld Guest from 107.20.54.98

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

URGENT HELP! - oscommerce and 4.4.5 support

my host has upgraded to PHP 4.4.5 and broken my site

     
8:24 am on Mar 22, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:May 24, 2004
posts:103
votes: 0


The site is offline! Does anyone know what i need to do to get the site up and running under this version?

Thanks

Marcus

10:00 am on Mar 22, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Jan 16, 2007
posts:914
votes: 0


They may have taken the opportunity to trun register_globals off. If that's it, as a quick fix to get back online you can do this at the top of each script:
foreach($_POST as $vbl => $val)
$$vbl = $val;

Then repeat as necessary for $_GET, $_SERVER, $_COOKIE...
Afterward, you can start going through each script and fixing them.

11:00 am on Mar 22, 2007 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


Also remember to check your error logs as it will provide some information as to what is going on so you can make necessary changes to configuration settings, etc...
11:04 am on Mar 22, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:May 24, 2004
posts:103
votes: 0


The webhost has said php safe mode has also been turned on.

Any ideas what oscommerce files / config or otherwise i need to make these changes to?

thanks for your posts

Marcus

11:38 am on Mar 22, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts:4388
votes: 2


There are a few fixes about it available all over the place.

Years ago I used it

do a search with global and oscomm
also the fix is somewhere discussed on their forum.

search with exactly "oscommerce register globals patch"

12:13 pm on Mar 22, 2007 (gmt 0)

Junior Member

10+ Year Member

joined:May 24, 2004
posts:103
votes: 0


hi, so are we saying this is 100% to do with the register_globals? i see there is a contrib available for register globals, i just want to be sure that since my host has upgraded to PHP 4.4.5 applying the register global fix will help me?

Is there anyone with 1st hand knowledge of this?

excuse my ignorance but how long has PHP version 4.4.5 been around?

1:29 pm on Mar 22, 2007 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0


do you know what version of php they upgraded from?

you could check the docs on the version of oscommerce you use to see if it relies on register_globals being on.

you could pick through the code to find out but that may take forever.