Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Location
    Aspen, CO
    Posts
    26
    Plugin Contributions
    0

    Default Can't Login to Admin with Fresh Install

    I downloaded fresh Zen Cart files with no addons - version 1.3.8 and can't login to Admin. I've researched FAQ's. I get the following error:

    There was a security error when trying to login.

    I reviewed the following thread:
    http://tutorials.zen-cart.com/index.php?article=312

    The following code:
    <?php echo zen_draw_hidden_field('securityToken', $_SESSION['securityToken']); ?>

    appears in the following files:
    - /includes/templates/template_default/templates/tpl_login_default.php
    - /includes/templates/template_default/templates/tpl_timeout_default.php

    Here is a copy of my configuration file without username/passwords:

    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


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

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');
    define('ENABLE_SSL_CATALOG', 'true');
    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_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', '/var/www/vhosts/skijunk.com/httpdocs/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', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'xxx-xxx');
    define('DB_SERVER_PASSWORD', 'xxx-xxx');
    define('DB_DATABASE', 'xxx-xxx');
    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', 'file');
    define('DIR_FS_SQL_CACHE', '/var/www/vhosts/skijunk.com/httpdocs/store/cache');

    // EOF

    I edited /admin/includes/configure.php and change ENABLE_SSL_ADMIN to 'false'. I cleared browser cache AND cookies.

    Cache folder permissions are set to "777".

    I'm using Firefox browser (latest version) and IE 6 to attempt to login. I've never had issues like this right at the get go. Hard to make any progress when I can't even login to Admin.

    cheers,

  2. #2
    Join Date
    Dec 2008
    Location
    Aspen, CO
    Posts
    26
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    I also discussed login issue with our server admin. PHP Safemode is turned off. I still can't login to Admin.

  3. #3
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    I setup version 1.38a, Can get into the store.
    I cannot login to admin get the following error:

    The server encountered an unexpected condition which prevented it from fulfilling the request.
    The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
    Can any one help with this

    Thank You

    Robert

  4. #4
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    613
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    Which configure file have you edited?

    includes/configure.php ?

    You need to be editing/checking the below file if having admin login issues.

    admin/includes/configure.php
    That wasn't the plan!

  5. #5
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    I will check the file.

    Thank You

  6. #6
    Join Date
    Dec 2008
    Location
    Aspen, CO
    Posts
    26
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    The file above is - /includes/configure.php

    The admin file located at /admin/includes/configure.php follows with username and password x'd out:

    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** 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://www.skijunk.com');
    define('HTTPS_SERVER', 'https://www.skijunk.com');
    define('HTTP_CATALOG_SERVER', 'http://www.skijunk.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.skijunk.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL', 'true');
    define('ENABLE_SSL_CATALOG', 'true');
    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/admin/');
    define('DIR_WS_CATALOG', '/store/');
    define('DIR_WS_HTTPS_ADMIN', '/store/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', '/var/www/vhosts/skijunk.com/httpdocs/store/admin/');
    define('DIR_FS_CATALOG', '/var/www/vhosts/skijunk.com/httpdocs/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', '');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'xxx-xxx');
    define('DB_SERVER_PASSWORD', 'xxx-xxx');
    define('DB_DATABASE', 'xxx-xxx');
    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', 'file');
    define('DIR_FS_SQL_CACHE', '/var/www/vhosts/skijunk.com/httpdocs/store/cache');

    // EOF

  7. #7
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    613
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    Hi There,

    I've been comparing my live working file with yours and there seems to be quite few differences.

    This with BOTH configure files.

    As your website is new I suggest you delete everything in your store folder.

    Login to myPHP Admin and select your database file you created for the shop and DROP all tables.

    (Or of not comfortable DROPPING tables delete the database and recreate it.)

    Then do a reinstall.

    It is likely to take longer to try and work out what the problem than it is to do a fresh install again.

    When you do an install there is a page that displays information on PHP and mySQL and what is enabled on the server and so on.

    Copy this or take note of what is NOT ticked or working. Just in case you have this problem again.

    Also download a FRESH copy of zen cart. I tis likely that something was corrupted. Could have been when you uploaded to website. Use something like filezilla FTP client (FREE). As this is quite a reliable FTP client.
    That wasn't the plan!

  8. #8
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    Here is my config file from admin\includes file.
    i don't see anything that is a problem, if you do let me know.
    I am using the database for two different web stores.
    Have the same problem on both stores

    Robert

    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** 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://www.robarbmarking.com');
    define('HTTPS_SERVER', 'https://www.robarbmarking.com');
    define('HTTP_CATALOG_SERVER', 'http://www.robarbmarking.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.robarbmarking.com');

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

    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', '/hermes/bosweb/web294/b2947/d5.robarbma/public_html/catalog/admin/');
    define('DIR_FS_CATALOG', '/hermes/bosweb/web294/b2947/d5.robarbma/public_html/catalog/');

    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', 'robarb');
    define('DB_SERVER', 'robarbma.dot5hostingmysql.com');
    define('DB_SERVER_USERNAME', 'xxxxxx');
    define('DB_SERVER_PASSWORD', 'xxxxxx');
    define('DB_DATABASE', 'zenrobarb');
    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', '/hermes/bosweb/web294/b2947/d5.robarbma/public_html/catalog/cache');

    // EOF

  9. #9
    Join Date
    Mar 2009
    Location
    Australia
    Posts
    613
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    Go here and try a few of these options: http://www.zen-cart.com/forum/showthread.php?t=84537

    By page 2 gets interesting.

    might be simple as removing .htaccess file. (Turn on the view hidden files in your FTP cart if can't see it)
    Last edited by Muzz; 3 Sep 2009 at 03:56 AM.
    That wasn't the plan!

  10. #10
    Join Date
    Dec 2008
    Location
    Aspen, CO
    Posts
    26
    Plugin Contributions
    0

    Default Re: Can't Login to Admin with Fresh Install

    I uploaded zc_install folder setup and ran. Here's what System Inspection shows:

    * Webserver = Apache
    * HTTP Host = www.skijunk.com
    * Path_Translated = /var/www/vhosts/skijunk.com/httpdocs/store/zc_install/index.php
    * Real Path = /var/www/vhosts/skijunk.com/httpdocs/store
    * Server Free Disk Space = 47.35 GB
    * PHP O/S = Linux
    * PHP API Mode = apache2filter
    * PHP Max Execution Time per page = 30
    * Register Globals = ON Click here for more info
    * MySQL Support = ON
    * MySQL Version = 4.1.21
    * PHP Version = 4.3.2
    * PHP Safe Mode = OFF
    * PHP Sessions Support = ON
    * PHP Session.AutoStart = OFF
    * PHP session.use_trans_sid = OFF
    * Current SQL Cache Folder = /var/www/vhosts/skijunk.com/httpdocs/store/cache -->Writeable
    * Suggested SQL Cache Folder = /var/www/vhosts/skijunk.com/httpdocs/store/cache
    * PHP magic_quotes_runtime setting = OFF
    * PHP magic_quotes_sybase setting = OFF
    * PHP GD Support = ON
    * GD Version = GD bundled (2.0.12 compatible)
    * PHP ZLIB Compression Support = ON
    * PHP OpenSSL Support = ON
    * PHP cURL Support = ON
    * CURL NON-SSL Capability = Okay
    * CURL SSL Capability = Okay
    * PHP Upload Support = ON upload_max_filesize=75M; post_max_size=75M
    * PHP Upload TMP dir =


    View PHPINFO for your server
    Other System Information (For Reference Only)
    The following info does not necessarily indicate any problem or configuration issue. It is simply for the sake of displaying it in an easy-to-find location.

    * PHP include_path = .:
    * PHP SMTP destination = localhost
    * PHP sendmail path = /usr/sbin/sendmail -t -i
    * PHP sendmail 'from' = me@localhost.com
    * PHP open_basedir restrictions = /var/www/vhosts/skijunk.com/httpdocs:/tmp
    * PHP Output Buffering (gzip) = OFF
    * PHP FTP Support = ON
    * PHP XML Support = ON
    * PHP Session.Save_Path = /var/www/vhosts/skijunk.com/httpdocs/store/cache -->Writeable

    File and Folder Permissions
    In order for the installer to store the setup information you provide in the following pages, the configure.php files shown below need to be "writable".

    * includes/configure.php = Writeable
    * admin/includes/configure.php = Writeable

    In order for many Zen Cart™ administrative and day-to-day functions to work properly, You need to mark several files/folders "Writeable". The following is a list of folders which need to be "read-write", along with recommended CHMOD settings. Please correct these settings before continuing installation. Refresh this page in your browser to re-check settings.

    Some hosts may not allow you to set CHMOD 777, but only 666. Start with the higher setting first, and switch to lower values if required.

    * cache = OK
    * images = OK
    * includes/languages/english/html_includes = OK
    * media = OK
    * pub = OK
    * admin/backups = OK
    * admin/images/graphs = OK

    The only errors I see are -

    Register Globals = ON - We always kept that setting in past and Zen Cart has always worked with it on.

    # PHP open_basedir restrictions = /var/www/vhosts/skijunk.com/httpdocs:/tmp

    # PHP Output Buffering (gzip) = OFF

    I've installed and reinstalled both database and zencart installation files several times so reinstall suggestion has already been done.

    I've cleared cookies and cache with local browser.

    I still can't login to admin and get Security error when attempting to login.

    Cheers

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Fresh Install can't get to admin!?
    By ebaobao in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 11 Aug 2008, 04:01 PM
  2. Admin login issues - fresh install - dreamhost
    By gyo in forum Basic Configuration
    Replies: 5
    Last Post: 4 Aug 2007, 06:25 AM
  3. unable to login after several fresh install.
    By zihao85 in forum General Questions
    Replies: 16
    Last Post: 28 May 2007, 10:36 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
  •