Last modified: 2014-09-30 16:52:57 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 T73329, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71329 - MobileFrontend fatal in SpecialPage_initList hook
MobileFrontend fatal in SpecialPage_initList hook
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized critical
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-25 20:08 UTC by Brad Jorsch
Modified: 2014-09-30 16:52 UTC (History)
6 users (show)

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


Attachments

Description Brad Jorsch 2014-09-25 20:08:51 UTC
Part of the problem in bug 70686 was that we were blindly redirecting special pages without knowing that the redirect target was another name for the same special page. Fixing that means we need to actually check the aliases' targets.

Fetching the aliases' targets means that the SpecialPage_initList hook may be called earlier in MediaWiki's initialization process. In particular, it may be called when determining the Title object to be placed in the RequestContext.


 [2014-09-25 19:15:42] Fatal error: Call to a member function getFullURL() on a non-object at /srv/mediawiki/php-1.25wmf1/extensions/MobileFrontend/includes/MobileContext.php on line 912
 Server: mw1028
 Method: GET
 URL: http://www.mediawiki.org/w/index.php?title=Special:Search&search=&fulltext=Search&mobileaction=toggle_view_desktop
 Cookie: <redacted>
 Backtrace:
 #0 /srv/mediawiki/php-1.25wmf1/extensions/MobileFrontend/includes/MobileContext.php(912): MobileContext::toggleView()
 #1 /srv/mediawiki/php-1.25wmf1/extensions/MobileFrontend/includes/MobileContext.php(955): MobileContext->toggleView('desktop')
 #2 /srv/mediawiki/php-1.25wmf1/extensions/MobileFrontend/includes/MobileContext.php(343): MobileContext->checkToggleView()
 #3 /srv/mediawiki/php-1.25wmf1/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(328): MobileContext->shouldDisplayMobileView()
 #4 [internal function]: MobileFrontendHooks::onSpecialPage_initList(Array)
 #5 /srv/mediawiki/php-1.25wmf1/includes/Hooks.php(206): call_user_func_array('MobileFrontendH...', Array)
 #6 /srv/mediawiki/php-1.25wmf1/includes/GlobalFunctions.php(3991): Hooks::run('SpecialPage_ini...', Array, NULL)
 #7 /srv/mediawiki/php-1.25wmf1/includes/specialpage/SpecialPageFactory.php(255): wfRunHooks('SpecialPage_ini...', Array)
 #8 /srv/mediawiki/php-1.25wmf1/includes/specialpage/SpecialPageFactory.php(279): SpecialPageFactory::getPageList()
 #9 /srv/mediawiki/php-1.25wmf1/includes/specialpage/SpecialPageFactory.php(645): SpecialPageFactory::getAliasListObject()
 #10 /srv/mediawiki/php-1.25wmf1/includes/specialpage/SpecialPage.php(69): SpecialPageFactory::getLocalNameFor('Search', false)
 #11 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(68): SpecialPage::getTitleFor('Search')
 #12 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(125): MediaWiki->parseTitle()
 #13 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(507): MediaWiki->getTitle()
 #14 /srv/mediawiki/php-1.25wmf1/includes/MediaWiki.php(435): MediaWiki->main()
 #15 /srv/mediawiki/php-1.25wmf1/index.php(46): MediaWiki->run()
 #16 /srv/mediawiki/w/index.php(3): require('/srv/mediawiki/...')
 #17 {main}
Comment 1 Bingle 2014-09-25 20:10:11 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/OxXcHddW
Comment 2 Gerrit Notification Bot 2014-09-26 00:55:17 UTC
Change 163073 had a related patch set uploaded by MaxSem:
Fix fatals due to core changes

https://gerrit.wikimedia.org/r/163073
Comment 3 Gerrit Notification Bot 2014-09-29 19:42:10 UTC
Change 163073 merged by jenkins-bot:
Fix fatals due to core changes

https://gerrit.wikimedia.org/r/163073
Comment 4 Gerrit Notification Bot 2014-09-29 19:50:31 UTC
Change 163655 had a related patch set uploaded by MaxSem:
Fix fatals due to core changes

https://gerrit.wikimedia.org/r/163655
Comment 5 Gerrit Notification Bot 2014-09-29 20:32:45 UTC
Change 163655 abandoned by MaxSem:
Fix fatals due to core changes

https://gerrit.wikimedia.org/r/163655
Comment 6 Ryan Kaldari 2014-09-29 20:50:32 UTC
This should be fixed in 1.25wmf1 later today. (The deployment branch was recut from master.)
Comment 7 Florian 2014-09-30 16:52:57 UTC
deployed in I0829e865ba01436e984bf43fb23e606575d6d35c

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


Navigation
Links