Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2006
    Posts
    3
    Plugin Contributions
    0

    Default Problems logging into admin panel

    I created a store for a customer about 6-10 months ago... Long story short, they changed the PW and then promptly forgot it (gotta love it), even the email address they used for the account (ugh).

    So I went into the database and used the PW reset script from the ZenCart wiki... That didn't work. So then I used the erase and rebuild entire admin table from this forum... That didn't work either.

    I don't even remember what version of ZenCart this site is using. Is there a way to figure this out without getting into the admin panel? If not, what should be my next move? Can I pull down the entire site (it's heavily customized) and just re-install it? There's virtually nothing in the store now so that isn't a real issue.

    If I can't do that, is there a way to rebuild the entire database? I'm not very good with MySQL and I'm at a real loss here. Thanks in advance.

  2. #2
    Join Date
    Oct 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: Problems logging into admin panel

    I went into the FTP site and the oldest files I could find were modded on 10/13/06... I assume that means I'm running 1.3.5... So, were the scripts I used for a newer version? Will they not work with 1.3.5?

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

    Default Re: Problems logging into admin panel

    Fixing the Admin login and password is the same regardless of version ...

    Assuming that you are not using prefixes on your database tables, peek in your /includes/configure.php on the server to check, you can fix the admin table with the following commands in phpMyAdmin ...

    Find the database that matches your /includes/configure.php file on the server and run these in the SQL ...

    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;
    Code:
    INSERT INTO admin VALUES (1, 'Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);
    Your login is:
    Admin
    Your password is:
    admin

    these are case sensative ...

    Close your browser, clear the cache, open a clean browser session ...

    Login then go to Tools ... Admin Settings ... and reset your password and email address to the correct information ...
    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!

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

    Default Re: Problems logging into admin panel

    NOTE: v1.3.5 does have some errors, security problems and lack of features compared to Zen Cart v1.3.7.1 ...
    http://www.zen-cart.com/forum/showthread.php?t=69769
    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
    Oct 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Problems logging into admin panel

    Hi, I've been having problems logging into admin on my site. Actually, I was having problems logging into both the one on my local computer and the one on the web. I have found this solution (the code part) works for the one on my computer, but not for the one on the web. What do I have to do to be able to log into the one on the web?

    What does this mean exactly? "Assuming that you are not using prefixes on your database tables, peek in your /includes/configure.php on the server to check, you can fix the admin table with the following commands in phpMyAdmin ...

    Find the database that matches your /includes/configure.php file on the server and run these in the SQL"?

    I'm not sure what to do here or anything.

    Please help!

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

    Default Re: Problems logging into admin panel

    On the server, you have two files that set the paths and database for your shop:
    /includes/configure.php
    /admin/includes/configure.php

    They should match on the paths and database information ...

    They also contain a line about a database prefix ... this is where a word is added to the front of the database table names so that:
    admin becomes something_admin
    products becomes something_products

    No prefix would be:
    Code:
      define('DB_PREFIX', '');
    Something for a prefix would be:
    Code:
      define('DB_PREFIX', 'something_');
    where something_ is whatever you may have told it to use during the install such as zen_ ...

    phpMyAdmin is a program that comes with your domain and is accessible via the Control Panel for your domain ...
    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!

  7. #7
    Join Date
    Oct 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Problems logging into admin panel

    Ok, I have these files open in my editor and I'm assuming they need to be in my custom folder in order to change them, correct? Or is this wrong in this case? I changed some things in the "define database connection" section before getting your response, putting the username and password in there. I see where the db_prefix is, but not the other part. I"m not sure what I"m supposed to put in here. Is it supposed to be the database name? I see it in the file in another spot already. Or is it supposed to be the sql database name? I"m so confused! What do I do? I feel like I"m never going to get this done...

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

    Default Re: Problems logging into admin panel

    The configure.php files belong in:
    /includes/configure.php
    /admin/includes/configure.php

    You do NOT use overrides for these files as Zen Cart does NOT come with these files so the is no chance of an overwrite from Zen Cart software being loaded to your site ... other than your own copies of these files ...
    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!

  9. #9
    Join Date
    Oct 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: Problems logging into admin panel

    Thank you so much for your help! It's working now and I can log in. And I made more than one login... live and learn... someone told me it's trial and error - but I wish it wasnt so much error!

    Thanks again.

 

 

Similar Threads

  1. Problems logging into Admin
    By AvatarGamez in forum General Questions
    Replies: 0
    Last Post: 25 Aug 2010, 09:17 AM
  2. Problems Logging Into Admin
    By trevorjdaniel in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 18 Feb 2010, 09:18 AM
  3. Problems logging into admin?
    By Ella in forum General Questions
    Replies: 5
    Last Post: 15 Aug 2006, 12:42 AM

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