Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Popeye3165

Recommended Posts

Posted

Hello,

I have enabled the register_globals in both the php & html file and I'm still getting the FATAL ERROR: register_globals is disabled in php.ini, please enable it! error? What am I missing?

 

This is the php file:

register_globals = on

allow_url_fopen = off

 

expose_php = Off

max_input_time = 60

variables_order = "EGPCS"

extension_dir = ./

upload_tmp_dir = /tmp

precision = 12

SMTP = relay-hosting.secureserver.net

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

 

[Zend]

zend_extension=/usr/local/zo/ZendExtensionManager.so

zend_extension=/usr/local/zo/4_3/ZendOptimizer.so

 

This is the htaccess file:

# $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>

 

# If Search Engine Friendly URLs do not work, try enabling the

# following Apache configuration parameter

#

# AcceptPathInfo On

 

# Fix certain PHP values

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

# servers)

 

<IfModule mod_php5.c>

php_flag register_long_arrays On

php_flag register_globals On

php_flag display_errors Off

</IfModule>

 

<IfModule mod_php4.c>

php_value session.use_trans_sid 0

php_flag register_globals On

php_flag display_errors Off

php_flag track_errors On

</IfModule>

Posted

Hello,

This seems to work on a lot of sites

 

copy these two lines

 

register_globals = On

safe_mode = Off

 

 

Paste into Notepad

 

Save as include the quotes "php.ini" ( " " will stop it being saved as php.ini.txt)

 

Upload to your root, or catalog folder

 

Regards

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

I tried the method but it still doesnt work on my template.

Infact, my template doesn't have php.ini file and i added on myself with

register_globals = On

safe_mode = Off

upload it but still the same error.

Posted
I tried the method but it still doesnt work on my template.

Infact, my template doesn't have php.ini file and i added on myself with

register_globals = On

safe_mode = Off

upload it but still the same error.

 

 

Don't feel bad I've got the same problem and verified that my globals are on via phpinfo

Archived

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

×
×
  • Create New...