Fatal error: Uncaught Error: Call to a member function getUserId() on null in /home/dpb/public_html/userView.php:23 Stack trace: #0 /home/dpb/public_html/userView.php(50): userView->__construct() #1 {main} thrown in /home/dpb/public_html/userView.php on line 23