https://bugzilla.wikimedia.org/show_bug.cgi?id=71329
Bug ID: 71329
Summary: MobileFrontend fatal in SpecialPage_initList hook
Product: MobileFrontend
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
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}
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l