Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2011
    Posts
    8
    Plugin Contributions
    0

    Default Admin and customer login not working

    Need some assistance here. I am using Zen Cart v1.3.9h.

    I had my store set up but needed the ability to add an additional field to my customer login. I installed a mod called additional_customer_fields version 3.01. After the installation my site was still functioning for the most part but I couldn't log in as a customer and my new field didn't show up anyway so I decided to move on and back out the mod.

    When I backed out the mod I deleted all of the new files I had FTP'd to the site and for those file where I placed new versions of them I had copies on my local hard drive so I was able to FTP the old version back up to my site.

    I also restored my mysql database with the copy I made before I installed the mod.

    My site was still not working as far as login so I pushed everything from my /store/include/ folder on my local to the site.

    After that my site was completely non-functional. To resolve that I had that folder restored from a previous file backup my hosting company had.

    Ok . . . so my customer facing site is back up, my products can be viewed but customers can't login still and my admin won't work at all (blank page).

    I am familiar with php so I walked through the code and tried to find where the code was failing. So far I realized that a call to zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL')); in the file init_admin_auth.php isn't working. If I comment out this line of code the admin section will load but if I click other links I get the blank page. Anyone have any ideas?

    I have a feeling this is something small but I can't seem to locate it and I hope a second set of eyes (and brains) will help.

  2. #2
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Admin and customer login not working

    Steph,
    Take time to read this:
    https://www.zen-cart.com/tutorials/index.php?article=82

    In the root directory what does the error log post under the folder Cache
    Mark
    Hare Do

  3. #3
    Join Date
    Feb 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Admin and customer login not working

    Thank you for looking into this for me. I see that I have errors relating to "headers already sent" when session_start() is called. I've seen these before and they usually are caused by blank spaces at the top of a page before the <?php tag. I can't seem to locate which file is causing my issue. I also created the local configure.php as the document you referenced suggested.

    Here are the errors in my log:

    [05-Mar-2011 22:57:40] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/newfocus/public_html/store/zc_admin/includes/application_top.php:153) in /home/newfocus/public_html/store/includes/functions/sessions.php on line 114
    [05-Mar-2011 22:57:40] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/newfocus/public_html/store/zc_admin/includes/application_top.php:153) in /home/newfocus/public_html/store/includes/functions/sessions.php on line 114
    [05-Mar-2011 22:57:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/newfocus/public_html/store/zc_admin/includes/application_top.php:153) in /home/newfocus/public_html/store/zc_admin/includes/init_includes/init_templates.php on line 28
    [05-Mar-2011 22:57:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/newfocus/public_html/store/zc_admin/includes/application_top.php:153) in /home/newfocus/public_html/store/zc_admin/includes/functions/general.php on line 21

  4. #4
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Admin and customer login not working

    Steph,
    Take a look at this thread, they are the exact same issues
    Mark
    Hare Do

  5. #5
    Join Date
    Feb 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Admin and customer login not working

    Thanks. I ran that mod and it changed my folder for my sessions to match the database but I still can't access my login for my admin account.

  6. #6
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Admin and customer login not working

    St,
    what is the url to your site...
    When you loaded the module did you use a program like Winmerge to compare the files that overload on the core files of Zen??

    Please post your admin/ includes/ configure.php ... xxxxxx out the user name and password please...
    Mark
    Hare Do

  7. #7
    Join Date
    Feb 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Admin and customer login not working

    I used WinMerge to view the file differences. I also kept a local copy of my original files so I could "safely" back the mod out.

    Here is my config file:

    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2010-12-13 07:48:21
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://216.198.218.219/~newfocus/');
    define('HTTPS_SERVER', 'http://216.198.218.219/~newfocus/');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', '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_CATALOG', 'store/');
    define('DIR_WS_HTTPS_CATALOG', 'store/');

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

    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', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'XXXXX');
    define('DB_SERVER_PASSWORD', 'XXXXX');
    define('DB_DATABASE', 'XXXXXX');
    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', '/home/newfocus/public_html/store/cache');

    // EOF

  8. #8
    Join Date
    Feb 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Admin and customer login not working

    Sorry . . . this is the wrong file. Here is the admin file:

    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2010-12-13 07:48:21
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // Main webserver: eg-http://www.your_domain.com -
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    *
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://216.198.218.219/~newfocus');
    define('HTTPS_SERVER', 'https://216.198.218.219/~newfocus');
    define('HTTP_CATALOG_SERVER', 'http://216.198.218.219/~newfocus');
    define('HTTPS_CATALOG_SERVER', 'https://216.198.218.219/~newfocus');

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

    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/newfocus/public_html/store/zc_admin/');
    define('DIR_FS_CATALOG', '/home/newfocus/public_html/store/');

    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', 'zen_');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'xxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxx');
    define('DB_DATABASE', 'xxxxxx');
    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', '/home/newfocus/public_html/store/cache');



    // EOF

  9. #9
    Join Date
    Feb 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Admin and customer login not working


 

 

Similar Threads

  1. Admin login as customer not working after 1.3.9g upgrade
    By MB1 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 21 Apr 2011, 06:44 PM
  2. Replies: 5
    Last Post: 23 Jun 2010, 12:39 AM
  3. No Login's Working, Admin Or Customer
    By scytheuk in forum General Questions
    Replies: 4
    Last Post: 19 Jan 2010, 12:05 PM
  4. Customer Login and Checkout button not working
    By fanderwald in forum General Questions
    Replies: 5
    Last Post: 30 Nov 2007, 10:54 PM
  5. Customer Login and Admin Login not working
    By trudesign in forum General Questions
    Replies: 4
    Last Post: 6 Jun 2007, 04:26 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