Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals is disabled in.....


mwarren

Recommended Posts

I am getting this error everytime I go to the login page. I am using a shared server SSL. How do I fix this error? Thanks in advance!

 

error message:

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

Link to comment
Share on other sites

I think i had somethkng like that when i foirst installed and i believe that it's not your PHP.ini file....

 

at all...

if you are on a server ..witha hosting package...

you might have to deit the HTACCESS file...

Most HOSTS ...allow you to go to the INDEX page ..and that's it..

 

If you wanna log in .. it tries to load a different page .. and acces the DB...

Your HTACCES file ...(not sure...could have been something else..)

boots you back ...and does not ..return variables...

 

and you get that error...

 

Hope you are on a host server ..youccan then call the guys at your provider ...and just ask them to set the propper permissions!...

 

If that aint it ..they will be able to tell what you do need to do...

They probally get thatquestion for every new customer .. they HOSt

 

K?

 

But do let me know what it was ...now i am all currious ,.wheather my memory is palying tricks on me!

Link to comment
Share on other sites

I think i had somethkng like that when i foirst installed and i believe that it's not your PHP.ini file....

 

at all...

if you are on a server ..witha hosting package...

you might have to deit the HTACCESS file...

Most HOSTS ...allow you to go to the INDEX page ..and that's it..

 

If you wanna log in .. it tries to load a different page .. and acces the DB...

Your HTACCES file ...(not sure...could have been something else..)

boots you back ...and does not ..return variables...

 

and you get that error...

 

Hope you are on a host server ..youccan then call the guys at your provider ...and just ask them to set the propper permissions!...

 

If that aint it ..they will be able to tell what you do need to do...

They probally get thatquestion for every new customer .. they HOSt

 

K?

 

But do let me know what it was ...now i am all currious ,.wheather my memory is palying tricks on me!

 

 

If it is .htaccess this 2 new ones will do the trick. It worked for me, so give it a shot.

 

catalog/.htaccess make like this:

 

# $Id: .htaccess,v 1.2 2003/09/24 13:57:00 wilt Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)

 

<IfModule mod_php4.c>

php_value session.use_trans_sid 0

php_value register_globals 1

</IfModule>

 

 

and catalog/admin/.htaccess make like this:

 

# $Id: .htaccess,v 1.1.1.1 2003/09/18 19:02:10 wilt Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# Fix certain PHP values

 

#<IfModule mod_php4.c>

# php_value session.use_trans_sid 0

# php_value register_globals 1

#</IfModule>

 

 

Good Luck, Eangkarn

Link to comment
Share on other sites

Cool ..i just made a copy ..of your text for future reference,K?

 

I susspect that i wil install a new site in the future .. and by then have forgotten all about the solution.. and have to bugg ..the forum ..with something i actually know... So merci!

 

I had to ask the guys when i first installed..i was so newbeee...

but they thought it was easier just to do it for me ..and i am regretting it already.

Now i actually have a visual ..of how and what ...and it will help!

 

You rock!

 

Alx

Link to comment
Share on other sites

Cool ..i just made a copy ..of your text for future reference,K?

 

I susspect that i wil install a new site in the future .. and by then have forgotten all about the solution.. and have to bugg ..the forum ..with something i actually know... So merci!

 

I had to ask the guys when i first installed..i was so newbeee...

but they thought it was easier just to do it for me ..and i am regretting it already.

Now i actually have a visual ..of how and what ...and it will help!

 

You rock!

 

Alx

 

 

Thanks for all your help guys. I found a way to work around the globals if they are turned off. It is better for security issues anyways. The link is http://www.oscommerce.com/community/contributions,2097. I believe that this is a valuable contribution until MS 3 comes out.

 

I got over that hump, but I still have an issue. Now I am getting the error,

 

" Warning: mysql_connect(): Access denied for user: 'dandlgro_osc1@localhost' (Using password: YES) in /home/httpd/vhosts/sslcatacomb.com/web_users/dandlgroceries/shop/includes/functions/database.php on line 19

Unable to connect to database server!"

 

Can anybody help me on this????? :( :'(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...