Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Posts
    24
    Plugin Contributions
    0

    Default cannot log in admin area after moveto new server

    I have moved shop from a dedicated server use plesk migration tool to a new dedicated server in same company aplus net . everthing works ok but can not log in admin area . tried to resend a password by email , no email . tried https://www.zen-cart.com/tutorials/index.php?article=2 still cann't log in . using zen cart version 3.60 . try to restore DB by myphpadmin . get message data already exsist .

  2. #2
    Join Date
    Mar 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: cannot log in admin area after moveto new server

    Following is chat record with my host company see if that helps :
    I am seeing a PHP Fatal error.
    [error] [client 121.223.245.129] PHP Fatal error: Call to a member function Execute() on a non-object in /var/www/vhosts/sxxxx/httpdocs/includes/functions/sessions.php on line 61, referer: http://xxxx/admin/login.php
    That indicates that something in the code has an issue but not server
    It could be that a file has not been uploaded or that the file was uploaded in ascii mode and it should have been uploaded in binary mode

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: cannot log in admin area after moveto new server

    This is most likely causes by going to php 5.x on your server ...

    In the two sessions.php functions, you can try adding:
    Code:
        function _sess_write($key, $val) {
          global $db;
          if (!is_object($db)) {
            //PHP 5.2.0 bug workaround ... 
            $db = new queryFactory();
            $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
          }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Apr 2006
    Posts
    56
    Plugin Contributions
    0

    help question Re: cannot log in admin area after moveto new server

    Quote Originally Posted by Ajeh View Post
    This is most likely causes by going to php 5.x on your server ...

    In the two sessions.php functions, you can try adding:
    Code:
        function _sess_write($key, $val) {
          global $db;
          if (!is_object($db)) {
            //PHP 5.2.0 bug workaround ... 
            $db = new queryFactory();
            $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
          }
    Hi Ajeh:

    I have had the same problem when my hoster changed to PHP 5.2.

    I've tried the solution you said and all work perfect again-

    But I have a doubt, you are talking of 2 sessions.php. I got the message in public_html/cart/includes/functions/session.php, that was where I got the error into admin panel, but I was having the same error every time than an user tried to log, apparently no errors on login, but the user couldn't get into, so no possiblity to purchase either.

    I changed also the public_html/cart/admin/includes/functions/sessions.php case that this one were the other file.

    Really, with only the first change all back to work again(adminn panel and users login , but I have the doubt if more sessions.php are affected for the PHP5.2 bug.

    Any ideas?

    Thanks for your help

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: cannot log in admin area after moveto new server

    In the Admin I used for:
    /admin/includes/functions/sessions.php
    Code:
        function _sess_write($key, $val) {
          global $SESS_LIFE, $db;
          if (!is_object($db)) {
            //PHP 5.2.0 bug workaround ...
            $db = new queryFactory();
            $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
          }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Apr 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: cannot log in admin area after moveto new server

    Quote Originally Posted by Ajeh View Post
    In the Admin I used for:
    /admin/includes/functions/sessions.php
    Code:
        function _sess_write($key, $val) {
          global $SESS_LIFE, $db;
          if (!is_object($db)) {
            //PHP 5.2.0 bug workaround ...
            $db = new queryFactory();
            $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
          }
    Many thanks, that was the way I did.

    Cheers!!

 

 

Similar Threads

  1. cannot login to admin pages after moving to new server
    By longhaired1 in forum General Questions
    Replies: 5
    Last Post: 5 Oct 2015, 11:07 PM
  2. Replies: 9
    Last Post: 11 Mar 2015, 08:51 AM
  3. Cannot access admin area, receive a 500 Internal Server Error
    By crewgirl in forum Installing on a Windows Server
    Replies: 15
    Last Post: 18 Mar 2011, 05:15 AM
  4. I can't Log In to Admin after install/move to a new server
    By uni in forum Installing on a Windows Server
    Replies: 19
    Last Post: 2 Oct 2008, 07:37 AM

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