Page MenuHomePhabricator

beta: Error: Unsupported operand types
Closed, ResolvedPublicBUG REPORT

Description

https://zh.wikipedia.beta.wmflabs.org/wiki/首页
https://sv.wikipedia.beta.wmflabs.org/wiki/MediaWiki:Mainpage

MediaWiki internal error.

Original exception: [YMvquNLueIuvb-v7dLdEVgAAAAY] / Error: Unsupported operand types
Backtrace:
from /srv/mediawiki/php-master/languages/Language.php(555)
#0 /srv/mediawiki/php-master/languages/Language.php(628): Language->getNamespaces()
#1 /srv/mediawiki/php-master/includes/title/MediaWikiTitleCodec.php(104): Language->getNsText(integer)
#2 /srv/mediawiki/php-master/includes/title/MediaWikiTitleCodec.php(134): MediaWikiTitleCodec->getNamespaceName(integer, string)
#3 /srv/mediawiki/php-master/includes/title/MediaWikiTitleCodec.php(272): MediaWikiTitleCodec->formatTitle(integer, string, string, string)
#4 /srv/mediawiki/php-master/includes/cache/LinkCache.php(259): MediaWikiTitleCodec->getPrefixedDBkey(Title)
#5 /srv/mediawiki/php-master/includes/Title.php(3189): LinkCache->addLinkObj(Title)
#6 /srv/mediawiki/php-master/includes/page/LegacyArticleIdAccess.php(43): Title->getArticleID()
#7 /srv/mediawiki/php-master/includes/Revision/RevisionStore.php(3179): MediaWiki\Revision\RevisionStore->getArticleId(Title)
#8 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1204): MediaWiki\Revision\RevisionStore->getKnownCurrentRevision(Title)
#9 /srv/mediawiki/php-master/includes/libs/objectcache/wancache/WANObjectCache.php(1714): MessageCache->{closure}(boolean, integer, array, NULL, array)
#10 /srv/mediawiki/php-master/includes/libs/objectcache/wancache/WANObjectCache.php(1542): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#11 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1230): WANObjectCache->getWithSetCallback(string, integer, Closure)
#12 /srv/mediawiki/php-master/includes/libs/objectcache/BagOStuff.php(208): MessageCache->{closure}(integer)
#13 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1232): BagOStuff->getWithSetCallback(string, integer, Closure)
#14 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1145): MessageCache->loadCachedMessagePageEntry(string, string, string)
#15 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1045): MessageCache->getMsgFromNamespace(string, string)
#16 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1015): MessageCache->getMessageForLang(LanguageZh, string, boolean, array)
#17 /srv/mediawiki/php-master/includes/cache/MessageCache.php(957): MessageCache->getMessageFromFallbackChain(LanguageZh, string, boolean)
#18 /srv/mediawiki/php-master/includes/language/Message.php(1398): MessageCache->get(string, boolean, LanguageZh)
#19 /srv/mediawiki/php-master/includes/language/Message.php(916): Message->fetchMessage()
#20 /srv/mediawiki/php-master/includes/language/Message.php(905): Message->format(string)
#21 /srv/mediawiki/php-master/includes/Message/TextFormatter.php(51): Message->toString(string)
#22 /srv/mediawiki/php-master/includes/user/UserNameUtils.php(197): MediaWiki\Message\TextFormatter->format(Wikimedia\Message\MessageValue)
#23 /srv/mediawiki/php-master/extensions/CentralAuth/includes/session/CentralAuthSessionProvider.php(166): MediaWiki\User\UserNameUtils->isUsable(string)
#24 /srv/mediawiki/php-master/includes/session/SessionManager.php(525): CentralAuthSessionProvider->provideSessionInfo(WebRequest)
#25 /srv/mediawiki/php-master/includes/session/SessionManager.php(248): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
#26 /srv/mediawiki/php-master/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#27 /srv/mediawiki/php-master/includes/session/SessionManager.php(169): WebRequest->getSession()
#28 /srv/mediawiki/php-master/includes/Setup.php(738): MediaWiki\Session\SessionManager::getGlobalSession()
#29 /srv/mediawiki/php-master/includes/WebStart.php(87): require_once(string)
#30 /srv/mediawiki/php-master/index.php(44): require(string)
#31 /srv/mediawiki/w/index.php(3): require(string)
#32 {main}

