Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Needed - just cant get it to work


Guest

Recommended Posts

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

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

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

 

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

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

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

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

Archived

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

×
×
  • Create New...