Topic on Project:Support desk

Language of 'contents' in ToC changes randomly on its own

7
Star Warden (talkcontribs)

Hey. We have the following issue on our wiki where the word 'Contents' in the table of contents translates itself automatically and randomly to a random language. Here are some examples:

What could be the cause behind this? It doesn't matter if I am logged in or not, nor the language chosen for the wiki's interface.

Later Edit: It seems 'Contents' changes back and forth randomly, so the above links might not reproduce the error, but the screenshot is an example.

Bawolff (talkcontribs)

generally this sounds like language parser cache pollution. It can be caused if an extension is using the wrong language object (e.g. not the one for the current page)

That said, i havent looked in detail

Star Warden (talkcontribs)

Thanks for the reply. So, how can I tell which extension is doing this and how to fix said pollution?

Bawolff (talkcontribs)

another possibility is it might be the skins fault.

Star Warden (talkcontribs)

All right, but what steps do I need to take to find and fix the error?

TiltedCerebellum (talkcontribs)

All I could find was old (bug 27634) TOC title appears in wrong language. Long standing, don’t know how to read the comments there to understand what they did or didn’t do for resolution https://www.mediawiki.org/wiki/Release_notes/1.17, or if checking Localisation#Caching will help in attempting to understand previous references. Can’t understand the suggestions provided on this talk page. To my knowledge the problem existed without any extensions enabled on a basic clone with the default MW theme and others but retesting would be needed. Not feasibile on the production site but on a clone yes. I know I found other references to this issue on other sites in the recent past, just can’t recall how it was worded to turn up those results.

Bawolff (talkcontribs)

bug 27634 (In the new numbering scheme that is https://phabricator.wikimedia.org/T29634 ) is long ago resolved. Literally resolved 9 years ago. If you're experiencing a similar bug its probably different from that one.

The only way to try and figure out the cause is to try and find a minimal test case. Disable all customizations until you find the customization that is causing it.

Reply to "Language of 'contents' in ToC changes randomly on its own"