Forums / Upgrading to 1.5.x / Can't upgrade db: Admin Password Required- but won't accept my password

Can't upgrade db: Admin Password Required- but won't accept my password

Views: 14,585

Results 21 to 40 of 88
20 Jul 2014, 7:34 PM
#21
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Can't upgrade db: Admin Password Required- but won't accept my password

No I understand that, but I was under the impression that ZC 1.5.1 didn't work with PHP 5.4 without some patching. If it does work with 5.4, then great!

20 Jul 2014, 10:04 PM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't upgrade db: Admin Password Required- but won't accept my password

No, v1.5.3 will work fine with PHP 5.4

.
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.

20 Jul 2014, 10:08 PM
#23
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

DrByte:

No, v1.5.3 will work fine with PHP 5.4

Ok great! Thanks! :)

21 Jul 2014, 3:15 AM
#24
doitwithlife avatar

doitwithlife

New Zenner

Join Date:
Feb 2014
Location:
Portland, oregon
Posts:
4
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

Looks like I'm seeing the same or similar issue. When attempting a database update from 1.5.1 to 1.5.2 + 1.5.3 I'm getting this in the logs

[20-Jul-2014 19:40:49 America/Los_Angeles] PHP Warning: require_once(C:/Web/../includes/classes/vendors/password_compat-master/lib/password.php): failed to open stream: No such file or directory in C:\Web\includes\classes\class.zcPassword.php on line 52
[20-Jul-2014 19:40:49 America/Los_Angeles] PHP Fatal error: require_once(): Failed opening required 'C:/Web/../includes/classes/vendors/password_compat-master/lib/password.php' (include_path='.;C:\php\pear') in C:\Web\includes\classes\class.zcPassword.php on line 52

I'm working on a local version of my site (laptop running windows 8 . 1.5.1 was working fine. Did the file merge and the site appears to function, but tells me the database is behind. When running the zc_install database only option, when clicking upgrade now, it goes to a general error, 500 if my memory is correct.

PHP Version = 5.4.24, running on Windows 8 localhost

Anything to check next?

21 Jul 2014, 9:54 AM
#25
isis avatar

isis

New Zenner

Join Date:
Apr 2014
Posts:
2
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

jeking:

I'm upgrading from 1.5.2 to 1.5.3. When I go to upgrade the db, I'm getting 'Admin Password required to proceed with upgrade'. To reset the admin password, to be sure I was using the right one, but get the same error.

I was having the exact same problem upgrading from 1.5.1 to 1.5.3. Finally I had to pay a web developer to completely uninstall 1.5.1 and then install 1.5.3 It cost me a few dollars but was well worth it to save me the aggravation.

21 Jul 2014, 8:34 PM
#26
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

DrByte:

Puzzling.
Ajeh and I have tested on 5.3.10 and 5.4.30 and 5.5.7 and had no problems with it. Hmmmm...

I have following info about the server:

PHP Version: 5.4.28 (Zend: 2.4.0)
Database: MySQL 5.5.36-cll
Server OS: Linux
HTTP Server: Apache

I may be blond but at least I found Zen.

21 Jul 2014, 11:27 PM
#27
mobileg avatar

mobileg

New Zenner

Join Date:
Jul 2014
Location:
Sydney
Posts:
4
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

doitwithlife:

Looks like I'm seeing the same or similar issue. When attempting a database update from 1.5.1 to 1.5.2 + 1.5.3 I'm getting this in the logs

[20-Jul-2014 19:40:49 America/Los_Angeles] PHP Warning: require_once(C:/Web/../includes/classes/vendors/password_compat-master/lib/password.php): failed to open stream: No such file or directory in C:\Web\includes\classes\class.zcPassword.php on line 52
[20-Jul-2014 19:40:49 America/Los_Angeles] PHP Fatal error: require_once(): Failed opening required 'C:/Web/../includes/classes/vendors/password_compat-master/lib/password.php' (include_path='.;C:\php\pear') in C:\Web\includes\classes\class.zcPassword.php on line 52

I'm working on a local version of my site (laptop running windows 8 . 1.5.1 was working fine. Did the file merge and the site appears to function, but tells me the database is behind. When running the zc_install database only option, when clicking upgrade now, it goes to a general error, 500 if my memory is correct.

