#45 Fix: Missing argument 5 for User::__construct() in login

Unstable (example)
closed
mastacontrola
None
5
2014-05-26
2011-06-01
sergej
No

Hi,

I experienced the following issue:
Warning: Missing argument 5 for User::__construct(), called in /var/www/fog/mobile/includes/processlogin.include.php on line 27 and defined in /var/www/fog/lib/fog/User.class.php on line 30.

When you compare the the two mentioned methods, you recognize that one parameter is missing in processlogin.include.php on line 27. So I add a fifth parameter named uID and the problem was fixed.

Line 27 looks like this:
$currentUser = new User($ar["uID"], $ar["uName"], $_SERVER["REMOTE_ADDR"], time(), $ar["uType"] );

Regards.

Sergej

Discussion

  • sergej
    sergej
    2011-06-01

    processlogin.include.php with fix

     
  • mastacontrola
    mastacontrola
    2014-05-26

    ProcessLogin is now it's own class file. Those needing this particular file will still be able to find it.

    Thank you,

     
  • mastacontrola
    mastacontrola
    2014-05-26

    • status: open --> closed
    • assigned_to: mastacontrola
    • Group: --> Unstable (example)