Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals... error


maxielit

Recommended Posts

Getting this error message in frontend (and backend)after installing a template:

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

 

And this message in backend after trying to solve the above error with the pnp.ini file fix in root + admin basically saying register_globals=ON:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: NO) in /home/aaefxse/public_html/shop/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

My .htaccess file:

 

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl 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>

 

 

 

Anyone have a nice solution to share to fix these errors would make my day... Please help anyone.

 

/M

Link to comment
Share on other sites

This works most of the time

 

Copy these two lines into notepad

 

register_globals = On

safe_mode = Off

 

save them as, and include the quotes

 

"php.ini"

 

Now upload to your directory, either root or catalog whichever your store is located in.

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

Thanks for Your answer Nic, but i have actually already tried uploading a php.ini file both to root and to admin (misspelled it in my last post wrote pnp it should be php..) with the same lines but it doesn't do the trick unfortunately (have manufrog and they always have safe mode off, a good and cheap hotel btw) so I guess I'm back at start again..

Link to comment
Share on other sites

Have you looked a t the contribution then, i expect it is much more detailed than the work around i gave you!

Something in the back of my mind on this... having a senior moment though and its not coming through!

If i rememeber i will put it here

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Link to comment
Share on other sites

i forgot which file to add this line...

 

php_flag register_globals on

 

but it works for me

 

 

I found it, on your public_html/.htaccess add the following.

 

# AddHandler application/x-httpd-php .php .htm .html

php_flag register_globals on

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...