Exception caught inside exception handler: [YMvquNLueIuvb-v7dLdEVgAAAAY] / Error: Unsupported operand types
Backtrace:
from /srv/mediawiki/php-master/languages/Language.php(555)
#0 /srv/mediawiki/php-master/languages/Language.php(628): Language->getNamespaces()
#1 /srv/mediawiki/php-master/includes/title/MediaWikiTitleCodec.php(104): Language->getNsText(integer)
#2 /srv/mediawiki/php-master/includes/title/MediaWikiTitleCodec.php(134): MediaWikiTitleCodec->getNamespaceName(integer, string)
#3 /srv/mediawiki/php-master/includes/title/MediaWikiTitleCodec.php(272): MediaWikiTitleCodec->formatTitle(integer, string, string, string)
#4 /srv/mediawiki/php-master/includes/cache/LinkCache.php(259): MediaWikiTitleCodec->getPrefixedDBkey(Title)
#5 /srv/mediawiki/php-master/includes/Title.php(3189): LinkCache->addLinkObj(Title)
#6 /srv/mediawiki/php-master/includes/page/LegacyArticleIdAccess.php(43): Title->getArticleID()
#7 /srv/mediawiki/php-master/includes/Revision/RevisionStore.php(3179): MediaWiki\Revision\RevisionStore->getArticleId(Title)
#8 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1204): MediaWiki\Revision\RevisionStore->getKnownCurrentRevision(Title)
#9 /srv/mediawiki/php-master/includes/libs/objectcache/wancache/WANObjectCache.php(1714): MessageCache->{closure}(boolean, integer, array, NULL, array)
#10 /srv/mediawiki/php-master/includes/libs/objectcache/wancache/WANObjectCache.php(1542): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#11 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1230): WANObjectCache->getWithSetCallback(string, integer, Closure)
#12 /srv/mediawiki/php-master/includes/libs/objectcache/BagOStuff.php(208): MessageCache->{closure}(integer)
#13 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1232): BagOStuff->getWithSetCallback(string, integer, Closure)
#14 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1145): MessageCache->loadCachedMessagePageEntry(string, string, string)
#15 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1045): MessageCache->getMsgFromNamespace(string, string)
#16 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1015): MessageCache->getMessageForLang(LanguageZh, string, boolean, array)
#17 /srv/mediawiki/php-master/includes/cache/MessageCache.php(957): MessageCache->getMessageFromFallbackChain(LanguageZh, string, boolean)
#18 /srv/mediawiki/php-master/includes/language/Message.php(1398): MessageCache->get(string, boolean, LanguageZh)
#19 /srv/mediawiki/php-master/includes/language/Message.php(916): Message->fetchMessage()
#20 /srv/mediawiki/php-master/includes/language/Message.php(905): Message->format(string)
#21 /srv/mediawiki/php-master/includes/Message/TextFormatter.php(51): Message->toString(string)
#22 /srv/mediawiki/php-master/includes/user/UserNameUtils.php(197): MediaWiki\Message\TextFormatter->format(Wikimedia\Message\MessageValue)
#23 /srv/mediawiki/php-master/extensions/CentralAuth/includes/session/CentralAuthSessionProvider.php(166): MediaWiki\User\UserNameUtils->isUsable(string)
#24 /srv/mediawiki/php-master/includes/session/SessionManager.php(525): CentralAuthSessionProvider->provideSessionInfo(WebRequest)
#25 /srv/mediawiki/php-master/includes/session/SessionManager.php(248): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
#26 /srv/mediawiki/php-master/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#27 /srv/mediawiki/php-master/includes/user/User.php(1199): WebRequest->getSession()
#28 /srv/mediawiki/php-master/includes/user/User.php(382): User->loadDefaults()
#29 /srv/mediawiki/php-master/includes/user/User.php(2063): User->load()
#30 /srv/mediawiki/php-master/includes/user/User.php(2924): User->getId()
#31 /srv/mediawiki/php-master/includes/user/UserOptionsManager.php(591): User->isRegistered()
#32 /srv/mediawiki/php-master/includes/user/UserOptionsManager.php(484): MediaWiki\User\UserOptionsManager->getCacheKey(User)
#33 /srv/mediawiki/php-master/includes/user/UserOptionsManager.php(132): MediaWiki\User\UserOptionsManager->loadUserOptions(User, integer)
#34 /srv/mediawiki/php-master/includes/user/User.php(2528): MediaWiki\User\UserOptionsManager->getOption(User, string, NULL, boolean)
#35 /srv/mediawiki/php-master/includes/context/RequestContext.php(383): User->getOption(string)
#36 /srv/mediawiki/php-master/includes/language/Message.php(373): RequestContext->getLanguage()
#37 /srv/mediawiki/php-master/includes/language/Message.php(1398): Message->getLanguage()
#38 /srv/mediawiki/php-master/includes/language/Message.php(916): Message->fetchMessage()
#39 /srv/mediawiki/php-master/includes/language/Message.php(1008): Message->format(string)
#40 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(226): Message->text()
#41 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(161): MWExceptionRenderer::msg(string, string)
#42 /srv/mediawiki/php-master/includes/exception/MWExceptionRenderer.php(77): MWExceptionRenderer::reportHTML(Error)
#43 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(Error, integer)
#44 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(Error)
#45 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(156): MWExceptionHandler::handleException(Error, string)
#46 [internal function]: MWExceptionHandler::handleUncaughtException(Error)
#47 {main}

