Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    23

    Default WHM upgrade has caused oscommerce errors

    Hi,

    I have upgraded my server in the WHM to the latest version of WHM/cPanel. The problem is that I have done this. All my osCommerce websites no longer display images. The links have been changed. Is this a known issue? Has someone else experienced this. If so, please help.

    If I look at the properties of the image, this is the location: http:///images/m14.gif
    All the other websites seem fine. Example of the 2 configure files:
    Thanks




    <?php
    /*
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.mydomain.co.za');
    define('HTTP_CATALOG_SERVER', 'http://www.mydomain.co.za');
    define('HTTPS_CATALOG_SERVER', '');
    define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/thegiftc/public_html'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/home/thegiftc/public_html/admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/'); // absolute path required
    define('DIR_FS_CATALOG', '/home/thegiftc/public_html/'); // absolute path required
    define('DIR_WS_IMAGES', DIR_WS_CATALOG . 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'USERNAME');
    define('DB_SERVER_PASSWORD', 'PASSWORD');
    define('DB_DATABASE', 'DATABASE');
    define('USE_PCONNECT', 'false'); // use persisstent connections?
    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
    ?>


    <?php
    /*
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.MYDOMAIN.co.za');
    define('HTTPS_SERVER', ''); //
    define('ENABLE_SSL', false); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'www.MYDOMAIN.co.za');
    define('HTTPS_COOKIE_DOMAIN', '');
    define('HTTP_COOKIE_PATH', '/');
    define('HTTPS_COOKIE_PATH', '');
    define('DIR_WS_HTTP_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/home/thegiftc/public_html/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'USERNAME');
    define('DB_SERVER_PASSWORD', 'PASSWORD');
    define('DB_DATABASE', 'DATABASE');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
    ?>

  2. #2
    Member
    Join Date
    Aug 2007
    Posts
    23

    Default

    I solved this problem today.

    Edit includes/application_top.php
    replace line
    $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
    with
    $request_type = (getenv('SERVER_PORT') == 443) ? 'SSL' : 'NONSSL';

    It works with SSL disabled (normal HTTP). I didn't test it with SSL enabled (HTTPS), but it should work.

  3. #3
    Member
    Join Date
    Feb 2005
    Posts
    23

    Default It Works

    YOU ABOSULTE GENIUS. I’d buy you a drink, if I could…….That said, it works. Thanks.

  4. #4
    Member
    Join Date
    Jun 2005
    Posts
    25

    Default

    I ran into the same errors. I am receiving them with both existing and new installations of oscommerce.

    Whats changed in the newest whm that would be doing this?
    George Baker Hubka -- AtTheBoard.com AtTheForum.com
    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit ...

Similar Threads & Tags
Similar threads

  1. Upgrade of CPANEL caused Main domain Down
    By bradyb in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-21-2008, 01:33 PM
  2. MailScanner Upgrade Caused some Problems
    By jenlepp in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 02-10-2007, 10:42 PM
  3. Problem upgrading osCommerce - can't upgrade through WHM
    By pcsousa in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-21-2006, 05:38 AM
  4. 421 errors in Exim caused by crazy brute force attacks, need help!
    By LiNUxG0d in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 09-10-2006, 02:11 AM
  5. CPPOP errors caused by specific email?
    By rahlquist in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-31-2005, 04:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube