Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Links not working


Antena

Recommended Posts

Posted

Hi all, 

 

After migrate my site to another host and get some strong work because of the register_globals, now, my site is finality UP again, but not working properly.

When i click in one product his goes to review.php page. Also, can't login, searches have no results, can't register and more.

 

I think there's somenthing just disable. Anyone know how to solve that?

Posted

To who is having same problem, i found the solution here

 

Copy this and put it in a file called php5fix.php in your catalog/includes directory:

<?php
// PHP5 Fix by Steve Kamerman, http://www.teratechnologies.net/stevekamerman

$phpversion = explode('.', phpversion());
if((int) $phpversion[0] >= 5){
// PHP 5 has no idea what this crap is
$HTTP_GET_VARS = &$_GET;
$HTTP_POST_VARS = &$_POST;
$HTTP_REQUEST_VARS = &$_REQUEST;
$HTTP_SESSION_VARS = &$_SESSION;
$HTTP_COOKIE_VARS = &$_COOKIE;
$HTTP_SERVER_VARS = &$_SERVER;
$HTTP_FILES_VARS = &$_FILES;
$HTTP_ENV_VARS = &$_ENV;
}
?>

Now edit catalog/admin/includes/application_top.php and add this just below the comments at the top:

// PHP5 fix
require_once("../includes/php5fix.php");

Edit catalog/includes/application_top.php and add this just below the comments at the top:

// PHP5 fix
require_once("includes/php5fix.php");
If you haven’t completed the installation yet, do this too:
Edit catalog/install/application.php and add this just below the comments at the top:
 
// PHP5 fix
require_once("../includes/php5fix.php");
Posted

You must be using a truly ancient version of osCommerce, if it is still depending on register global variables! You are going to have a lot more work ahead of you fixing PHP incompatibilities and session problems. Then you still have to patch all the security holes in the old code. Try a test install of osC 2.3.4BS and see if it's a reasonable amount of work to migrate features you need and to migrate your database.

Archived

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

×
×
  • Create New...