Event Timeline

Note: at this point, the exception and stacktrace differs from that:

MediaWiki internal error.

Original exception: [YMv1FNLueIuvb-v7dLdMSgAAAAM] /wiki/%E2%A7%BCmainpage%E2%A7%BD MWException: Error: invalid magic word 'ns'
Backtrace:
from /srv/mediawiki/php-master/includes/MagicWord.php(129)
#0 /srv/mediawiki/php-master/includes/MagicWordFactory.php(230): MagicWord->load(string)
#1 /srv/mediawiki/php-master/includes/parser/Parser.php(4939): MagicWordFactory->get(string)
#2 /srv/mediawiki/php-master/includes/parser/CoreParserFunctions.php(64): Parser->setFunctionHook(string, array, integer)
#3 /srv/mediawiki/php-master/includes/parser/Parser.php(477): CoreParserFunctions::register(Parser)
#4 /srv/mediawiki/php-master/includes/parser/ParserFactory.php(181): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, LanguageZh, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, Monolog\Logger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer, MediaWiki\Tidy\RemexDriver, WANObjectCache, MediaWiki\User\UserOptionsManager, MediaWiki\User\UserFactory, MediaWikiTitleCodec)
#5 /srv/mediawiki/php-master/includes/ServiceWiring.php(1010): ParserFactory->create()
#6 /srv/mediawiki/php-master/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#7 /srv/mediawiki/php-master/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
#8 /srv/mediawiki/php-master/includes/MediaWikiServices.php(269): Wikimedia\Services\ServiceContainer->getService(string)
#9 /srv/mediawiki/php-master/includes/MediaWikiServices.php(1205): MediaWiki\MediaWikiServices->getService(string)
#10 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1274): MediaWiki\MediaWikiServices->getParser()
#11 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1253): MessageCache->getParser()
#12 /srv/mediawiki/php-master/includes/language/Message.php(1381): MessageCache->transform(string, boolean, LanguageZh, Title)
#13 /srv/mediawiki/php-master/includes/language/Message.php(948): Message->transformText(string)
#14 /srv/mediawiki/php-master/includes/language/Message.php(1008): Message->format(string)
#15 /srv/mediawiki/php-master/includes/OutputPage.php(946): Message->text()
#16 /srv/mediawiki/php-master/includes/OutputPage.php(995): OutputPage->setHTMLTitle(Message)
#17 /srv/mediawiki/php-master/includes/page/Article.php(519): OutputPage->setPageTitle(string)
#18 /srv/mediawiki/php-master/includes/actions/ViewAction.php(74): Article->view()
#19 /srv/mediawiki/php-master/includes/MediaWiki.php(536): ViewAction->show()
#20 /srv/mediawiki/php-master/includes/MediaWiki.php(320): MediaWiki->performAction(Article, Title)
#21 /srv/mediawiki/php-master/includes/MediaWiki.php(917): MediaWiki->performRequest()
#22 /srv/mediawiki/php-master/includes/MediaWiki.php(551): MediaWiki->main()
#23 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#24 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#25 /srv/mediawiki/w/index.php(3): require(string)
#26 {main}

