The idea is you have to define attributes of a clase before using them. If you don't, objects won't have scope to the actual attributes. So edit the UserProfilePage class, in UserProfilePage.php file, and declare these attributes:
Latest comment: 10 years ago2 comments2 people in discussion
The Original Barnstar
I was looking for a solution to not being able to access my userpage after installing Social Profile - well there was a bit more involved than that as it's a fresh setup, but anyway - and I found your solution posted on the talk pages. I was actually searching for a solution for this database error which pointed me towards Social Profile:
"UserStatsTrack::updateWeeklyPoints". Database returned 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 'WHERE up_user_id = '1 at line 1 (localhost)".
I put your declarations in the class section of that file and voila! got access to the userpages again.
I'm still looking for a solution to the database error that comes up when I make a blog post, but am so pleased to have access to my userpages again.
I am running the same versions - MW 1.21 and the latest Social Profile, I think v1.50?