Last modified: 2014-10-16 12:15:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51280, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49280 - SocialProfile not compatible with MW 1.21 due to ContentHandler changes; major loss of functionality as a result
SocialProfile not compatible with MW 1.21 due to ContentHandler changes; majo...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SocialProfile (Other open bugs)
master
All All
: Lowest major (vote)
: ---
Assigned To: Jack Phoenix
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-06 22:48 UTC by Jack Phoenix
Modified: 2014-10-16 12:15 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jack Phoenix 2013-06-06 22:48:23 UTC
SocialProfile's UserProfile implements the social user profile via UserProfile/UserProfilePage.php and a function (wfUserProfileFromTitle) in UserProfile/UserProfile.php which is hooked to the ArticleFromTitle hook. Social profile pages can either be in the User: namespace or alternatively in the User_profile: namespace, depending on the user's personal preference. If the user has chosen a social profile over the standard wiki user page, then their social profile will be on the User: namespace and the wiki user page will be on the UserWiki: namespace.

The UserProfilePage class extends the core MediaWiki Article class and until MediaWiki 1.21, it worked flawlessly. Due to some major changes to core, of which I suspect that ContentHandler is the biggest, this no longer works as of MW 1.21. When running SocialProfile, social user pages do not display _at all_ and standard User: pages cannot be edited (due to the code in aforesaid wfUserProfileFromTitle function, which intentionally prevents editing of user pages since social profiles cannot be edited via ?action=edit but rather via Special:UpdateProfile).

The Apache/PHP error log has entries like this: " PHP Notice:  Inaccessible property via __get(): user_id in /var/www/live/w/includes/Article.php on line 1918" which would be totally understandable...if I was trying to access an Article member variable, but user_id is a class member variable of the UserProfilePage class, defined in its constructor function, on line 23 (along with a bunch of other custom class member variables).

Some help in fixing SocialProfile for 1.21+ installations would be very much appreciated.
Comment 1 Jack Phoenix 2013-07-09 22:19:43 UTC
This has somewhat been worked around in cb2e850b197915d83af628ba5139a31edca5eeea but it doesn't exactly address the underlying issue, which is that SocialProfile doesn't support ContentHandler, but at least it's not horribly broken now.
Comment 2 Daniel Kinzler 2013-07-09 22:47:09 UTC
Hm, I think SocialProfile could benefit a lot from ContentHandler support...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links