Guest Posted June 5, 2005 Share Posted June 5, 2005 I go to /catalog/install and get this message: FATAL ERROR: register_globals is disabled in php.ini, please enable it! I have been told by my server they won't enable it due to security risks. However if i add this code at the top it will work: // Emulate register_globals on if (!ini_get('register_globals')) { $superglobals = array($_SERVER, $_ENV, $_FILES, $_COOKIE, $_POST, $_GET); if (isset($_SESSION)) { array_unshift($superglobals, $_SESSION); } foreach ($superglobals as $superglobal) { extract($superglobal, EXTR_SKIP); } ini_set('register_globals', true); } is this true? If so where do I add it, cuz I might sound stupid but I can't find a file named php.ini Please help me Yours, Si Link to comment Share on other sites More sharing options...
crash3903 Posted June 5, 2005 Share Posted June 5, 2005 Simon The php.ini file is located on the server and you will not have access to it unless you get root access to the server - but as you are asking this i guess you are working on a shared hosting or managed server you need to put that at the top of the install files so it is the first thing that executes. Failing that set the store up in config.php which you will find in the includes folder or install this Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2005 Share Posted June 5, 2005 Simon The php.ini file is located on the server and you will not have access to it unless you get root access to the server - but as you are asking this i guess you are working on a shared hosting or managed server you need to put that at the top of the install files so it is the first thing that executes. Failing that set the store up in config.php which you will find in the includes folder or install this <{POST_SNAPBACK}> I have just done that and look at the error now : http://www.ukcruzin.co.uk/catalog/install/ Link to comment Share on other sites More sharing options...
♥Vger Posted June 5, 2005 Share Posted June 5, 2005 Remove that code you quoted in your original post - it's not going to do anything. Install the Register Globals Patch Files- link below my name. Vger Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2005 Share Posted June 5, 2005 sometimes the host will copy php.ini to your root, which allows you to make the different modifications necessary, apparently they didnt Link to comment Share on other sites More sharing options...
crash3903 Posted June 5, 2005 Share Posted June 5, 2005 sorry simom i meant dbin the code and install the contribution Regards Mark A Reynolds Link to comment Share on other sites More sharing options...
Guest Posted June 6, 2005 Share Posted June 6, 2005 Thank you I got it working now on my server, however I have encounted another problem. When osCommerce is installed and I click on the button Administration Tool, I get this error: Fatal error: Cannot re-assign $this in /home/lou85/public_html/catalog/admin/includes/classes/upload.php on line 31 why is this? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.