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"] );