Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals is disabled in php.i


student

Recommended Posts

Help!

 

Having problem fresh installing the package on Win 2000 running Apache 2.0.52

 

I followed the instruction, copy the unzip catalog folder to my server root C:\www\webroot\catalog. When doing the "http://localhost/catalog/", I got this fetal error:

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

then I went to the C:/WINNT/php.ini and make change of this line into the file:

 

register_globals = on

 

 

reboot the PC, run the install again, STILL getting the same error!

 

I am lost, could any one provide a hint what I was missing!!!

 

let me know if you need more info about my problem.

 

 

Thanks.

 

John :(

Link to comment
Share on other sites

Do a file search of your computer, because there may well be more than one copy of php.ini - in which case edit them all. Secondly the setting should be On and not on (capital S not small s).

 

Vger

Link to comment
Share on other sites

Thanks for answering.

 

Vger,

 

I searched the whole C:\ and found

 

C:\WINNT\php.ini

C:\www\php\php.ini-dist

C:\www\php.ini-recommended

 

changed the line into: register_globals = On

 

on all these three files (although don't think the last two are relevent, and letter up/low case being a matter on Window machines)

 

calling from IE: http://localhost/catalog/

 

still getting the same error:

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

:( :(

 

 

Paul,

 

could you provide more specific about how to remove the register globals requirement ?

Following your link, I downloaded the zip file: Register Globals Patch Files.zip,

but not sure how to process next with the file.

 

 

 

John

Link to comment
Share on other sites

First of all, run the following script in a file in your web root. (i.e. myphp.php)

 

<?php

phpinfo();

?>

 

This will list out EXACTLY which file and path the apache server is looking for. It may be looking at c:\www\php\php.ini and you still have it named c:\www\php\php.ini-dist.

 

It may be as simple as renaming c:\www\php\php.ini-dist to c:\www\php\php.ini

 

 

Once you know the exact path it should be easy from there. Don't forget to restart apache.

 

HTH

Tom

Link to comment
Share on other sites

Hi,

 

Applying the patches contained in this suggested "Register Globals Patch Files.zip" fixed my problem. Now I can process my osCommerce installation, although not knowing what this "removing the register globals requirement" means in terms of system seurity.

 

 

The patching requres that the "register_globals = Off" be kept in the php.ini.

 

 

Thanks all that spending times to answer my questions.

 

 

John

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...