Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,525
    Plugin Contributions
    9

    Default Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    I've seen several post like this one but no solution I've seen for my problem.

    I always use DrByte's suggestion for upgrades. I upload all the files to a new directory on the site/server, I create a new database, I make a backup of old store and restore on the new one created for the upgrade, then I run the install.

    I'm stock on this last page when the db is patched. I haven't upgrade any 1.3.9 to 1.5 (although I have installed 1.5 before). This database (old store) has 3 users/passwords. I've used the 3 of them without success. I get over and over the message Admin Password required to proceed with upgrade.

    At the beginning I got:
    -
    PHP Safe Mode = ON
    I don't know if that hast to be with the failure but I'm notifying it. (I will work on this with customer though).

    Any idea of what could be wrong here?
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    The only time I've ever encountered that same problem was when I'd used a different DB_PREFIX setting in the new store, so the upgrade was actually pointing to the new install's database tables, and not the imported data.
    .

    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 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,525
    Plugin Contributions
    9

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    The database page:



    Settings on patch page:


    As you can see the zen_ is being used on the database. I just rechecked also both config files to see if the prefix was there also written correctly (they were present and correct).
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    Quote Originally Posted by ideasgirl View Post
    I'm stuck on this last page when the db is patched. I haven't upgrade any 1.3.9 to 1.5 (although I have installed 1.5 before). This database (old store) has 3 users/passwords. I've used the 3 of them without success. I get over and over the message Admin Password required to proceed with upgrade.


    The users/passwords that you have stored in the database are not suitable for update purposes. The username/password required is the one that you have previously defined in your zencart configuration files.


    Quote Originally Posted by ideasgirl View Post
    As you can see the zen_ is being used on the database. I just rechecked also both config files to see if the prefix was there also written correctly (they were present and correct).


    Are you 100% *sure* about the 'and correct' part?

    The problem here is that we/you are only seeing half the picture... The half we are seeing is what your configuration files have to say. The half that we are are not seeing is the actual name of the DataBase (and its tables). These must match each other precisely. You can't state that the 'zen_' prefix in your configuration files are correct unless you can also state categorically that the database itself also starts with 'zen_'

    Hopefully this helps a little?

    Cheers
    Rod

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    Rod,

    I must respectfully disagree with you.

    - The password used when upgrading IS indeed the admin password in the database, NOT from the configure.php files. Any valid administrator username and password is accepted (at least in v1.5.1 and older)
    - She did indeed show that the tablename is zen_admin (see the screenshot)
    - She did show that the configure.php file is set to use "zen_" as the database prefix (see the screenshot, which quotes the DB information directly from the /includes/configure.php file)

    @ideasgirl, But as to why it's rejecting the password, I'm puzzled. I suppose you could comment out the section of code that validates the password and just force it since one would assume that if you're this deep into the code then you're also authorized to do the upgrade.
    .

    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.

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    Quote Originally Posted by DrByte View Post
    I must respectfully disagree with you.
    I'm much to clever than to argue with you :)

    Quote Originally Posted by DrByte View Post
    - The password used when upgrading IS indeed the admin password in the database, NOT from the configure.php files. Any valid administrator username and password is accepted (at least in v1.5.1 and older)
    I really must try to stay atop of these changes.

    Quote Originally Posted by DrByte View Post
    - She did indeed show that the tablename is zen_admin (see the screenshot)
    She did indeed. How embarrassing.

    Quote Originally Posted by DrByte View Post
    - She did show that the configure.php file is set to use "zen_" as the database prefix (see the screenshot, which quotes the DB information directly from the /includes/configure.php file)
    Hey, at least I saw that one. :)
    Quote Originally Posted by DrByte View Post
    @ideasgirl, But as to why it's rejecting the password, I'm puzzled. I suppose you could comment out the section of code that validates the password and just force it since one would assume that if you're this deep into the code then you're also authorized to do the upgrade.
    I would've bet $$$ on this being a prefix or username/password mismatch. Now I'm stumped.

    Cheers
    Rod

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    Ya, I'm stumped too. I can't recreate the problem despite trying all manner of odd things.
    Makes me lean back again to the more obvious thing: username/password mismatch ... but ideasgirl insists she entered them correctly.

    I suppose the other possibility is that the password contains multibyte characters and the database export-then-import has mangled those characters due to encoding conflicts.

    One thing I'd try before hacking any code is to simply insert the Admin/admin password from the Password Reset FAQ at http://www.zen-cart.com/content.php?...admin-password (only do the INSERT statement, the others aren't needed in your case) and use that for your credentials in the upgrader. If that works then the username/password from the db import got mangled, and that raises an alarm for you to inspect other possible data corruption problems.
    .

    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.

  8. #8
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,525
    Plugin Contributions
    9

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    Quote Originally Posted by DrByte View Post
    Ya, I'm stumped too. I can't recreate the problem despite trying all manner of odd things.
    Makes me lean back again to the more obvious thing: username/password mismatch ... but ideasgirl insists she entered them correctly.

    I suppose the other possibility is that the password contains multibyte characters and the database export-then-import has mangled those characters due to encoding conflicts.

    One thing I'd try before hacking any code is to simply insert the Admin/admin password from the Password Reset FAQ at http://www.zen-cart.com/content.php?...admin-password (only do the INSERT statement, the others aren't needed in your case) and use that for your credentials in the upgrader. If that works then the username/password from the db import got mangled, and that raises an alarm for you to inspect other possible data corruption problems.
    THANKS! Worked like a charm.... You are a genius!
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    Quote Originally Posted by ideasgirl View Post
    THANKS! Worked like a charm.... You are a genius!
    I tried to tell DrByte that just the other day. He fobbed it of as 'experience' (he lied). :)

    Cheers
    Rod

  10. #10
    Join Date
    Aug 2005
    Location
    San Juan, Puerto Rico
    Posts
    1,525
    Plugin Contributions
    9

    Default Re: Upgrading database 1.3.9 to 1.5.0 Admin password incorrect

    Hahaha! Yeah, I know Rod.

    DrByte, try to replicate this issue when the admin ID is NOT "1". Which is the only thing possible I can think about. The user level was "0" and I changed it later to "1" to see if that was the problem but didn't work. So the only thing (besides your explanation of possible mangled pass) that I can think of is that if the ID is not 1 could be an issue?
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!
    My contributions: SophyBlue / Sophy Blue-Grey / Mistik / The Bookshelf / Dynamic Sideboxes

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 After upgrading database it does not let me log into admin
    By Kyle Rogers in forum General Questions
    Replies: 1
    Last Post: 5 Aug 2016, 03:01 PM
  2. Replies: 11
    Last Post: 19 Jan 2016, 03:38 PM
  3. Upgrading database 1.3.9 to 1.5.0 Admin password incorrect
    By hflsales in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 11 Sep 2012, 11:48 PM
  4. 1.3.8 to 1.3.9f database and admin password problems
    By Cedders in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 27 Sep 2010, 10:47 PM
  5. Replies: 18
    Last Post: 8 Feb 2010, 08:23 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR