Results 1 to 10 of 10
  1. #1

    Default Admin Login Problem

    I've enjoyed setting up my cart and have been using these forums and faq's religiously. But I've been stumped since last night on a problem that I am sure is very simple and the answer is probably staring me right in the face.

    Basically cart was setup in my ISP's webspace with my domain pointed to it, fine, it works no hassles except it shows their domain name in the full pathname in all the links. So I have edited the 2 configure.php files to use my domain.

    I have the catalogue working fine now and all the links are as I want them. www.offsitebusiness.com.au/obss

    But I am having trouble with the Admin login, it comes up and I enter my username and password, but it just returns the login screen again.

    I have tried many different things in the config files and basically have to keep reverting back to the backed up copies of the config files to be able to get back into the Admin control panel. I have tried fiddling with the session cache, but it is actually set to "none".

    Any help appreciated with much thanks.

    P.S. I actually just thought to try logging in as a user, and unfortunately I can't do that either or setup a new customer.

    Sharon.
    Last edited by wallaby; 8 Apr 2007 at 12:23 PM.

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

    Default Re: Admin Login Problem

    Could you post, from the server, without your username and password the file:
    /admin/includes/configure.php

    Sounds like you have an error in the file ...
    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!

  3. #3

    Default Re: Admin Login Problem

    Hi,

    Here's a copy of my Admin/Includes configure.php. Hopefully you can see what it is that I am missing. I don't have SSL at the moment, so after reading another thread here last night, I changed https:// to my ISP's domain as everything was working when it was left at that.

    Code:
     
    define('HTTP_SERVER', 'http://www.offsitebusiness.com.au');
      define('HTTPS_SERVER', 'https://web.myisp.com.au');
      define('HTTP_CATALOG_SERVER', 'http://www.offsitebusiness.com.au');
      define('HTTPS_CATALOG_SERVER', 'https://web.myisp.com.au');
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'false');
      define('ENABLE_SSL_ADMIN', 'false');
    // 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', '/home/ftpuser2/shaz/obs/shop/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/home/ftpuser2/shaz/obs/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', '/home/ftpuser2/shaz/obs/shop/admin/');
      define('DIR_FS_CATALOG', '/home/ftpuser2/shaz/obs/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('DB_SERVER_USERNAME', '****');
      define('DB_SERVER_PASSWORD', '****');
      define('DB_DATABASE', '****');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // 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', '/home/ftpuser2/shaz/obs/shop/cache');

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

    Default Re: Admin Login Problem

    See if these settings work better ...

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

  5. #5

    Default Re: Admin Login Problem

    Hi Linda,

    Just made those changes, but still no luck. What about my Includes configure.php.

    Code:
     
      define('HTTP_SERVER', 'http://www.offsitebusiness.com.au');
      define('HTTPS_SERVER', 'https://web.myisp.com.au');
      define('HTTP_CATALOG_SERVER', 'http://www.offsitebusiness.com.au');
      define('HTTPS_CATALOG_SERVER', 'https://web.myisp.com.au');
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'false');
      define('ENABLE_SSL_ADMIN', 'false');
    // 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', '/home/ftpuser2/shaz/obs/shop/admin/');
      define('DIR_FS_CATALOG', '/home/ftpuser2/shaz/obs/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('DB_SERVER_USERNAME', '****');
      define('DB_SERVER_PASSWORD', '****');
      define('DB_DATABASE', '****');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'db'); // 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', '/home/ftpuser2/shaz/obs/shop/cache');

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

    Default Re: Admin Login Problem

    Does this mean anything to you?
    /wallaby/obs/shop/
    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!

  7. #7

    Default Re: Admin Login Problem

    Linda, I have sent some PM's to you again.

    But I was just thinking, as it seems that I can get the catalogue working but not access the Admin area - could it be that the path to the database needs to be changed? Currently I have it set to localhost.

    Everything works perfectly when I use my ISP's domain name and the set the appropriate Webserver & Filesystem directories - but then they would they are on their server. But as soon as I change it to my domain and change the WS & FS directories to the appropriate paths, I can find the formatted catalogue but not use passwords to access data.

    Many thanks,

    Sharon.

  8. #8

    Default Re: Admin Login Problem

    Wow this domain redirection should have been simple, but I just can't understand what has gone wrong.

    Problem: I cannot login to the Admin panel through the Admin login page, I enter my username & pwd and it just returns to the Admin login page, resend password does not work either. The shop catalogue displays fine, however users cannot login and receive the following message "Error: Sorry, there is no match for that email address and/or password.". But if I revert back to my backed up config files, the users are there and can login, and I can obviously log into Admin.

    I have just re-run zc_install to re-detect the paths and directories to see if that corrects anything I may have inadvertantly misconfigured when I manually changed the config files to use my domain name. And it has come up with what I think should be the correct paths, they also match with the tips Ajeh has given me.

    I have also read through heaps of other admin login problem threads on the forum and have so far tried the following;

    - delete admin table from database & reset password
    - I have alternated between using Notepad & Dreamweaver to modify the PHP files, there appears to be no extra lines.
    - I have version 1.3.7 so the PHP workaround is in there.
    - I have double checked all my "/" at both the start and end of paths.
    - I have changed session from 'db' to ".
    - I have reset the cache settings in Admin when I have it set to original config files.
    - I have run the Fix Cache Utility.

    I am fairly positive there is no corruption with the files, as I take the same two config files modify them back to my original settings using the full paths and my ISP's domain rather than mine and it works perfectly every time.

    Sharon

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

    Default Re: Admin Login Problem

    Do you have redirects turned on right now somewhere?

    I don't think you have them set right if you do ...

    I also do not think your secure URL is correct or it is being confused by something else like improper redirects ...

    see PMs ...
    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!

  10. #10
    Join Date
    Nov 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: Admin Login Problem

    I had the same problem and just fixed it by changing a line in includes/configure.php
    from
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

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

 

 

Similar Threads

  1. Admin Login problem
    By buildingblocks in forum General Questions
    Replies: 9
    Last Post: 14 Jul 2011, 04:55 AM
  2. Admin login problem
    By deemurphy in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 28 Mar 2010, 01:50 PM
  3. Admin login problem: There was a security error when trying to login.
    By eddeford in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 27 Jan 2010, 03:59 PM
  4. Admin Login Problem
    By fbzencart in forum General Questions
    Replies: 1
    Last Post: 13 Oct 2006, 12:32 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