Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2008
    Location
    Herts, UK
    Posts
    9
    Plugin Contributions
    0

    Default Page Format All Over the Place When Using SSL

    Hi There,

    I have found this forum absolutely priceless for answering all my questions but I think I need some pointers for this one as I am just digging myself deeper into a hole. I have been playing around with SSL and configure.php files - now when a customer adds a product and procedes to checkout the page is encrypted but none of the graphics load - your help would be appreciated.

    Thanks

    Nick

    Version - Zen Cart 1.3.7 Database Patch Level: 1.3.7
    Link - http://www.localschooluniform.co.uk/
    Secure Server Shared -
    https://web34.secure-secure.co.uk/lo...uniform.co.uk/


    /includes/configure.php - attributes 444
    define('HTTP_SERVER', 'http://www.localschooluniform.co.uk');
    define('HTTPS_SERVER', 'https://web34.secure-secure.co.uk/localschooluniform.co.uk/');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/localschooluniform.co.uk/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    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_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_CATALOG', '/home/sites/localschooluniform.co.uk/public_html/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/sites/localschooluniform.co.uk/public_html/cache');

    ?>


    admin/includes/configure.php - attributes 644

    define('HTTP_SERVER', 'http://www.localschooluniform.co.uk');
    define('HTTPS_SERVER', 'https://web34.secure-secure.co.uk/localschooluniform.co.uk/');
    define('HTTP_CATALOG_SERVER', 'http://www.localschooluniform.co.uk');
    define('HTTPS_CATALOG_SERVER', 'https://web34.secure-secure.co.uk/localschooluniform.co.uk/');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/localschooluniform.co.uk/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/localschooluniform.co.uk/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home/sites/localschooluniform.co.uk/public_html/admin/');
    define('DIR_FS_CATALOG', '/home/sites/localschooluniform.co.uk/public_html/');

    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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/sites/localschooluniform.co.uk/public_html/cache');

  2. #2
    Join Date
    Jan 2008
    Location
    Herts, UK
    Posts
    9
    Plugin Contributions
    0

    Default Re: Page Format All Over the Place When Using SSL

    Tried a fresh install of 1.3.8a in a new directory and low and behold still no graphics are showing up in SSL mode

    here is the new link - no modifications - just a straight install

    https://web34.secure-secure.co.uk/lo...co.uk/zencart/

    NO GRAPHICS

    Could someone please tell me what is happening - could this be server side ?
    or a newbie missing something really obvious

    Thanks

    Nick

  3. #3
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Page Format All Over the Place When Using SSL

    The error you have with your main store is in your includes/configure.php file. You have the lines...
    define('HTTPS_SERVER', 'https://web34.secure-secure.co.uk/localschooluniform.co.uk/');
    define('DIR_WS_HTTPS_CATALOG', '/localschooluniform.co.uk/');
    This means that you are doubling up on the /localschooluniform.co.uk/ part. Replace those defines with...
    define('HTTPS_SERVER', 'https://web34.secure-secure.co.uk/localschooluniform.co.uk');
    define('DIR_WS_HTTPS_CATALOG', '/')
    The problem with your test site is that there is a space at the end of one of the defines. Hard to say exactly which one without seeing the configure.php file.

    Regards,
    Christian.

  4. #4
    Join Date
    Jan 2008
    Location
    Herts, UK
    Posts
    9
    Plugin Contributions
    0

    Default Re: Page Format All Over the Place When Using SSL

    Thanks so much Christian,

    Seems obvious when pointed out in black and white - something about seeing, wood and trees

    Have decided to upgrade to new version and will transfer sub directory to live one in time : the SSL is working fine now (thank you) -

    Learned a couple of things

    1/ Be careful when editing configure.php
    2/ Keep Plenty of Backups !!

    Nick

 

 

Similar Threads

  1. Firefox layout all over the place
    By fionac in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 May 2010, 04:04 AM
  2. Header is all over the place
    By delightsociety in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Sep 2009, 05:12 PM
  3. Codes are being put all over the place!
    By totalsam in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Jan 2009, 05:35 PM
  4. 403 Errors all over the place
    By Dashizna in forum General Questions
    Replies: 3
    Last Post: 22 Dec 2006, 09:21 PM
  5. Image Handler 2 Pop Up Appears All Over The Place
    By beasleybub in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Nov 2006, 01:52 PM

Posting Permissions

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