Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    3
    Plugin Contributions
    0

    red flag SSL and configure.php HELP!!

    I am running the latest version of zencart, and am trying to configure the SSL into my site. I have followed the instructions making the necessary changes to the store and admin configure.php files, and re-loaded them back onto my server. NOW I am having several problems on my site (https://www.yumnyswimwear.com/shop/)

    When I try to add an item to cart nothing happens, I get a "this is a non-secure form" message from my browser (safari and firefox). It repeats the message again if I send it anyways, which results in nothing being added to my cart.

    When I called my host (Hostmonster) they suggested I "change my paths from absolute to relative". However I am not sure how to do this, or what this really means considering I thought all my paths were Relative.

    Below are the changes I made to my configure.php files (I am assuming there is a problem here but I can't seem to see what I could have done wrong). Someone please help I have spent 2 days on this and am going CRAZY!

    admin configure.php

    define('HTTP_SERVER', 'http://www.yumnyswimwear.com');
    define('HTTPS_SERVER', 'https://www.yumnyswimwear.com');
    define('HTTP_CATALOG_SERVER', 'http://www.yumnyswimwear.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.yumnyswimwear.com');

    // 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', '/shop/admin/');
    define('DIR_WS_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    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', '/home4/taliakco/public_html/shop/admin/');
    define('DIR_FS_CATALOG', '/home4/taliakco/public_html/shop/');

    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/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');


    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // 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', '/home4/taliakco/public_html/shop/cache');

    ----------------------------------------------------

    store configure.php


    define('HTTP_SERVER', 'http://www.yumnyswimwear.com');
    define('HTTPS_SERVER', 'https://www.yumnyswimwear.com');

    // 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', '/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    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', '/home4/taliakco/public_html/shop/');

    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/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '');
    define('DB_SERVER', 'localhost');



    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // 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', '/home4/taliakco/public_html/shop/cache');

    // EOF

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: SSL and configure.php HELP!!

    From what I am seeing, you have a redirect in your .htaccess file that is forcing secure and then the configure.php for your Zen Cart site set correctly to run it when it should be ...

    The rewrite info is either in the:
    /shop/.htaccess

    or it it is in:
    /public_html/.htaccess

    NOTE: it could be in both ...

    This incorrect usage of the forced secure on your server cause of this problem ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jun 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: SSL and configure.php HELP!!

    Thank you so much for replying. I am not exactly a web developer but take direction very well!
    Is there any way you can walk me through how to fix this?
    Is this something Hostmonster (my web host and SSL provider) can fix for me (with the correct direction how to fix the problem)?

    The info in my /public_html/.htaccess is:

    .htaccess
    ASCII text
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://www.yumnyswimwear.com/$1 [L,R]

    for some reason I do not have an .htaccess file in the main shop directory

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: SSL and configure.php HELP!!

    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://www.yumnyswimwear.com/$1 [L,R]

    Remove the above 3 lines and you should be good.

    Zen Cart does not use a default .htaccess file in the main shop directory which is why you don't have one.

  5. #5
    Join Date
    Jun 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: SSL and configure.php HELP!!

    THANK YOU IT WORKED!! I would never have known to do that, and such an easy fix! So glad I posted, this site it a life saver!

 

 

Similar Threads

  1. Replies: 9
    Last Post: 1 Sep 2012, 03:13 AM
  2. Dumb question re: SSL and configure.php
    By allissaf in forum General Questions
    Replies: 2
    Last Post: 12 Apr 2010, 10:48 PM
  3. Urgent help required.. Website all blank after editing configure.php to add SSL
    By hamid84 in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 24 Mar 2010, 12:02 AM
  4. Help with .htacess and configure files to stop SSL redirect loop
    By behrtek in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 5 Mar 2009, 08:35 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