Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing error with sr-el json #17

Merged
merged 1 commit into from
Nov 10, 2017
Merged

Fixing error with sr-el json #17

merged 1 commit into from
Nov 10, 2017

Conversation

kizule
Copy link
Contributor

@kizule kizule commented Nov 7, 2017

No description provided.

@kizule
Copy link
Contributor Author

kizule commented Nov 7, 2017

Hmm.. I got error on my private wiki vezba.in.rs

[WgHNM5JqbC33wgsXYWH9UQAAABc] /wiki/index.php?title=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B0 MWException from line 561 of /home/vezba/public_html/wiki/includes/cache/localisation/LocalisationCache.php: LocalisationCache::readJSONFile: Invalid JSON file: /home/vezba/public_html/wiki/extensions/Purge/i18n/sr-el.json

Backtrace:

#0 /home/vezba/public_html/wiki/includes/cache/localisation/LocalisationCache.php(900): LocalisationCache->readJSONFile(string)
#1 /home/vezba/public_html/wiki/includes/cache/localisation/LocalisationCache.php(462): LocalisationCache->recache(string)
#2 /home/vezba/public_html/wiki/includes/cache/localisation/LocalisationCache.php(336): LocalisationCache->initLanguage(string)
#3 /home/vezba/public_html/wiki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string)
#4 /home/vezba/public_html/wiki/languages/Language.php(4422): LocalisationCache->getItem(string, string)
#5 /home/vezba/public_html/wiki/languages/Language.php(230): Language::getFallbacksFor(string)
#6 /home/vezba/public_html/wiki/languages/Language.php(193): Language::newFromCode(string)
#7 /home/vezba/public_html/wiki/includes/Message.php(733): Language::factory(string)
#8 /home/vezba/public_html/wiki/languages/LanguageConverter.php(565): Message->inLanguage(string)
#9 /home/vezba/public_html/wiki/languages/Language.php(653): LanguageConverter->convertNamespace(integer, string)
#10 /home/vezba/public_html/wiki/languages/Language.php(677): Language->getNamespaceAliases()
#11 /home/vezba/public_html/wiki/languages/Language.php(702): Language->getNamespaceIds()
#12 /home/vezba/public_html/wiki/includes/title/MediaWikiTitleCodec.php(321): Language->getNsIndex(string)
#13 /home/vezba/public_html/wiki/includes/Title.php(3415): MediaWikiTitleCodec->splitTitleString(string, integer)
#14 /home/vezba/public_html/wiki/includes/Title.php(320): Title->secureAndSplit()
#15 /home/vezba/public_html/wiki/includes/Title.php(275): Title::newFromTextThrow(string, integer)
#16 /home/vezba/public_html/wiki/includes/parser/Parser.php(2244): Title::newFromText(string)
#17 /home/vezba/public_html/wiki/includes/parser/Parser.php(2094): Parser->replaceInternalLinks2(string)
#18 /home/vezba/public_html/wiki/includes/parser/Parser.php(1322): Parser->replaceInternalLinks(string)
#19 /home/vezba/public_html/wiki/includes/parser/Parser.php(451): Parser->internalParse(string)
#20 /home/vezba/public_html/wiki/includes/content/WikitextContent.php(330): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#21 /home/vezba/public_html/wiki/includes/content/AbstractContent.php(497): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#22 /home/vezba/public_html/wiki/includes/poolcounter/PoolWorkArticleView.php(140): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#23 /home/vezba/public_html/wiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#24 /home/vezba/public_html/wiki/includes/page/Article.php(586): PoolCounterWork->execute()
#25 /home/vezba/public_html/wiki/includes/actions/ViewAction.php(68): Article->view()
#26 /home/vezba/public_html/wiki/includes/MediaWiki.php(499): ViewAction->show()
#27 /home/vezba/public_html/wiki/includes/MediaWiki.php(293): MediaWiki->performAction(Article, Title)
#28 /home/vezba/public_html/wiki/includes/MediaWiki.php(862): MediaWiki->performRequest()
#29 /home/vezba/public_html/wiki/includes/MediaWiki.php(523): MediaWiki->main()
#30 /home/vezba/public_html/wiki/index.php(43): MediaWiki->run()
#31 {main}`

When I remove sr-el.json file from server and clean cache, all is ok. I uploaded this version of file.. But, too before no work.

@kizule kizule mentioned this pull request Nov 7, 2017
Copy link
Contributor

@samwilson samwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

I don't know how did the file managed to get merged with these errors though! Anyway, good to fix them. :)

Copy link
Owner

@Hutchy68 Hutchy68 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@Hutchy68 Hutchy68 merged commit 4cfc1d9 into Hutchy68:master Nov 10, 2017
@kizule kizule deleted the patch-1 branch November 13, 2017 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants