Page MenuHomePhabricator

"Internal error" on testwiki's Special:LanguageStats due to non-existing CentralNotice banner
Open, LowPublic

Description

On wikitest looking in https://test.wikipedia.org/wiki/Special:LanguageStats page me a message appears in red background and does not make me see the translation table. In this moment there are mobile devices with the view to Deskop (I'm using google)
The error text:
[PEwpAADkAAjFyvIMAAABG] /wiki/Special:LanguageStats BannerExistenceException from line 348 of /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php: No banner exists where tmp_name = WikiCon. Could not load.

Backtrace:

#0 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php(176): Banner->populateBasicData()
#1 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php(827): Banner->getName()
#2 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/Banner.php(814): Banner->getMessageFieldsCacheKey()
#3 /srv/mediawiki/php-1.29.0-wmf.11/extensions/CentralNotice/includes/BannerMessageGroup.php(69): Banner->getMessageFieldsFromCache()
#4 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/messagegroups/MessageGroupOld.php(282): BannerMessageGroup->getDefinitions()
#5 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(401): MessageGroupOld->initCollection(string)
#6 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(362): MessageGroupStats::calculateGroup(BannerMessageGroup, string)
#7 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(250): MessageGroupStats::forItemInternal(array, BannerMessageGroup, string)
#8 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/utils/MessageGroupStats.php(107): MessageGroupStats::forLanguageInternal(string)
#9 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/specials/SpecialLanguageStats.php(369): MessageGroupStats::forLanguage(string)
#10 /srv/mediawiki/php-1.29.0-wmf.11/extensions/Translate/specials/SpecialLanguageStats.php(156): SpecialLanguageStats->getTable()
#11 /srv/mediawiki/php-1.29.0-wmf.11/includes/specialpage/SpecialPage.php(522): SpecialLanguageStats->execute(NULL)
#12 /srv/mediawiki/php-1.29.0-wmf.11/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)
#13 /srv/mediawiki/php-1.29.0-wmf.11/includes/MediaWiki.php(285): SpecialPageFactory::executePath(Title, RequestContext)
#14 /srv/mediawiki/php-1.29.0-wmf.11/includes/MediaWiki.php(860): MediaWiki->performRequest()
#15 /srv/mediawiki/php-1.29.0-wmf.11/includes/MediaWiki.php(521): MediaWiki->main()
#16 /srv/mediawiki/php-1.29.0-wmf.11/index.php(43): MediaWiki->run()
#17 /srv/mediawiki/w/index.php(3): include(string)
#18 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 13 2017, 7:57 PM
Aklapper renamed this task from Bug on testwiki (Special:LanguageStats to "Internal error" on testwiki's Special:LanguageStats due to non-existing CentralNotice banner.Feb 13 2017, 8:01 PM

Thanks!!! Do you know which production wiki(s) Special:LanguageStats is enabled on?

Samuele2002 added a comment.EditedFeb 13 2017, 8:23 PM

Special: LanguageStats is enabled for those regards proof wiki of test.wikipedia and test.wikidata, wiki for the other instead is enabled on Meta-Wiki Wikispecies Wikidata MediaWiki Incubator WikimaniaYEAR Test.wikipedia then I do not know if it is in other

Same problem happened to me while trying to rebuild the translation memories index for testwiki.

Could it be that the new version of MediaWiki is incompatible with the extension?

Samuele2002 added a comment.EditedFeb 22 2017, 1:38 PM

I made tests and found out that the problem is not only on that page but there is also an error that prevents the translation of the pages that is when translate does not save you and shows this error:

Error saving the translation: This namespace is reserved for content page translations. The page you are trying to edit does not Seem to Correspond any page marked for translation.

The problem is only the translation of the messages because it allows me to point out the pages for translation without problems.

Ex: https://test.wikipedia.org/wiki/Wikipedia:Test_translation and https://test.wikipedia.org/wiki/User:Samuele2002/sandbox

This problem is more serious than you think. First you should see if the errors are caused by an incompatibility issue with the new version, and if you find and fix errors, or if the cause is the same extension (but in other wiki works perfectly in all aspects even those reserved administrators of the translations) still have to find the problem because if you were to also report in the wiki main (all except metalinguistice wiki beta.wikiversity [am cerdando to convince the other users of the wiki to install it] can translate the extension )would be big trouble that would send haywire all over the pages of the translation process.

This problem is more serious than you think. First you should see if the errors are caused by an incompatibility issue with the new version, and if you find and fix errors, or if the cause is the same extension (but in other wiki works perfectly in all aspects even those reserved administrators of the translations) still have to find the problem because if you were to also report in the wiki main (all except metalinguistice wiki beta.wikiversity [am cerdando to convince the other users of the wiki to install it] can translate the extension )would be big trouble that would send haywire all over the pages of the translation process.

CentralNotice is responsible for registering the available banners for translation. So unless this is a stale cache in Translate, I don't think I would easily know how to fix this.

ggellerman triaged this task as Low priority.Feb 28 2017, 10:21 PM

@Samuele2002 are you still seeing this? Can this be reproduced on a production wiki?

Krinkle added a subscriber: Krinkle.

@DStrine Still seen by opening url https://test.wikipedia.org/wiki/Special:LanguageStats, from the task description. However, not on mediawiki.org, commons.wikimedia.org, or meta.wikimedia.org. As such, triaging as meta/low-impact.

Krinkle removed a subscriber: Krinkle.May 6 2019, 11:33 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Wed, Aug 28, 11:10 PM