Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I've been reading the posts about the 'register globals' problem as I'm experiencing it and can't seem to find a way around the problem. I've installed the Register Globals contribution v1.11 and the problem still persists.

 

I'm running this on my XP box with Apache & php. Everything else seems to be working fine. Php indicates globals are off - but still I get

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

 

Any suggestions?

 

PeterDk

Posted (edited)

yes, if this is your own box then go into your windows folder and open up php.ini and search for register_globals and set to on.

 

you dont need to add any contributions for doing that if you are on your local box. just remove anything you installed relating to that.

Edited by Mibble
Posted

I should have added, before I installed the Register Globals plugin/contribution I did set the 'register globals to on' in php.ini and I had the same problem. Thats what prompted me to try the contribution.

 

Seems quite a few people have this problem, but not all - wonder why the difference? Anyways, I'm gettin very frustrated with it.

 

Hope someone can offer some other insight. Thanks for the comment Mibble!

 

PeterDk

Posted

Make sure you edited the correct copy of php.ini (search) - then restart your server :P

 

Matti

Posted

Ok, I located any vagrant instances of php.ini and renamed them - and then restarted the server. ARGGGGH - still the same problem. Even when I tried using the altered files from the Register Globals it still gave me the same message. Doing this I thought I might get a different message.....? After changing the various unused php.ini files I tried both globals on and off in the correct ini file - no change!

 

This is driving me nuts - I think we've covered most of the obvious fixes. Don't know where to go next......BUGGER!

 

PeterDk

Posted

I was just about to give up when I came across another post and gave it a try:

 

"There is a file in the install\includes folder called application.php

You need to comment out this:

 

CODE

// Check if register_globals is enabled.

// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized.

// if (function_exists('ini_get')) {

// ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');

// }"

 

At first glance this seems to work. The Register Globals contribution didn't seem to do the trick.

 

Thanks for the feedback - hopefully this one will do the trick.

 

PeterDK

Posted

that worked great for me by commenting out those lines you mention - I have just spent the last 4 - 5 hrs looking for a fix! - thank you. Sen ;)

Posted

I?m using a ENSIM. This server have a POWER TOOLS. OsCommerce is included on it. I don?t know where is the install\includes...

  • 1 month later...
Posted

My htaccess file already contains php_value register_globals 1 (isn't this supposed to overide the server settings?)

 

My server_info.php (from the osCommerce Adminarea) shows that:

 

Directive `Local Value Master Value

register_globals Off Off

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...