Page MenuHomePhabricator

Failed to map interlanguage prefix ca to a global site ID
Closed, ResolvedPublic

Description

I am getting notices when saving a page in the client with local interwiki links (e.g. [[it:Roma]]) This causes me to be unable to save the page.

I think this is because of cached SiteList data which is missing navigation ids. I can't reproduce on test2 or on beta wikipedia.

[17-Mar-2014 23:06:31] PHP Notice: Failed to map interlanguage prefix ca to a global site ID. [Called from Wikibase\LangLinkHandler::localLinksToArray in /Library/WebServer/Documents/php-master/extensions/Wikibase/client/includes/LangLinkHandler.php at line 303] in /Library/WebServer/Documents/php-master/includes/debug/Debug.php on line 303
[17-Mar-2014 23:06:31] PHP Stack trace:
[17-Mar-2014 23:06:31] PHP 1. {main}() /Library/WebServer/Documents/php-master/api.php:0
[17-Mar-2014 23:06:31] PHP 2. ApiMain->execute() /Library/WebServer/Documents/php-master/api.php:86
[17-Mar-2014 23:06:31] PHP 3. ApiMain->executeActionWithErrorHandling() /Library/WebServer/Documents/php-master/includes/api/ApiMain.php:335
[17-Mar-2014 23:06:31] PHP 4. ApiMain->executeAction() /Library/WebServer/Documents/php-master/includes/api/ApiMain.php:364
[17-Mar-2014 23:06:31] PHP 5. ApiRunJobs->execute() /Library/WebServer/Documents/php-master/includes/api/ApiMain.php:900
[17-Mar-2014 23:06:31] PHP 6. ApiRunJobs::executeJobs() /Library/WebServer/Documents/php-master/includes/api/ApiRunJobs.php:68
[17-Mar-2014 23:06:31] PHP 7. CirrusSearch\Job->run() /Library/WebServer/Documents/php-master/includes/api/ApiRunJobs.php:109
[17-Mar-2014 23:06:31] PHP 8. CirrusSearch\LinksUpdateJob->doJob() /Library/WebServer/Documents/php-master/extensions/CirrusSearch/includes/Job.php:52
[17-Mar-2014 23:06:31] PHP 9. CirrusSearch\Updater->updateFromTitle() /Library/WebServer/Documents/php-master/extensions/CirrusSearch/includes/LinksUpdateJob.php:46
[17-Mar-2014 23:06:31] PHP 10. CirrusSearch\Updater->updatePages() /Library/WebServer/Documents/php-master/extensions/CirrusSearch/includes/Updater.php:62
[17-Mar-2014 23:06:31] PHP 11. CirrusSearch\Updater->buildDocumentsForPages() /Library/WebServer/Documents/php-master/extensions/CirrusSearch/includes/Updater.php:168[17-Mar-2014 23:06:31] PHP 12. CirrusSearch\Updater->getContentAndParserOutput() /Library/WebServer/Documents/php-master/extensions/CirrusSearch/includes/Updater.php:311
[17-Mar-2014 23:06:31] PHP 13. WikitextContent->getParserOutput() /Library/WebServer/Documents/php-master/extensions/CirrusSearch/includes/Updater.php:357[17-Mar-2014 23:06:31] PHP 14. StubObject->parse() /Library/WebServer/Documents/php-master/includes/content/WikitextContent.php:334
[17-Mar-2014 23:06:31] PHP 15. StubObject->__call() /Library/WebServer/Documents/php-master/includes/content/WikitextContent.php:334
[17-Mar-2014 23:06:31] PHP 16. StubObject->_call() /Library/WebServer/Documents/php-master/includes/StubObject.php:119
[17-Mar-2014 23:06:31] PHP 17. call_user_func_array:{/Library/WebServer/Documents/php-master/includes/StubObject.php:99}() /Library/WebServer/Documents/php-master/includes/StubObject.php:99
[17-Mar-2014 23:06:31] PHP 18. Parser->parse() /Library/WebServer/Documents/php-master/includes/StubObject.php:99[17-Mar-2014 23:06:31] PHP 19. wfRunHooks() /Library/WebServer/Documents/php-master/includes/parser/Parser.php:396
[17-Mar-2014 23:06:31] PHP 20. Hooks::run() /Library/WebServer/Documents/php-master/includes/GlobalFunctions.php:4011
[17-Mar-2014 23:06:31] PHP 21. call_user_func_array:{/Library/WebServer/Documents/php-master/includes/Hooks.php:206}() /Library/WebServer/Documents/php-master/includes/Hooks.php:206[17-Mar-2014 23:06:31] PHP 22. Wikibase\ClientHooks::onParserAfterParse() /Library/WebServer/Documents/php-master/includes/Hooks.php:206
[17-Mar-2014 23:06:31] PHP 23. Wikibase\LangLinkHandler->addLinksFromRepository() /Library/WebServer/Documents/php-master/extensions/Wikibase/client/WikibaseClient.hooks.php:383[17-Mar-2014 23:06:31] PHP 24. Wikibase\LangLinkHandler->getEffectiveRepoLinks() /Library/WebServer/Documents/php-master/extensions/Wikibase/client/includes/LangLinkHandler.php:396
[17-Mar-2014 23:06:31] PHP 25. Wikibase\LangLinkHandler->localLinksToArray() /Library/WebServer/Documents/php-master/extensions/Wikibase/client/includes/LangLinkHandler.php:367[17-Mar-2014 23:06:31] PHP 26. wfWarn() /Library/WebServer/Documents/php-master/extensions/Wikibase/client/includes/LangLinkHandler.php:303[17-Mar-2014 23:06:31] PHP 27. MWDebug::warning() /Library/WebServer/Documents/php-master/includes/GlobalFunctions.php:1145
[17-Mar-2014 23:06:31] PHP 28. MWDebug::sendMessage() /Library/WebServer/Documents/php-master/includes/debug/Debug.php:157


Version: master
Severity: normal

Details

Reference
bz62754

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:57 AM
bzimport set Reference to bz62754.
bzimport added a subscriber: Unknown Object (MLST).
aude created this task.Mar 17 2014, 10:18 PM

Change 119207 had a related patch set uploaded by Aude:
Put SiteList navigation ids into cache

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

Change 119207 merged by jenkins-bot:
Put SiteList navigation ids into cache

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