In my previous posts, I explained how to install osCommerce and how to configure it on a server. Recently, one of my friends installed PHP 5.3 on his system and began working on an osCommerce project. However, when he attempted to run the application, he encountered several fatal errors. In this post, I’ll discuss some of these errors and how to rectify them.

osCommerce, a popular e-commerce platform, empowers countless online businesses. However, like any system, it can encounter issues that may affect performance and user experience. In this comprehensive guide, we will explore common osCommerce issues and how to resolve them efficiently. Whether you’re a business owner, developer, or administrator of an osCommerce store, understanding and troubleshooting these issues is essential to maintain a successful and smoothly running online store.

1) Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\sportstrack\catalog\includes\classes\language.php

To overcome this error :
in language.php at line number:90 Add this line

1
2
if (preg_match('/^(' . $value . ')(;q=[0-9]\\.[0-9])?$/i', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) {
   $this->language = $this->catalog_languages[$key];

Mostly we forget the passwords after few days, same thing happen in this application also. I forgot the oscommerce admin password and run this application in localhost.

In oscommerce password function:

1
2
3
4
5
6
7
8
9
function tep_encrypt_password($plain) {
    $password = '';
    for ($i=0; $i<10; $i++) {
      $password .= tep_rand();
    }
    $salt = substr(md5($password), 0, 2);
    $password = md5($salt . $plain) . ':' . $salt;
    return $password;
  }

So, overcome this type issue solution is :

Go to phpmyadmin ( http://localhost/phpmyadmin/)

  1. Select particular database ( eg: oscommerceshop)
  2. Select table administrator and select user and click on edit button
  3. Next leave the username as same and in the password section change the text as below

e421ac4e5b569e41d4105f84396fa739:92

Its denotes password is : admin

Once login with using details and later we can change your own password.

In conclusion, addressing osCommerce issues is vital for the continued success of your online store. This article has provided you with valuable insights and solutions to troubleshoot and resolve common problems efficiently. Whether you’re dealing with technical glitches, usability issues, or performance challenges, the knowledge gained here empowers you to enhance your online store’s performance and provide a better shopping experience for your customers. With these troubleshooting skills, you’re well-equipped to keep your osCommerce store running smoothly and address any issues that may arise, ensuring the ongoing success of your online business.

Categories: OsCommerce

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *