Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Plugin Contributions
    0

    bug Can't create admin!?

    HEELP, I wanted to change the admin password from Tools>admin settings and thats when everything started. It wouldn't accept the new password after trying over and over again. So I deleted the admin and wanted ao make a new admin but it still gives me an error with the password although I made sure it was long enough I kept getting the message : " Your new Password must contain a minimum of 5 characters." in red so now there is no admin at all

    Where can the bug be? Is there a file I can replace? I was installing Captcha and other stuff just before that happened...

  2. #2
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Can't create admin!?

    You can rebuild your admin accounts using this FAQ: https://www.zen-cart.com/tutorials/index.php?article=2
    .

    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. #3
    Join Date
    Aug 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Can't create admin!?

    didn't help. As I said I deleted the admin so there is no admin at all at this point

    SQL query:

    DELETE FROM admin WHERE admin_name = 'Admin';



    MySQL said:

    #1146 - Table 'plumber_Joomlabak.admin' doesn't exist

  4. #4
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Can't create admin!?

    Quote Originally Posted by molumania View Post
    MySQL said:

    #1146 - Table 'plumber_Joomlabak.admin' doesn't exist
    Sounds like you're looking at the wrong database. Zen Cart is not Joomla.
    .

    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.

  5. #5
    Join Date
    Aug 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Can't create admin!?

    it was correct. I built the behind my Joomla.

    How can it delete "admin" if there was no admin. The last thing I saw yesterday was that I deleted the only admin account and couldn't create a new one because of the error that passwod must contain 5 characters...

    Any idea what might have caused this bug?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Can't create admin!?

    bug?

    You went and deleted all your admin users.

    Now you're trying to follow a properly-documented FAQ article which explains how to put back at least one Admin user so you can access your data.

    But you're looking in the wrong database. Or at least in the wrong table in the database.

    Maybe when you installed your site you used a table-prefix such that all your Zen Cart tables start with a "zen_" prefix or something similar. If you did, then you'll have to adapt the table name in the FAQ to add the zen_ prefix for both the DELETE and INSERT statements.
    .

    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.

  7. #7
    Join Date
    Aug 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Can't create admin!?

    Hi again,

    I already deleted the whole thing and reinstalled a new copy, but why I am still interested in this is because of the fact you haven't answered yet that I was trying to add a user thrugh the admin before I was logged out (because I had to sleep and was timed out) and kept getting the error Your new Password must contain a minimum of 5 characters and no matter what password I tried with different usernames and different emails it wouldn't create a new admin.

    Your sql query is if I loose mt password in a normal case and resets the admin or am I wrong. Why do you think it would have fixed this issue?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Can't create admin!?

    Quote Originally Posted by molumania View Post
    I wanted to change the admin password from Tools>admin settings and thats when everything started. It wouldn't accept the new password after trying over and over again.
    It would seem the root of your problem is there. Something must be broken in one or more customizations/addons added to your site.
    On a fresh clean uncustomized install of the current version of Zen Cart, I can change passwords easily.

    Quote Originally Posted by molumania View Post
    So I deleted the admin and wanted ao make a new admin but it still gives me an error with the password although I made sure it was long enough I kept getting the message : " Your new Password must contain a minimum of 5 characters." in red
    Again, on a fresh uncustomized install I can add a new user using the minimum of 5 characters password, and it works fine.

    Quote Originally Posted by molumania View Post
    Where can the bug be? Is there a file I can replace? I was installing Captcha and other stuff just before that happened...
    I would recommend researching all the customizations you've made to your site.
    .

    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.

  9. #9
    Join Date
    Aug 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Can't create admin!?

    if you read my first post, and your last post then you will realize that I repeatedly said the same and didn't get any helpful or new information. I said from the start that something was broken and hoped that this has happened to someone before me and that the person could tell me the cause. So you finally agree with me that something is broken - Thank you

  10. #10
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Can't create admin!?

    If that's what you're asking, then yes, you've got something broken on your site.
    And, no, what you've described is not how the software works "out-of-the-box".

    Sorry to disappoint you by trying to give you a quick solution to getting an actual admin user back into your database so that you could login to it.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can I create customers from admin?
    By BGundlach in forum General Questions
    Replies: 2
    Last Post: 7 Jul 2014, 06:30 PM
  2. Can not create Admin account
    By noruga in forum General Questions
    Replies: 2
    Last Post: 11 Mar 2013, 10:03 AM
  3. How can I create new directories and files from Admin?
    By bluesky1992 in forum Customization from the Admin
    Replies: 9
    Last Post: 3 Oct 2011, 03:01 AM
  4. Can Admin edit/create H1 tags?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Sep 2009, 08:09 PM
  5. Can you create customer from admin/edit a password
    By paulFromWales in forum General Questions
    Replies: 2
    Last Post: 15 Sep 2007, 04:17 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