Jump to content

breenild

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by breenild

  1. Hey Vangelis,

     

    after some very long try and error I finally solved the problem.

    If you like to know my solution to that problem:

     

    There was something wrong with the clone of my database.

     

    that's the original phpvms_sessions Table:

    Quote

    CREATE TABLE `phpvms_sessions` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `pilotid` int(11) NOT NULL,
      `ipaddress` varchar(25) NOT NULL,
      `logintime` datetime NOT NULL,
      PRIMARY KEY (`id`),
      UNIQUE KEY `sessions01` (`pilotid`,`logintime`,`id`)
    ) ENGINE=MyISAM AUTO_INCREMENT=24042318 DEFAULT CHARSET=latin1;

     

    But in my clone on the new server the primary_key, the unique keys and even the AUTO_INCREMENT was missing for any reason.

     

    After dropping the table and create again in the right way, my login works now!

    And I have now to check all the other tables too, if there's anything missing.

  2. The old mySQL-Server has version: 5.6.44

    the new Server has version: 5.7.21-1

     

    Quote

    Is this happening right after you enter the emai/pilotID, password and then click Log In?

    Yes exactly right after click on "login".

    When I enter a wrong password for example, then correctly appears the message, that the pw is wrong.

    Only when I enter the correct pw, appears this message.

     

    The version of phpVMS is a bit older. I don't know, where I can find the version number.

    The update to a newer version is a bit complicate, because we did a lot of constumizations, which get lost on an update.

     

    the login.php is attached.

     

    Login.zip

  3. Hi!

    actually after transfering my phpvms to a new webserver i have the same issue. After trying to login I get the same message like above.

    In my log.txt I can find following:

    Quote

    =====
    Time: 04.13.20 18:45:24
    =====
    Time: 04.13.20 18:45:24
    Backtrace: DB::write_debug > DB::query > Auth::update_session > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_sessions SET `pilotid`=5, `logintime`=NOW(), `ipaddress`='217.230.xx.xxx' WHERE `id`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
    =====


    =====

     

     

    The error.txt and all other logfiles remained empty.

     

    A bit strange is, that in the update-statement after "where ID="   is nothing.

     

    I already cleaned up the phpvms_sessions table. But it didnt helped.

     

    What can I do?

×
×
  • Create New...