Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 2 of 2

Thread: SSL Errors, Session Cookie, Session Cache, NOVICE Problems?

  1. #1
    hanool
    Guest


    Default SSL Errors, Session Cookie, Session Cache, NOVICE Problems?

    Hi... Bare Novice here...


    I have define('ENABLE_SSL', true); and had problem with the page can not display... When I checked "catalog/includes/configure.php" and "admin/includes/configure.php" files, I have notice that 'HTTPS_SERVER' was set incorrect, so I have revised as following;

    catalog/includes/configure.php file from...
    define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://all4canopy.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?

    catalog/includes/configure.php file to...
    define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://secure.vosn.net/~all4cano/'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?

    admin/includes/configure.php from...
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');
    define('HTTPS_CATALOG_SERVER', 'https://all4canopy.com');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server

    admin/includes/configure.php to...
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');
    define('HTTPS_CATALOG_SERVER', 'https://secure.vosn.net/~all4cano/');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server

    After I made this change, the https:// page opens but states that the cookie is not correctly set... and advising to set web browser security level as "Medium" and I set as "Medium" but still the same message... This shows up on all https:// pages...


    So I took a wild guess and edit the catalog/includes/configure.php file
    From;
    define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');
    To;
    define('HTTPS_COOKIE_DOMAIN', 'https://secure.vosn.net/~all4cano/');
    And bunch of error messages comes up on http:// and https:// pages...
    So I edit again to define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');

    But still having following error messages....

    Warning: Cannot modify header information - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/general.php on line 1174

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/sessions.php on line 67

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/sessions.php on line 67

    Warning: Cannot modify header information - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/general.php on line 29

    Here is the sample URLs...
    http://all4canopy.com/catalog/index.php
    http://all4canopy.com/catalog/produc...on=add_product

    What am I doing wrong???

    Here is the the copy of "catalog/includes/configure.php" and "admin/includes/configure.php" files

    catalog/includes/configure.php File;
    <?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://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://secure.vosn.net/~all4cano/'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'all4canopy.com');
    define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');
    define('HTTP_COOKIE_PATH', '/catalog/');
    define('HTTPS_COOKIE_PATH', '/catalog/');
    define('DIR_WS_HTTP_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', '/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/');

    //Added for BTS1.0
    define('DIR_WS_TEMPLATES', 'templates/');
    define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
    define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
    //End BTS1.0
    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/home/all4cano/public_html/catalog/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection........


    admin/includes/configure.php Files;
    <?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://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');
    define('HTTPS_CATALOG_SERVER', 'https://secure.vosn.net/~all4cano/');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/home/all4cano/public_html/catalog/admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    define('DIR_FS_CATALOG', '/home/all4cano/public_html/catalog/'); // absolute path required
    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/');
    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.....


    Can anyone please shed some light on this???

    Thank you!

  2. #2
    hanool
    Guest


    Default

    PROBLEM SOLVED!!!

    The error showed up because of the extra blank lines at the bottom of the catalog/includes/configure.php file... After delete them the errors are gone!!!

    Second, after I fixed errors, I came up with cookie problem...
    All you need to do is just turn off 'force cookies' in the admin under : Configuration Sessions!

    Or by the way, I also edit the catalog/includes/configure.php File;
    define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');
    to
    define('HTTPS_COOKIE_DOMAIN', 'https://secure.vosn.net');

    Hope this helps Novice and Newbee like me...

Similar Threads

  1. Session Cookies and Cache Warnings
    By Plastic in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 12-04-2005, 06:30 PM
  2. Warning: session_start(): Cannot send session cache limiter
    By developer_x in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 01-23-2005, 08:13 AM
  3. Warning! Session cannot send seession code;cache limited!
    By sangdao in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 09-23-2004, 10:49 AM
  4. What is this error meaning?! [Cannot send session cookie]
    By toniwong in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 05-10-2004, 10:07 AM
  5. session_start(): Cannot send session cookie
    By minimum in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 02-14-2004, 11:06 AM

Bookmarks

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
  •