Web Design Forum: Please Help! register_globals is disabled - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Please Help! register_globals is disabled What to do? Rate Topic: -----

#1 User is offline   Brad Brooks 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 53
  • Joined: 05-July 09
  • Reputation: 0
  • Gender:Male
  • Location:Newcastle
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 26 July 2009 - 09:30 AM

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
0

#2 User is offline   Ben 

  • Web Designer Forum Admin
  • View gallery
  • Group: Root Admin
  • Posts: 2,840
  • Joined: 24-August 06
  • Reputation: 102
  • Gender:Male
  • Location:Essex, UK
  • Experience:Intermediate
  • Area of Expertise:Web Designer

Posted 26 July 2009 - 09:54 AM

Hi,

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.
0

#3 User is offline   bocaj 

  • Retired
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 3,402
  • Joined: 11-January 09
  • Reputation: 99
  • Gender:Male
  • Location:New Sarum
  • Experience:Web Guru
  • Area of Expertise:Entrepreneur

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.
0

#4 User is offline   TopShopper 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 878
  • Joined: 21-July 09
  • Reputation: 14
  • Gender:Male
  • Location:Cardiff, UK
  • Experience:Intermediate
  • Area of Expertise:Coder

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.
0

#5 User is offline   dcman007 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 37
  • Joined: 29-July 09
  • Reputation: 2
  • Gender:Male
  • Location:Stoke on Trent, Staffordshire
  • Experience:Advanced
  • Area of Expertise:Web Designer

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
0

#6 User is offline   swg 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 02-August 09
  • Reputation: 0

Posted 02 August 2009 - 06:58 PM

View PostTopShopper, on 27 July 2009 - 05:26 AM, said:

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.


Agree completely, you shouldn't need RG on!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users