homepage Welcome to WebmasterWorld Guest from 54.237.54.83
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
URGENT HELP! - oscommerce and 4.4.5 support
my host has upgraded to PHP 4.4.5 and broken my site
marcus76




msg:3289378
 8:24 am on Mar 22, 2007 (gmt 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

 

cameraman




msg:3289427
 10:00 am on Mar 22, 2007 (gmt 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.

eelixduppy




msg:3289457
 11:00 am on Mar 22, 2007 (gmt 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...

marcus76




msg:3289459
 11:04 am on Mar 22, 2007 (gmt 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

henry0




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

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"

marcus76




msg:3289493
 12:13 pm on Mar 22, 2007 (gmt 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?

jatar_k




msg:3289615
 1:29 pm on Mar 22, 2007 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved