Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2006
    Posts
    20
    Plugin Contributions
    0

    Strange "double directory" login error

    Sorry, I couldn't find an answer to this question already, mostly because I have no idea quite how to describe it.

    What happens is this:

    My cart is installed in a folder called "root." When I try to log in using my test account on the front page, zencart tries to find the page /root/root/index.php

    Which of course doesn't exist, so it throws a 404 error. No other link on the site behaves like this.

    I'm pretty sure I haven't modified any of the original code.
    I thought it must be a configuration error, but I couldn't find a path specifically for the login function.

    Any clues?


    Anyone can try it themselves if they like. The site is:
    https://www.eastern-ink.com/

  2. #2
    Join Date
    Jul 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Strange "double directory" login error

    Is it maybe because the login function uses https instead of http?

    Here's my configure.php file from /root/includes/:
    [FONT="Courier New"]

    // 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://www.eastern-ink.com');
    define('HTTPS_SERVER', 'https://www.eastern-ink.com/root');

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

    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', '/home/dddddd/eastern-ink.com/forum/');

    // * 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/dddddd/eastern-ink.com/root/');

    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', 'shop.eastern-ink.com'); // 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'[/FONT]


    Are there any problems here?

  3. #3
    Join Date
    Jul 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: Strange "double directory" login error

    Quote Originally Posted by Hangly Man
    Are there any problems here?

    Durr. I see the problem now. Sorry for wasting valuable electrons.

    Edit:

    I changed
    define('DIR_WS_CATALOG', '/root/');
    to
    define('DIR_WS_CATALOG', '/');

    And all works fine now.
    Last edited by Hangly Man; 31 Jul 2006 at 11:14 AM.

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

    Default Re: Strange "double directory" login error

    Actually you are a little backwards ...
    define('HTTP_SERVER', 'http://www.eastern-ink.com');
    define('HTTPS_SERVER', 'https://www.eastern-ink.com/root');
    Should be:
    define('HTTP_SERVER', 'http://www.eastern-ink.com');
    define('HTTPS_SERVER', 'https://www.eastern-ink.com');
    And then:
    define('DIR_WS_CATALOG', '/root/');
    define('DIR_WS_HTTPS_CATALOG', '/');
    Should be:
    define('DIR_WS_CATALOG', '/root/');
    define('DIR_WS_HTTPS_CATALOG', '/root/');
    Be sure to check your /admin/includes/configure.php for similar settings ...

    Then, perhaps your shop would work correctly ...
    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: v1.5.5]
    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!

 

 

Similar Threads

  1. Categories in Admin page says "Error: Catalog images directory is not writeable"
    By stefanl in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 6 Jun 2010, 05:17 PM
  2. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  3. Image Handler "Double Directory Image problems"
    By haredo in forum Basic Configuration
    Replies: 3
    Last Post: 3 Aug 2009, 07:01 PM
  4. How does Zen-Cart "know" what your "custom" directory is?
    By alicia1234 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Dec 2008, 01:46 AM
  5. Users cannot login after upgrade - "There was a security error when trying to login"
    By rob.chevalier in forum Upgrading from 1.3.x to 1.3.9
    Replies: 19
    Last Post: 9 Jun 2008, 08:04 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR