Forums / General Questions / cannot login to admin pages after moving to new server

cannot login to admin pages after moving to new server

Views: 1,042

Results 1 to 6 of 6
5 Oct 2015, 2:53 PM
#1
longhaired1 avatar

longhaired1

New Zenner

Join Date:
Jul 2015
Posts:
3
Plugin Contributions:
0

cannot login to admin pages after moving to new server

@package Configuration Settings circa 1.5.3

After moving to a new server we can no longer log in to the admin system. I've done the manual reset via phpmyadmin with no luck. I have noticed that after an unsuccessful login the encrypted password (Admin in plain text ) changes from:

351683ea4e19efe34874b501fdbf9792:9b
to
$2y$10$CbvV5TEcxMhV5TzNwraU1e3hVw8amtPo20OTC/cFHG8bE9eQTCylq

when viewed in PHPmyadmin.

By failing to log in, it rejects the new default password. When I have a new password mailed to me it allows me to start logging in but fails when it forces me to immediately change my password. It rejects the attempt to change, calling the new password invalid, which it's not.

If I roll back my version of php to something earlier the problem of it changing the encrypted password in the database goes away, but it fails to log me in, giving me a blank page after the login attempt.

A zenAdminID cookie is being set but I notice that happens before a login attempt even occurs so that is probably a non issue.

This seems like it may be a php configuration issue more than anything else.

All logins on the customer side are working.

We're not using an ssl certificate for any of this.

Any thoughts?

5 Oct 2015, 5:03 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: cannot login to admin pages after moving to new server

What versions of php are you referencing?

I have noticed that after an unsuccessful login the encrypted password (Admin in plain text )
Admin should not be the password - it should be admin if using the sql found here
https://www.zen-cart.com/content.php?44-how-do-i-change-or-reset-my-admin-password-%28i-lost-it%29

Zen-Venom Get Bitten

5 Oct 2015, 6:43 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: cannot login to admin pages after moving to new server

Error logs being generated? (logs folder)
Plugins installed?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Oct 2015, 9:26 PM
#4
longhaired1 avatar

longhaired1

New Zenner

Join Date:
Jul 2015
Posts:
3
Plugin Contributions:
0

Re: cannot login to admin pages after moving to new server

mc12345678:

Error logs being generated? (logs folder)
Plugins installed?

Thanks for pointing out the existence of the error logs. This seems to be the culprit:

[05-Oct-2015 09:15:56] PHP Fatal error: Call to undefined function zen_encrypt_password_new() in /home/robineli/public_html/includes/functions/password_compat.php on line 19

I will start googling for a solution but if anyone has suggestions... thanks in advance.

5 Oct 2015, 9:37 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: cannot login to admin pages after moving to new server

longhaired1:

Thanks for pointing out the existence of the error logs. This seems to be the culprit:

[05-Oct-2015 09:15:56] PHP Fatal error: Call to undefined function zen_encrypt_password_new() in /home/robineli/public_html/includes/functions/password_compat.php on line 19

I will start googling for a solution but if anyone has suggestions... thanks in advance.

Verfy a satisfactory upload of includes/functions/password_funcs.php

The function is in there in ZC 1.5.4... Would also suggest verfying a full upload of other files to ensure no others accidentally didn't "make it".what was used to transfer the files?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Oct 2015, 10:07 PM
#6
longhaired1 avatar

longhaired1

New Zenner

Join Date:
Jul 2015
Posts:
3
Plugin Contributions:
0

Re: cannot login to admin pages after moving to new server

mc12345678:

Verfy a satisfactory upload of includes/functions/password_funcs.php

The function is in there in ZC 1.5.4... Would also suggest verfying a full upload of other files to ensure no others accidentally didn't "make it".what was used to transfer the files?

Thanks everyone. I re-uploaded the functions folder and all is well.