Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2015
    Posts
    3
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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...28i-lost-it%29
    Last edited by kobra; 5 Oct 2015 at 06:06 PM.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

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

  4. #4
    Join Date
    Jul 2015
    Posts
    3
    Plugin Contributions
    0

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

    Quote Originally Posted by mc12345678 View Post
    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. #5
    Join Date
    Jul 2012
    Posts
    16,735
    Plugin Contributions
    17

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

    Quote Originally Posted by longhaired1 View Post
    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...

  6. #6
    Join Date
    Jul 2015
    Posts
    3
    Plugin Contributions
    0

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

    Quote Originally Posted by mc12345678 View Post
    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.

 

 

Similar Threads

  1. v139h Can't get into my admin after moving to a new server
    By tpeck in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 29 Jul 2013, 03:03 PM
  2. v138a after moving to different server problem with login to admin
    By Ambra in forum Installing on a Windows Server
    Replies: 6
    Last Post: 16 Jun 2012, 07:55 PM
  3. After moving to new server cant acsses admin
    By actionx in forum Installing on a Linux/Unix Server
    Replies: 37
    Last Post: 27 Feb 2012, 08:53 PM
  4. Can't access Admin after moving to new server
    By eranariel in forum General Questions
    Replies: 5
    Last Post: 25 Apr 2011, 09:35 AM
  5. Cannot log into admin, or user login after moving servers
    By andyase in forum General Questions
    Replies: 2
    Last Post: 4 Apr 2010, 06:59 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