I have installed a template and it says:
Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.
I have looked at the .htaccess file and not sure what to change. I have got:
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
Do i just change the 1 to a different number?
Please help
Page 1 of 1
Please Help! register_globals is disabled What to do?
#2
Posted 26 July 2009 - 09:54 AM
Hi,
Thanks for your message.
I would try adding the following into your .htaccess file:
If that doesn't work, try adding the same line into a php.ini file within the root of your website. (Possible security risk using the php.ini method?)
If the above fails may be worth contacting your host directly.
Thanks for your message.
I would try adding the following into your .htaccess file:
php_value register_globals Off
If that doesn't work, try adding the same line into a php.ini file within the root of your website. (Possible security risk using the php.ini method?)
If the above fails may be worth contacting your host directly.
#3
Posted 26 July 2009 - 12:01 PM
#<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule>
Is commented out, if this is what it's referring too, just uncomment the lines (by removing the #).
this line
php_value register_globals 1
will switch register_globals on.
However, all this is dependent on whether your host has enabled AllowOverrides for your account. If they haven't you either need to ask them to switch it on, or modify the .ini file to enable register_globals.
#4
Posted 27 July 2009 - 05:26 AM
It's unlikely that your hosts will switch Register_globals on. It's too much of a security risk. Register_Globals are now off by default.
Get a new template.
Get a new template.
#5
Posted 30 July 2009 - 10:38 PM
I'm guessing you're using OSCommerce whilst experiencing the register globals problem as you mentioned the catalog directory?
Here's a link for a contribution in OSCommerce to get around the issue.
http://www.oscommerc...tributions,5729
I had to use a similar thing myself for a client a couple of years ago and can confirm that it worked for me.
Hope this helps
Here's a link for a contribution in OSCommerce to get around the issue.
http://www.oscommerc...tributions,5729
I had to use a similar thing myself for a client a couple of years ago and can confirm that it worked for me.
Hope this helps
Share this topic:
Page 1 of 1
Help




















