I’ve sorted out the datatables problem, separate issue.
Commenting out these three lines removes the error from the user profile pages:
// $this->userDashboard = new UserDashboard();
// $this->userProfile = new UserProfile();
// $this->user = new User();
Is there a real fix for this?