Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FATAL ERROR: register_globals is disabled in php.i


Guest

Recommended Posts

Posted

Hi, i have a little problem getting into my site.

A error comes up saying

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

 

I dont know why,but i wana know how to fix it.

 

Help will be great,

 

Mbolli

Posted
youll have to edit the php.ini file

 

change in the /etc/php.ini or /etc/httpd/php.ini

 

Register Global = ON

 

 

I hear you,but i cant seem to find php.ini

Whats the best way yo get there??

Posted
Hi, i have a little problem getting into my site.

A error comes up saying

I dont know why,but i wana know how to fix it.

 

Help will be great,

 

Mbolli

Try editing the php file in C:\WINDOWS directory and set register_globes to ON

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted
Try editing the php file in C:\WINDOWS directory and set register_globes to ON

 

The webserver is not on a local machine man.

I went threw the ftp and went to /etc/ but didnt not find no php.ini.

Posted

who is your host?

 

if you do manage to find it The section you need in php.ini looks like this

 

Whether or not to register the EGPCS variables as global variables. You may

; want to turn this off if you don't want to clutter your scripts' global scope

; with user data. This makes most sense when coupled with track_vars - in which

; case you can access all of the GPC variables through the $HTTP_*_VARS[],

; variables.

;

; You should do your best to write your scripts so that they do not require

; register_globals to be on; Using form variables as globals can easily lead

; to possible security problems, if the code is not very well thought of.

register_globals = Off

 

; This directive tells PHP whether to declare the argv&argc variables (that

; would contain the GET information). If you don't use these variables, you

; should turn it off for increased performance.

register_argc_argv = On

 

Change

register_globals = Off

 

to

register_globals = On

 

and save it

Posted

ok try this this works only if you dont host your site yourself and it is on a public host

 

( folder /shop/incudes/)<normally>

 

open

apllication_top.php

 

delete

// check if register_globals is enabled.

// since this is a temporary measure

this message is hardcoded.

The requirement will be removed before 2.2 is finalized.

if (function_exists('ini_get')) {

ini_get('register_globals') or

exit('FATAL ERROR: register_globals

is disabled in php.ini, please enable it!');

}

 

 

 

and insert

if (!empty($HTTP_GET_VARS)) {

extract($HTTP_GET_VARS);

}

 

if (!empty($HTTP_POST_VARS)) {

extract($HTTP_POST_VARS);

}

 

if (!empty($HTTP_SERVER_VARS)) {

extract($HTTP_SERVER_VARS);

}

 

 

and save

Posted
ok try this this works only if you dont host your site yourself and it is on a public host

...

...or if you want a rather more secure fix, you could install the "register globals" contribution. :-)

 

Rich.

Posted
...or if you want a rather more secure fix, you could install the "register globals" contribution. :-)

 

Rich.

 

I've downloaded this but can't open it. Any suggestions?

 

Wendy

Wendy

 

 

Go on spread some sunshine!

Archived

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

×
×
  • Create New...