PDA

View Full Version : FATAL ERROR php.ini



kHong
03-31-2008, 03:20 AM
So does anyone know what I should do when I run into the FATAL ERROR, global registers are not enabled in php.ini? I've read tons of posts on this in various forums and have tried to do what they've done but I still can't initiate my oscommerce install. I basically created a php.ini file via notepad, and input it into my catalog, catalog:admin, shop, shop:admin. Thanks!

felgall
03-31-2008, 11:57 AM
The best thing to do would be to look for a replacement script that was written more recently since it is many years since that option was turned off for security reasons (and the next version of PHP will not even have an option to turn on that security hole).

The other alternative would be to add the extra couple of lines of code that the script needs in order to work - assigning the appropriate $_GET and $_POST array values to the equivalent variable names.

Scripts where the author can't be bothered to make that simple fix are probably vulnerable to all sorts of harder to fix security nightmares as well.

kHong
03-31-2008, 01:35 PM
So how would I go about doing the second alternative? The editing the code part. And before I go on, thanks Felgall for helping me so much with my issues!

felgall
03-31-2008, 03:02 PM
I saw a mention recently that there is actually an add-on for oscommerce that will insert the additional code that you need and so finding that add-on would probably be the simplest solution.