Exception caught inside exception handler: [YMv1FNLueIuvb-v7dLdMSgAAAAM] /wiki/%E2%A7%BCmainpage%E2%A7%BD MWException: Error: invalid magic word 'ns'
Backtrace:
from /srv/mediawiki/php-master/includes/MagicWord.php(129)
#0 /srv/mediawiki/php-master/includes/MagicWordFactory.php(230): MagicWord->load(string)
#1 /srv/mediawiki/php-master/includes/parser/Parser.php(4939): MagicWordFactory->get(string)
#2 /srv/mediawiki/php-master/includes/parser/CoreParserFunctions.php(64): Parser->setFunctionHook(string, array, integer)
#3 /srv/mediawiki/php-master/includes/parser/Parser.php(477): CoreParserFunctions::register(Parser)
#4 /srv/mediawiki/php-master/includes/parser/ParserFactory.php(181): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, LanguageZh, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, Monolog\Logger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer, MediaWiki\Tidy\RemexDriver, WANObjectCache, MediaWiki\User\UserOptionsManager, MediaWiki\User\UserFactory, MediaWikiTitleCodec)
#5 /srv/mediawiki/php-master/includes/ServiceWiring.php(1010): ParserFactory->create()
#6 /srv/mediawiki/php-master/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#7 /srv/mediawiki/php-master/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
#8 /srv/mediawiki/php-master/includes/MediaWikiServices.php(269): Wikimedia\Services\ServiceContainer->getService(string)
#9 /srv/mediawiki/php-master/includes/MediaWikiServices.php(1205): MediaWiki\MediaWikiServices->getService(string)
#10 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1274): MediaWiki\MediaWikiServices->getParser()
#11 /srv/mediawiki/php-master/includes/cache/MessageCache.php(1253): MessageCache->getParser()
#12 /srv/mediawiki/php-master/includes/language/Message.php(1381): MessageCache->transform(string, boolean, LanguageZh, Title)
#13 /srv/mediawiki/php-master/includes/language/Message.php(948): Message->transformText(string)
#14 /srv/mediawiki/php-master/includes/language/Message.php(1008): Message->format(string)
#15 /srv/mediawiki/php-master/includes/OutputPage.php(946): Message->text()
#16 /srv/mediawiki/php-master/includes/OutputPage.php(995): OutputPage->setHTMLTitle(Message)
#17 /srv/mediawiki/php-master/includes/OutputPage.php(2682): OutputPage->setPageTitle(string)
#18 /srv/mediawiki/php-master/includes/exception/MWException.php(179): OutputPage->prepareErrorPage(string)
#19 /srv/mediawiki/php-master/includes/exception/MWException.php(231): MWException->reportHTML()
#20 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(104): MWException->report()
#21 /srv/mediawiki/php-master/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(MWException)
#22 /srv/mediawiki/php-master/includes/MediaWiki.php(570): MWExceptionHandler::handleException(MWException, string)
#23 /srv/mediawiki/php-master/index.php(53): MediaWiki->run()
#24 /srv/mediawiki/php-master/index.php(46): wfIndexMain()
#25 /srv/mediawiki/w/index.php(3): require(string)
#26 {main}
Reedy renamed this task from beta zhwiki: Error: Unsupported operand types to beta: Error: Unsupported operand types.Jun 18 2021, 1:47 AM
Reedy updated the task description. (Show Details)

What's the current status on this? Is this a Beta-only issue or does it truly block wmf.11 and need escalation of priority?

dduvall triaged this task as Unbreak Now! priority.Jun 22 2021, 6:01 PM

Upping priority since we're getting close to group0 deployment and this is still an open blocker.

This looks like a beta specific issue. Otherwise, test wikis would have been broken as well.

What's the current status on this? Is this a Beta-only issue or does it truly block wmf.11 and need escalation of priority?

I believe beta-only, my best guess is caused by a scap upgrade that's on beta but not on production. see T285125

dduvall lowered the priority of this task from Unbreak Now! to High.Jun 22 2021, 6:30 PM

Right on. Thanks for the update. I will remove this as a blocker for now and lower priority.