PHP Version = 5.4.24, running on Windows 8 localhost

Anything to check next?

I had the same issue, in class.zcPassword.php the DIR_WS_CLASSES that is supposed to be "includes/classes" has turned into "../includes/classes/" therefore the path is no longer valid, see the error log

"C:/Web/../includes/classes/vendors/password_compat-master/lib/password.php"

note the "../" is causing the problem

Below is just a quick fix to get it through, in "includes/classes/class.zcPassword.php" change the following

  require_once (DIR_FS_CATALOG . "includes/classes/" . 'vendors/password_compat-master/lib/password.php');

// require_once (DIR_FS_CATALOG . DIR_WS_CLASSES . 'vendors/password_compat-master/lib/password.php');

Hope this helps.

21 Jul 2014, 11:30 PM
#28
mobileg avatar

mobileg

New Zenner

Join Date:
Jul 2014
Location:
Sydney
Posts:
4
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

ellivir:

Thanks DrByte,
now it accepts the password but the next page is BLANK and the logs has this Fatal Error:

PHP Fatal error: require_once(): Failed opening required '/home/myserverspace123/public_html/shop/../includes/classes/vendors/password_compat-master/lib/password.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myserverspace123/public_html/shop/includes/classes/class.zcPassword.php on line 52

the "../" is causing the problem. Check my previous post for a quick fix.

21 Jul 2014, 11:53 PM
#29
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Can't upgrade db: Admin Password Required- but won't accept my password

DarkAngel:

Hope the mod creators for ty tracker, superorders and edit orders get their packages updated with 1.5.3 code
As soon as our time permits we will.. I'm sure you understand that PAYING work, family, vacations, etc. is a higher priority.. (for me at least)

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

22 Jul 2014, 12:15 AM
#30
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

DivaVocals:

As soon as our time permits we will.. I'm sure you understand that PAYING work, family, vacations, etc. is a higher priority.. (for me at least)

you go girl, thae grand mistress of multitasking...LOL

I totally understand and am waiting on the update. This would have been a paying gig for me too tis why I did atest store using 1.5.3 vs the live 1.5.1 store.

ah well...thanks sweety for all you mod creators/editors do for us.

22 Jul 2014, 4:03 AM
#31
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Can't upgrade db: Admin Password Required- but won't accept my password

For those of you getting the file-not-found issue, what is your DIR_FS_CATALOG defined to in your /includes/configure.php file?

.
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.

22 Jul 2014, 4:13 AM
#32
loveofthehorse avatar

loveofthehorse

New Zenner

Join Date:
Jul 2014
Location:
Blanchard, Idaho USA
Posts:
21
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

DrByte:

For those of you getting the file-not-found issue, what is your DIR_FS_CATALOG defined to in your /includes/configure.php file?

This is what I have in my configure.php file

define('DIR_FS_CATALOG', 'C:/Web/');

As this is a local version of my site, living on my laptop it seems correct and is the directory where the site lives

Thanks to those of you developing this software during your endless free time :)

22 Jul 2014, 11:34 AM
#33
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

DrByte:

For those of you getting the file-not-found issue, what is your DIR_FS_CATALOG defined to in your /includes/configure.php file?

It's in the style like
/home/myserverspace123/public_html/shop/

I may be blond but at least I found Zen.

22 Jul 2014, 2:14 PM
#34
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

I got mine forward by editing the file class.zcPassword.php as suggested above. Now the db is patched and the shop is working.

I may be blond but at least I found Zen.

22 Jul 2014, 5:24 PM
#35
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

DrByte:

For those of you getting the file-not-found issue, what is your DIR_FS_CATALOG defined to in your /includes/configure.php file?

Mine is - define('DIR_FS_CATALOG', '/home/server/public_html/catalog/');

23 Jul 2014, 2:07 AM
#36
loveofthehorse avatar

loveofthehorse

New Zenner

Join Date:
Jul 2014
Location:
Blanchard, Idaho USA
Posts:
21
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

loveofthehorse:

This is what I have in my configure.php file

