How to upgrade osCommerce 2.2MS2a from PHP5 to PHP5.3?

Here is the files you'll need to update your osCommerce shop. If you made custom changes to your store, you'll have to make the changes manually.

http://www.oscommerce.com/community/contributions,7394

Chances are likely that you may have been running your osComerce shop on MySQL 4.x and your new server is on MySQL 5. There are problems running osCommerce 2.2MS2a on MySQL 5, and the link below will take you to a solution.

http://oscommerce.com/ext/update-20051112.html#_Toc119473702

You'll also have to make following changes to the php.ini file:

register_globals On
register_long_arrays On

In addition, the admin login page on https may not work due to session variable not being properly set. To make this to work, please add the following:

In admin/includes/application_top.php, add a line below tep_session_start():

  tep_session_start();
  $session_started = 1;

In admin/includes/configure.php, add the following lines 
(replace webtrafficexchange.com with your domain name):

  define('HTTPS_SERVER', 'https://www.webtrafficexchange.com');
  define('ENABLE_SSL', 'true');
  define('HTTP_COOKIE_DOMAIN', '.webtrafficexchange.com');
  define('HTTPS_COOKIE_DOMAIN', '.webtrafficexchange.com');

Modify the default value of $connection to "SSL" in the
admin/includes/functions/html_output.php file:

  function tep_href_link($page = '', $parameters = '', $connection = 'SSL') {

Comments

If you see an error message that look similar to below, please keep reading...

First, you'll have to check and verify that you have "curl" installed on your system.

If you look at phpinfo, you'll be able to see if curl is installed. On RedHat/Centos 5.x and 6.x, curl is installed by default.

If not, you may want to install it by running the following command as a root user.

# yum install curl php-common php-curl

If you still see an error, you'll have to add the following two php curl commands before executing curl_exec() command. Please open the /includes/modules/payment/authorizenet_aim.php, and locate a line where curl is initialized, i.e. curl_init().

Find the following line within the file:
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

Then, add the following two curl_setopt commands after the above.

curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
By admin

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.