Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Plugin Contributions
    0

    Default Admin Login Problem Solution (after hosting upgrade to PHP 5)

    So, I see there are countless threads regarding problems logging in to the admin side of things. I just encountered this issue myself and was able to solve it, so now I'm sharing the solution with you all.

    First of all, I'm running Zen Cart 1.3.5, MySQL 4.1.22, and PHP version...well, let's get to that in a moment.

    My problem was this. When trying to log into the admin side, or even trying to log into a customer account, if a correct user/pass was entered, the login screen just refreshed with no error. No 500 errors in the logs, nothing obvious at all. If an incorrect user/pass combo was entered, the normal "Error: Sorry, there is no match for that email address and/or password." error was shown, as it usually does.

    After checking in with my server guy he did just make a pretty significant change: upgrading from PHP4 to PHP5 (5.2.3 to be exact). You see, PHP4 has been EOL'd (see http://www.php.net/archive/2007.php) as announced on July 13. Hence, the upgrade to PHP5 may be widespread and contributing to this trend in login errors.

    Now, there is a known bug in PHP 5.2.0 that was previously outlined here: http://www.zen-cart.com/forum/showpo...7&postcount=26

    Apparently this bug is still present in PHP 5.2.3 but the workaround detailed in that thread solved the problem for me.

    I hope this helps a few others, as it certainly stopped me from pulling all of my hair out.

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

    Default Re: Admin Login Problem Solution

    Quote Originally Posted by blervin View Post
    Apparently this bug is still present in PHP 5.2.3 but the workaround detailed in that thread solved the problem for me.
    FYI - Using or upgrading to v1.3.7 or v1.3.7.1 also resolves that problem.
    .

    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
    Sep 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Admin Login Problem Solution (after hosting upgrade to PHP 5)

    hi i am having intermitent problems being kicked off the admin side at random times with no partern really. I can the log back in and it's fine. have searched here and deleted sessions, etc on database with no result and always made sure to clear my computor cache/cookies etc.

    any ideas on what i've missed?

 

 

Similar Threads

  1. v139d Problem with admin after migration to new hosting company.
    By TinMan780 in forum General Questions
    Replies: 2
    Last Post: 17 Jan 2013, 05:05 AM
  2. login problem after upgrade
    By diedwater in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 21 Sep 2010, 05:45 PM
  3. unable to login as admin after upgrade
    By fakeDecoy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 5 Aug 2010, 05:48 AM
  4. Can't login after upgrade to 1.3.9e: solution = clear browser cookies
    By badarac in forum Upgrading from 1.3.x to 1.3.9
    Replies: 9
    Last Post: 4 Aug 2010, 08:47 PM
  5. 0 DB_ERROR_NOT_CONNECTED ADMIN Problem After Moving To New Hosting
    By HelenSama in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 1 Apr 2009, 10:32 PM

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