define('DIR_FS_CATALOG', 'C:/Web/');

As this is a local version of my site, living on my laptop it seems correct and is the directory where the site lives

Thanks to those of you developing this software during your endless free time :)

I also used the suggested work around tonight to class.zcPassword.php as suggested above. The store is functional locally, but looking at another issue which most likely is unrelated

25 Jul 2014, 9:52 PM
#37
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

mobileg:

I had the same issue, in class.zcPassword.php the DIR_WS_CLASSES that is supposed to be "includes/classes" has turned into "../includes/classes/" therefore the path is no longer valid, see the error log

"C:/Web/../includes/classes/vendors/password_compat-master/lib/password.php"

note the "../" is causing the problem

Below is just a quick fix to get it through, in "includes/classes/class.zcPassword.php" change the following

  require_once (DIR_FS_CATALOG . "includes/classes/" . 'vendors/password_compat-master/lib/password.php');

// require_once (DIR_FS_CATALOG . DIR_WS_CLASSES . 'vendors/password_compat-master/lib/password.php');

Hope this helps.

I hate to beat this dead horse a little more, but is this the official solution for the problem? I've tried a few more times and keep getting the same file-not-found error. I just don't want to break something else by using this workaround. :)

26 Jul 2014, 3:48 PM
#38
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

  1. Uploaded the revised general.php file linked by DrByte earlier in this thread
  2. Applied the revision to 'includes/classes/class.zcPassword.php' as posted earlier in this thread

Now, I'm getting the same white page after the hit the database upgrade button and this error appears in the logs folder:
"[26-Jul-2014 11:39:00 America/New_York] PHP Fatal error: Call to undefined function password_verify() in /home/laurel34/public_html/catalog/includes/classes/class.zcPassword.php on line 92"

So, I undid #2 from above and tried the database upgrade again. Again with the white screen, but no error log this time. I'm about to rip my hair out. Please tell me what to do to get this database upgraded. Please I beg of someone!

26 Jul 2014, 4:00 PM
#39
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

laurelsstitchery:

  1. Uploaded the revised general.php file linked by DrByte earlier in this thread
  2. Applied the revision to 'includes/classes/class.zcPassword.php' as posted earlier in this thread

Now, I'm getting the same white page after the hit the database upgrade button and this error appears in the logs folder:
"[26-Jul-2014 11:39:00 America/New_York] PHP Fatal error: Call to undefined function password_verify() in /home/laurel34/public_html/catalog/includes/classes/class.zcPassword.php on line 92"

So, I undid #2 from above and tried the database upgrade again. Again with the white screen, but no error log this time. I'm about to rip my hair out. Please tell me what to do to get this database upgraded. Please I beg of someone!

Actually, I did get an error log on try #2:
"[26-Jul-2014 11:47:12 America/New_York] PHP Warning: require_once(/home/laurel34/public_html/catalog/../includes/classes/vendors/password_compat-master/lib/password.php): failed to open stream: No such file or directory in /home/laurel34/public_html/catalog/includes/classes/class.zcPassword.php on line 52
[26-Jul-2014 11:47:12 America/New_York] PHP Fatal error: require_once(): Failed opening required '/home/laurel34/public_html/catalog/../includes/classes/vendors/password_compat-master/lib/password.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/laurel34/public_html/catalog/includes/classes/class.zcPassword.php on line 52"

26 Jul 2014, 4:30 PM
#40
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Can't upgrade db: Admin Password Required- but won't accept my password

laurelsstitchery:

Actually, I did get an error log on try #2:
"[26-Jul-2014 11:47:12 America/New_York] PHP Warning: require_once(/home/laurel34/public_html/catalog/../includes/classes/vendors/password_compat-master/lib/password.php): failed to open stream: No such file or directory in /home/laurel34/public_html/catalog/includes/classes/class.zcPassword.php on line 52
[26-Jul-2014 11:47:12 America/New_York] PHP Fatal error: require_once(): Failed opening required '/home/laurel34/public_html/catalog/../includes/classes/vendors/password_compat-master/lib/password.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/laurel34/public_html/catalog/includes/classes/class.zcPassword.php on line 52"

And I got it to work finally. THanks! :)