osCmax v2.5 User Manual
Results 1 to 6 of 6

Better explanation of https problem

This is a discussion on Better explanation of https problem within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I apologise as I have some unresolved posts on this matter, which could be because I have not explained it ...

      
  1. #1
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default Better explanation of https problem

    I apologise as I have some unresolved posts on this matter, which could be because I have not explained it in one complete overview. So here goes..

    I am working my way through why I have just a couple of problems with this my MS1 install. Firstly in this post..

    My https is all okay except it is doing this..

    1. All icon images show EXCEPT the header logo
    2. When the [CONTINUE] button is touched on the final checkout page, the home page is shown but still in https!
    All product images are shown, however once again the header ones aren't.

    As soon as I click a link to anywhere I get the 'leaving secure' panel, and I'm okay back in http.

    For a start my shop path is at /home/league/leagueandlegends-www/catalog/admin
    www is leagueandlegends.com
    ----------------------------
    Here are the areas needed in my catalog/configure.php

    define('HTTP_SERVER', 'http://www.leagueandlegends.com/catalog'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://host27.the-web-host.com/leagueandlegends/catalog'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('DIR_WS_CATALOG', '/'); // absolute path required
    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', DIR_WS_CATALOG . 'pub/');
    define('DIR_FS_DOCUMENT_ROOT', '/home/league/leagueandlegends-www');
    define('DIR_FS_CATALOG', '/home/league/leagueandlegends-www/catalog/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');


    -------------------------
    Here are the areas needed in my catalog/admin/configure.php

    define('HTTP_SERVER', 'http://www.leagueandlegends.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
    define('HTTP_CATALOG_SERVER', 'http://www.leagueandlegends.com');
    define('HTTPS_CATALOG_SERVER', 'https://host27.the-web-host.com/leagueandlegends');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/league/leagueandlegends-www/catalog'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
    define('DIR_WS_ADMIN', '/catalog/admin/');
    define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
    define('DIR_WS_CATALOG', '/catalog/');
    define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
    define('DIR_WS_IMAGES', '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/');


    Maybe this time it is clear enough for the gurus to see what I have/have not done.

    I am still trying to understand the basic structure of things, so at the mo it may look a little illogical.
    Still, that's how we learn I guess!

    Thanks

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Ok, now you are getting somewhere...

    I see a couple of problems right away. Changes are in bold type:

    Here are the areas needed in my catalog/configure.php

    define('HTTP_SERVER', 'http://www.leagueandlegends.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://host27.the-web-host.com/leagueandlegends'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    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', DIR_WS_CATALOG . 'pub/');
    define('DIR_FS_DOCUMENT_ROOT', '/home/league/leagueandlegends-www');
    define('DIR_FS_CATALOG', '/home/league/leagueandlegends-www/catalog/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');


    Here are the areas needed in my catalog/admin/configure.php

    define('HTTP_SERVER', 'http://www.leagueandlegends.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
    define('HTTP_CATALOG_SERVER', 'http://www.leagueandlegends.com');
    define('HTTPS_CATALOG_SERVER', 'https://host27.the-web-host.com/leagueandlegends');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/league/leagueandlegends-www'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
    define('DIR_WS_ADMIN', '/catalog/admin/');
    define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
    define('DIR_WS_CATALOG', '/catalog/');
    define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
    define('DIR_WS_IMAGES', '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/');


    Try that and see what you get. Is this server using ensim or plesk by any chance?

    And for future reference, rather than starting a new topic, just reply to the thread that you already started. Simply add your new info to it.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default

    Okay.. Thanks. Did exactly that and all is well except this..

    When entering Checkout it goes to https and stays there even after leaving the 'Your Order has been etc' page. The next page is the main front page of the shop however still in https. It stays there until one clicks an image or whatever then the panel comes up about leaving encryption etc. and the same screen is shown however correctly in http.

    All the time it is in https, I get all images EXCEPT two logos I have in the header. The block is there where they should be, but no images.

    This is the address that comes up when I click 'View Image' on the block.

    https://host27.the-web-host.com/cata...oscommerce.gif

    and this is the message..

    The requested URL /catalog/images/oscommerce.gif was not found on this server.

    Apache/1.3.27 Server at host27.the-web-host.com Port 443

    Thanks

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    The path is incorrect. See how it is missing leagueandlegends in the location?

    When I view source your path is
    Code:
    /catalog/images/oscommerce.gif
    It should be
    Code:
    images/oscommerce.gif
    Check your code and make sure it is the correct relative path...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default

    Oh my Michael, I'm so sorry to take up your time with my noobiness!

    I have spent the last hour in the admin configure file and done umpteen changes to all the 'image' paths and nothing seems to make any difference. Not worse, not better!

    I have added full paths and part paths.

    What line/s am I to put the leagueandlegends name?

    Thanks

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    I dont think it is in your configure.php, I think it is some code you modified in default.php, or header.php...

    Your configure.php is correct, but the image paths in your header are not. The way you can tell, is that everything else is working correctly. If it were a configure.php problem you would see other broken images too. Look in header.php and default.php...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Problem with CSS images when referenced from HTTPs
    By joemathis in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 02-28-2007, 07:03 AM
  2. https-problem
    By springbank in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 01-05-2004, 08:31 AM
  3. when in https....
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-28-2002, 06:36 PM
  4. Too much https: ??
    By sheikyerbouti in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 12-11-2002, 05:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •