Page MenuHomePhabricator

Extension:TwitterCards breaks special pages: "Invalid or virtual namespace -1 given."
Closed, ResolvedPublic

Description

Author: leo_wallentin

Description:
On MW 1.23alpha (5a44ef0), and TwitterCards on current master (2013-11-18), I get the following error when trying to access any special page:

Original exception: [f5119477] /ssm/Special:Version Exception from line 117 of /var/www/w/includes/WikiPage.php: Invalid or virtual namespace -1 given.
Backtrace:
#0 /var/www/w/includes/context/RequestContext.php(200): WikiPage::factory(Title)
#1 /var/www/w/includes/context/ContextSource.php(114): RequestContext->getWikiPage()
#2 /var/www/w/extensions/TwitterCards/TwitterCards.php(52): ContextSource->getWikiPage()
#3 [internal function]: efTwitterCardsHook(OutputPage, SkinSasongsmat)
#4 /var/www/w/includes/Hooks.php(206): call_user_func_array(string, array)
#5 /var/www/w/includes/GlobalFunctions.php(4011): Hooks::run(string, array, NULL)
#6 /var/www/w/includes/OutputPage.php(2073): wfRunHooks(string, array)
#7 /var/www/w/includes/Wiki.php(595): OutputPage->output()
#8 /var/www/w/includes/Wiki.php(447): MediaWiki->main()
#9 /var/www/w/index.php(49): MediaWiki->run()
#10 {main}

Exception caught inside exception handler: [df7704c0] /ssm/Special:Version Exception from line 117 of /var/www/w/includes/WikiPage.php: Invalid or virtual namespace -1 given.
Backtrace:
#0 /var/www/w/includes/context/RequestContext.php(200): WikiPage::factory(Title)
#1 /var/www/w/includes/context/ContextSource.php(114): RequestContext->getWikiPage()
#2 /var/www/w/extensions/TwitterCards/TwitterCards.php(52): ContextSource->getWikiPage()
#3 [internal function]: efTwitterCardsHook(OutputPage, SkinSasongsmat)
#4 /var/www/w/includes/Hooks.php(206): call_user_func_array(string, array)
#5 /var/www/w/includes/GlobalFunctions.php(4011): Hooks::run(string, array, NULL)
#6 /var/www/w/includes/OutputPage.php(2073): wfRunHooks(string, array)
#7 /var/www/w/includes/exception/MWException.php(220): OutputPage->output()
#8 /var/www/w/includes/exception/MWException.php(260): MWException->reportHTML()
#9 /var/www/w/includes/exception/MWExceptionHandler.php(44): MWException->report()
#10 /var/www/w/includes/exception/MWExceptionHandler.php(118): MWExceptionHandler::report(MWException)
#11 /var/www/w/includes/Wiki.php(454): MWExceptionHandler::handle(MWException)
#12 /var/www/w/index.php(49): MediaWiki->run()
#13 {main}


Version: master
Severity: normal

Details

Reference
bz62134

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:51 AM
bzimport set Reference to bz62134.

Change 131658 had a related patch set uploaded by Legoktm:
Use TextExtracts and PageImages extensions

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