Page 1 of 1

Error: register_globals is enabled!

Posted: Sun Aug 05, 2007 7:11 am
by suhbah
HELLO THERE,

i a new user for this cms. i have a problem after installation. the messege is Error: register_globals is enabled!.

how to seatle my problem..

thanks

Re: Error: register_globals is enabled!

Posted: Sun Aug 05, 2007 6:23 pm
by daydreamer
Hi is your register globals turned of in htaccess ???

Re: Error: register_globals is enabled!

Posted: Sun Aug 05, 2007 8:07 pm
by BFTUK
Creat a file called php.ini and insert the following in it:

Code: Select all

register_globals=off
You'll need this in your cart's root directory and the admin directory at a mimimum, but for general security its best to have registered globals off full stop.

Re: Error: register_globals is enabled!

Posted: Mon Nov 05, 2007 5:24 am
by iwebfocus
I just wanted to add that the php.ini file will need to be copied in each directory that the register_globals are being checked.

I had tried everything and my hosting company stated that as long as I put a php.ini in the root that should work. Well it didn't!!

I had to copy the php.ini with the correct line in the install directory for the setup to work.

Re: Error: register_globals is enabled!

Posted: Mon Nov 05, 2007 10:42 am
by caldazar
Ahh - that's it. Thanks iwebfocus! :)

Re: Error: register_globals is enabled!

Posted: Tue Dec 04, 2007 6:08 am
by krbmedia
BFTUK wrote: Creat a file called php.ini and insert the following in it:

Code: Select all

register_globals=off
You'll need this in your cart's root directory and the admin directory at a mimimum, but for general security its best to have registered globals off full stop.
What permission should the php.ini file be?

Re: Error: register_globals is enabled!

Posted: Sun Dec 09, 2007 3:34 pm
by petpetep
when you install opencart you must copy this file in
/..
/install
/admin
php.ini wrote:register_globals = off
error_log=error_log
log_errors=On
error_reporting = E_ALL & ~E_NOTICE
expose_php = Off
output_buffering = Off
max_input_time = 60
safe_mode=off
variables_order = "EGPCS"
extension_dir = "./"
this is what i use

Re: Error: register_globals is enabled!

Posted: Sun Dec 09, 2007 9:12 pm
by krbmedia
What permissions? 644 or 444

Re: Error: register_globals is enabled!

Posted: Wed Dec 12, 2007 2:22 am
by petpetep
i use 644

Re: Error: register_globals is enabled!

Posted: Sat Dec 15, 2007 5:07 am
by Buena Llave
I am getting the same error:

Error: register_globals is enabled

I created a php.in as indicated above and placed one in the root, one in the /admin and one in the /install folder then reinstalled the cart.  I still get the same error. I am using the older version 06.5 and the server has PHP 4.3 installed. What does everyone mean when the say to change the .htaccess file? Can I do that from myPHPadmin or should I be able to inclued the php.ini and it should, in theory turn off the register_globals.

Also, I contacted my host and they turned register_globals off and then sent me the following:



Register Globals and Magic Quotes GPC have been turned off for bluecreekmedia.com using the following directives in the .htaccess file in the root of your public_html folder. Let me know if you need anything further.

php_value register_globals off
php_value magic_quotes_gpc off


When I did a phpinfo from my directory it shows them as being off locally, However, when I install the cart the install.php still shows that they are enabled.

Any help from those of you who know something... :) would be helpful.

Re: Error: register_globals is enabled!

Posted: Tue Dec 18, 2007 4:53 am
by JohnnyO
if there is no .htaccess file in the root directory you are installing open cart, you may create one using a text editor.

Add this line to the text file you create (AddType x-mapp-php5 .php) without the (), Save the file and then rename it .htaccess. Upload this file to your open cart directory and it should work.

register_globals is disabled by default in php5. This should work in the case you are using a shared host and they offer php4 and php5.

If this doesn't work, replace the previous line in the .htaccess with (php_flag register_globals off) without the ()

Hope this helps. -JO