Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2006
    Posts
    24
    Plugin Contributions
    0

    log in/log out 404 -NOT double directory issue

    Hi there, I am absolutely loving zen cart, I used to use oscommerce but that was a total pain to set up compared to this.

    Right, my problem is, and I think its a config problem rather than a server issue, is that whenever I login or logout, it throws a 404 - although then going back/forward, it has worked fine.

    I've scoured these forums and looks like the double directory issue, but it isnt - if anything its a missing directory issue - all I need help with - I think - is where in the config to add the appropriate site.

    You can see the issue here: http://ikeyring.com/shop/

    user: tester AT blackspike DOT com pass: tester

    config file:


    Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      define('HTTP_SERVER', 'http://ikeyring.com');
      define('HTTPS_SERVER', 'https://web26.secure-secure.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', '/shop/');
      define('DIR_WS_HTTPS_CATALOG', '/ikeyring.com/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', '/home/sites/ikeyring.com/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'); // eg, localhost - should not be empty
      define('DB_SERVER_USERNAME', '*********');
      define('DB_SERVER_PASSWORD', '*********');
      define('DB_DATABASE', '*********');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'
    
      // 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/ikeyring.com/public_html/shop/cache');
    PS my host reckons the following:

    I think it might be a configuration/code problem - the site is at
    https://web26.secure-secure.co.uk/ik...shop/index.php
    but when I log in it goes to
    https://web26.secure-secure.co.uk/shop/index.php
    (note the lack of "ikeyring.com/" in the second URL).

    In the Zen code, there's a lot of commented out code around the
    redirects after a customer logs in

    if (sizeof($_SESSION['navigation']->snapshot) > 0) {
    // $back = sizeof($_SESSION['navigation']->path)-2;
    //if (isset($_SESSION['navigation']->path[$back]['page'])) {
    // if (sizeof($_SESSION['navigation']->path)-2 > 0) {
    $origin_href = zen_href_link($_SESSION['navigation']->snapshot['page'],
    zen_array_to_string($_SESSION['navigation']->snapshot['get'],
    array(zen_session_name())), $_SESSION['navigation']->snapshot['mode']);
    // $origin_href = zen_back_link_only(true);
    $_SESSION['navigation']->clear_snapshot();
    zen_redirect($origin_href);
    } else {
    zen_redirect(zen_href_link(FILENAME_DEFAULT));
    }

    I'm not an expert, but that looks like it's maybe going to
    FILENAME_DEFAULT rather than $origin_href, and I'm guessing that the
    default filename is for http not https?

    Any help muchly, muchly appreciated,
    thanks!

  2. #2
    Join Date
    Sep 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: log in/log out 404 -NOT double directory issue

    hold the phone - i think i might just have found the answer .... will let you know

  3. #3
    Join Date
    Sep 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: log in/log out 404 -NOT double directory issue

    nope. no joy. any help appreciated

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: log in/log out 404 -NOT double directory issue

    define('HTTPS_SERVER', 'https://web26.secure-secure.co.uk/ikeyring.com');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    Those are the correct settings.

    Vger

  5. #5
    Join Date
    Sep 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: log in/log out 404 -NOT double directory issue

    AGH! I could have sworn I tried that! thank you so so much - a second pair of eyes is always a winner.

    thanks again mate

  6. #6
    Join Date
    Sep 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: log in/log out 404 -NOT double directory issue

    ah - actually that just seems to render my admin login as a 404 - gives a double directory URL ikeyring.com/ikeyring/

    back to the drawing board... all advice taken with great gratitude :)

  7. #7
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: log in/log out 404 -NOT double directory issue

    Did you make sure to use this setting:

    define('DIR_WS_HTTPS_CATALOG', '/shop/');

    instead of what you previously had:

    define('DIR_WS_HTTPS_CATALOG', '/ikeyring.com/shop/');

    Vger

  8. #8
    Join Date
    Sep 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: log in/log out 404 -NOT double directory issue

    Yep, I tried all that, and after a bit of fiddling I just changed

    define('DIR_WS_HTTPS_ADMIN', '/ikeyring.com/shop/admin/');

    to define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');

    and that seems to have fixed it successfully! (so far)

    thanks for your help again mate! really appreciated

 

 

Similar Threads

  1. Log out 404 error
    By Elly in forum General Questions
    Replies: 6
    Last Post: 7 Aug 2011, 08:24 PM
  2. Customer Login/log out gets a 404 error
    By chrissiemags in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 11 Oct 2008, 04:43 AM
  3. Log In/Log Out link issue...
    By d1driftbiz in forum General Questions
    Replies: 1
    Last Post: 14 Oct 2007, 06:47 AM
  4. After log out can't log back in unless......
    By oldpaint in forum General Questions
    Replies: 13
    Last Post: 17 Mar 2007, 05:51 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR