Results 1 to 10 of 32

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    52
    Plugin Contributions
    0

    Default can't get into admin

    I tried twice now installinh Zen-Cart. After install( iwent through the whole process and put inall the info including the id and pass word for the admin) but it will not let me in. I tells me that I have the wrong info. When I try to use resent password it tells me the email is not correct. I have uploaded all the file each time I installed the program. I have another cart working with out any problems. Can any body help me?

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

    Default Re: can get into admin

    To reset the Admin password on your site ...

    In phpMyAdmin you could rebuild the admin table in your database so that you have the default login and password ...

    If you do not use a prefix on your database tables, as in the admin table is called: admin

    you can then use:
    Code:
    DROP TABLE IF EXISTS admin;
    CREATE TABLE admin (
    admin_id int(11) NOT NULL auto_increment,
    admin_name varchar(32) NOT NULL default '',
    admin_email varchar(96) NOT NULL default '',
    admin_pass varchar(40) NOT NULL default '',
    admin_level tinyint(1) NOT NULL default '1',
    PRIMARY KEY (admin_id),
    KEY idx_admin_name_zen (admin_name)
    ) TYPE=MyISAM;
    
    and
    
    INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);
    If you use a prefix on your database tables, such as zen_ you could use:
    Code:
    DROP TABLE IF EXISTS zen_admin;
    CREATE TABLE zen_admin (
    admin_id int(11) NOT NULL auto_increment,
    admin_name varchar(32) NOT NULL default '',
    admin_email varchar(96) NOT NULL default '',
    admin_pass varchar(40) NOT NULL default '',
    admin_level tinyint(1) NOT NULL default '1',
    PRIMARY KEY (admin_id),
    KEY idx_admin_name_zen (admin_name)
    ) TYPE=MyISAM;
    
    and
    
    INSERT INTO zen_admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);
    Now try to login to your Admin with:
    Login: Admin
    password: admin

    Once in, you want to edit the Login to be your own with your own password and email address in the Tools ... Admin Settings ...

    NOTE: make sure that you are using the correct database that is referenced in both the:
    /includes/configure.php
    /admin/includes/configure.php

    NOTE: make sure both of those are referencing the same server and database as well ...
    Last edited by Ajeh; 5 Sep 2009 at 04:13 AM. Reason: fixed typos
    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!]
    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
    Join Date
    Sep 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: can get into admin

    having the same problem with admin login, after installing the security patch and changing the name of my admin folder. I have since reversed all the upgrade but i am still unable to login to ZC admin. tried the SQL query and got this error:

    Error
    SQL query:
    CREATE TABLE zen_admin(
    admin_id int( 11 ) NOT NULL AUTO_INCREMENT ,
    admin_name varchar( 32 ) NOT NULL default '',
    admin_email varchar( 96 ) NOT NULL default '',
    admin_pass varchar( 40 ) NOT NULL default '',
    admin_level tinyint( 1 ) NOT NULL default '1',
    PRIMARY KEY ( admin_id ) ,
    KEY idx_admin_name_zen( admin_name )
    ) TYPE = MYISAM ;

    MySQL said:
    #1050 - Table 'zen_admin' already exists

    What next?

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

    Default Re: can get into admin

    Please check the full commands for this ... they start with the:
    DROP TABLE IF EXISTS zen_admin;
    re-read my post and use the one that matches your database tables ...
    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!]
    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
    Join Date
    Jun 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: can get into admin

    thank you for this thread. i'm a zen cart newbie, but am jumping in with two feet and making a big dropship webstore to support my brick and mortar shop.

    i am trying to reset my admin password, i have figured out how to run phpMyAdmin and then ran the command code (above the and) it asked me if i really wanted to do this, i said yes, and then then ran second bit of code, (INSERT INTO...) and hitting go.

    clearly, this was not right, so i got the error:
    MySQL said: Documentation
    #1146 - Table 'icwebstore.admin' doesn't exist
    so i tried running the whole code snipped again and it gave me another error, which i didn't write down but then when i tried again, it gave me:

    MySQL said: Documentation
    #1050 - Table 'zen_admin' already exists
    there was originally an admin table in my store database when i first opened phpMyAdmin. i thought that was the correct table. was there also a zen_admin and did i change the wrong one? i'm using 1.3.8 on a local installation. i recently installed easy populate.

    any advice is appreciated. i'm peeved i didn't file the password i created.

  6. #6
    Join Date
    Jun 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: can get into admin

    oh, and when i try to launch my admin panel, i get this:

    1146 Table 'icwebstore.admin' doesn't exist
    in:
    [select * from admin where admin_name='demo' or admin_name='Admin']
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    help! and THANKS!

  7. #7
    Join Date
    Jul 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: can't get into admin

    new install of latest version. couldn't access admin. this is still an issue. resend pass doesn't work. resetting values to defaults as described here doesn't work.

 

 

Similar Threads

  1. Re: can't get into admin
    By rollow in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 11 Jun 2010, 01:00 AM
  2. Can't get into Admin Area
    By masantner in forum General Questions
    Replies: 1
    Last Post: 16 Jun 2009, 05:07 PM
  3. can't get into admin!
    By sobebabies in forum General Questions
    Replies: 3
    Last Post: 16 Nov 2008, 11:12 PM
  4. Can't get into ADMIN, HELP!
    By paperthreads in forum Basic Configuration
    Replies: 3
    Last Post: 21 Mar 2007, 07:32 PM

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