Page MenuHomePhabricator

Can't use social userpage as the main profile
Closed, ResolvedPublic

Description

When I click on the "use social userpage" button on my profile this is the error message I get:

[e6e922d50245cc7de4e23fd5] /Special:ToggleUserPage Error from line 81 of /var/www/html/extensions/SocialProfile/UserProfile/SpecialToggleUserPageType.php: Call to protected method Article::getContentObject() from context 'SpecialToggleUserPage'

Backtrace:

#0 /var/www/html/includes/specialpage/SpecialPage.php(522): SpecialToggleUserPage->execute(NULL)
#1 /var/www/html/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)
#2 /var/www/html/includes/MediaWiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
#3 /var/www/html/includes/MediaWiki.php(860): MediaWiki->performRequest()
#4 /var/www/html/includes/MediaWiki.php(521): MediaWiki->main()
#5 /var/www/html/index.php(43): MediaWiki->run()
#6 {main}

Also, the userboxes still not displaying on my profile (which I have reported in the past here here: https://phabricator.wikimedia.org/T158228) even though I have set $wgUserProfileDisplay['userboxes'] to true in my LocalSettings.php under my SocialProfile extension.

My MediaWiki version: 1.29.0-alpha (476678e) 02:21, 2017 February 15
My SocialProfile version: 1.12 (fef1477) 17:31, 2017 February 9

Event Timeline

Change 338149 had a related patch set uploaded (by Jack Phoenix):
Fix fatal on Special:ToggleUserPage

https://gerrit.wikimedia.org/r/338149

Change 338149 merged by Jack Phoenix:
Fix fatal on Special:ToggleUserPage

https://gerrit.wikimedia.org/r/338149

ashley claimed this task.
ashley removed a project: Patch-For-Review.
ashley subscribed.

Fixed, thanks again.

As for the userboxes, note that you also need to set $wgEnableUserBoxes = true; in your wiki's LocalSettings.php in addition to setting $wgUserProfileDisplay['userboxes'] = true; in order for the userboxes to show up on user profile pages.