Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24
  1. #11
    Join Date
    Oct 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Cannot reset admin password

    one other thing. At the top of the site it has the error "Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels." I cannot look into this of course because I cannot log in as admin. Does this help any?

  2. #12
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Cannot reset admin password

    Quote Originally Posted by bishoptech View Post
    one other thing. At the top of the site it has the error "Your database appears to need patching to a higher level. See Admin->Tools->Server Information to review patch levels." I cannot look into this of course because I cannot log in as admin. Does this help any?
    Zen Cart consists of two pieces that must match: PHP files and Database data. If you upgrade PHP files and don't upgrade the database, or vice-versa, you'll get that sort of error message.
    You'll sometimes get that message if you've been hacked and the hackers have damaged any of the files or database records involved in the version detection process.

    So, since you're getting that message, it suggests you've got PHP files out of sync, which coincides with my suggestion to carefully inspect everything on your site to figure out what's different from the original files, and sort out whatever you discover.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #13
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Cannot reset admin password

    Quote Originally Posted by bishoptech View Post
    I only get it when trying to log in with an admin account, and with nonexistent customer accounts.

    You aren't perchance trying to login to admin, in the catalog section of the site where the customers login are you,?

    Customers and admin have completely seperate login pages, in completely seperate parts of the site

    your admin login page would be

    yoursite.com/your_adminfoldeerrname/

    --- had to explain this to someone for the umpteenth time a few days ago
    Webzings Design
    Semi retired from Web Design

  4. #14
    Join Date
    Feb 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Cannot reset admin password

    Quote Originally Posted by bishoptech View Post
    that was the post that I originally started with.
    I lost my Admin login password. So I clicked on "Resend Password" to get a new password. That was two days ago and I have still not received a new password. I have tried a few more times. Still no luck. I am positive my email address works because I have verified it from another address. So how can I retrieve a new password. Need to get into my Admin ASAP.

  5. #15
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Cannot reset admin password

    Quote Originally Posted by danbro0811 View Post
    I lost my Admin login password. So I clicked on "Resend Password" to get a new password. That was two days ago and I have still not received a new password. I have tried a few more times. Still no luck. I am positive my email address works because I have verified it from another address. So how can I retrieve a new password. Need to get into my Admin ASAP.
    https://www.zen-cart.com/tutorials/index.php?article=2

  6. #16
    Join Date
    Feb 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Cannot reset admin password

    Yes, I've already been to that page, but it wasn't helpful. I'm not a tech guy, so all this stuff is pretty much Greek to me. My hosting company is Hostmonster, if that tells anyone what I'm dealing with. The Zen-Car tutorial says to "Open your phpMyAdmin (supplied by your hosting company), select your store's database, then click the "SQL" tab and run this query." OK, first of all, I see no option for "phpMyAdmin." There is one called php Config. However, when I go to that page, I see no SQL tab. So what do I do now?

  7. #17
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Cannot reset admin password

    Quote Originally Posted by danbro0811 View Post
    Yes, I've already been to that page, but it wasn't helpful. I'm not a tech guy, so all this stuff is pretty much Greek to me. My hosting company is Hostmonster, if that tells anyone what I'm dealing with. The Zen-Car tutorial says to "Open your phpMyAdmin (supplied by your hosting company), select your store's database, then click the "SQL" tab and run this query." OK, first of all, I see no option for "phpMyAdmin." There is one called php Config. However, when I go to that page, I see no SQL tab. So what do I do now?
    Log in to your cPanel, which is usually yourdomain.com/cpanel. Once in there, look in the section headed "Databases". There you will find phpMyAdmin.

  8. #18
    Join Date
    Feb 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: Cannot reset admin password

    OK, found that. Now here's the problem. I click on the tab "SQL" which opens the query window. Then I copy the query code into that window: FROM/INTO prefix_admin
    DELETE FROM admin WHERE admin_name = 'Admin';
    INSERT INTO admin (admin_name, admin_email, admin_pass, admin_level)
    VALUES ('Admin', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', 1);

    I run the query, but then i get the following error message:

    Error
    SQL query:
    FROM / INTO prefix_admin DELETE FROM admin WHERE admin_name = 'Admin';
    MySQL said:
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM/INTO prefix_admin
    DELETE FROM admin WHERE admin_name = 'Admin'' at line 1

    Now what do I do? I also tried using the other code.

    I appreciate you help.

  9. #19
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Cannot reset admin password

    First, did you use the correct version of the patch? There are two; one for 1.39 and the other for 1.5. If you're sure you used the correct version then it's likely you pasted it in incorrectly. Make sure you didn't accidentally truncate it, and make sure you don't have extra spaces at the top or bottom. Use only a plain text editor to do the copy/paste.

    PS: Also check to make sure you're not using table prefixes. If you are, you need to edit the patch to add the prefix.

  10. #20
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Cannot reset admin password

    Okay, I think I see the problem. You followed the instructions for databases that use a prefix by appending "prefix" to the table name. If you are using prefixes, the name would be whatever was assigned then the database was created, not "prefix". If you aren't using prefixes, just install the patch as written.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v151 Cannot log into the admin page, or reset the password... any help?
    By brandi_jo in forum General Questions
    Replies: 3
    Last Post: 13 Jan 2014, 03:36 AM
  2. Cannot reset my admin username and password on localhost
    By iceni11 in forum Basic Configuration
    Replies: 5
    Last Post: 7 Aug 2012, 05:15 PM
  3. Cannot reset password
    By europod in forum General Questions
    Replies: 2
    Last Post: 27 Nov 2006, 04:47 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