Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

php.ini register_globals Error - Quick Fix


ScrapbookSupplies

Recommended Posts

Posted

My first time to visit this board was because I had a problem logging into our osCommerce site after we installed it with Fantastico. I was getting a php.ini error, stating that the register_globals needed to be turned on. After searching everywhere, including this forum (where I found zillions of posts), I stumbled across one reply by "willfixitsolutions" that solved the problem in minutes - so I wanted to share, and do so in a clean post, so the next ones coming across this error do not have to spend so much time searching.

 

The 'fix' worked for both problems that I encountered (I had the error on the customer's side and the adminstration side), if you only have it on one than you should only need to do this once.

 

Open Text Pad or NotePad or any text editor,

 

Type in (or copy & paste) this exactly: register_globals = 1

 

Save file as: php.ini

 

Upload to the directory that you're having a problem with*

 

 

*This is where you may need to do it twice, once for the main directory and once for the admin. In my case I had to upload the file once into my /shop/ directory and once to my /admin/ directory.

 

Your problem should be resolved.

 

I hope this of help to all. Again, I didn't come up with it (I'm not so savvy :blush: ). I found this in another post, buried at the bottom. It was from "willfixitsolutions".

 

Best Wishes, this looks like a great forum!

Posted

Thanks SO much for posting this!

I had already searched a lot & changed all my htaccess files, with no success.

There WAS NO php.ini in my store's directory at all, so creating one with just that parm was all I needed.

Thanks again for finding the solution & posting it so obviously!

I'm a first-timer too...

  • 4 months later...
Posted
Thanks SO much for posting this!

I had already searched a lot & changed all my htaccess files, with no success.

There WAS NO php.ini in my store's directory at all, so creating one with just that parm was all I needed.

Thanks again for finding the solution & posting it so obviously!

I'm a first-timer too...

 

Thanks this solved one of my problems :thumbsup:

Posted

I solved this issue by removing all the # from the beginning of the lines in the .htaccess files in catalog and admin. This removed the error, in case the php.ini process doesn't work (as I saw was an issue in some posts).

Posted
I solved this issue by removing all the # from the beginning of the lines in the .htaccess files in catalog and admin. This removed the error, in case the php.ini process doesn't work (as I saw was an issue in some posts).

 

I've tried with php.ini and .htaccess but still having the same error:

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

 

 

I noticed a contribution: Register Globals

 

 

Do I need to install this, or the php.ini workaround works without the need

to install the contribution??

 

Thanks!

Archived

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

×
×
  • Create New...