Topic on Project:Support desk

Internal Error for Unknown Reason

15
Gmlacey (talkcontribs)

Using 1.32.0, my site was working a month again as intended, and then suddenly last week, one of my site pages began responding with an Internal Error. I have restored various backups of the site, and even entirely deleted it and restored from another backup, but nothing is working.


The error reads as follows and results in a blank MediaWiki-style page below the error:

Internal error

[XMQ2RPfRGVIevKUl2Uqb9wAAAkQ] 2019-04-27 11:00:20: Fatal exception of type "Error"


Upon refreshing the page, the seemingly random letters in brackets all change (as well as the time next to to), but the error is never more specific. Any help please!

Gmlacey (talkcontribs)

Some more Googling told me to add some lines to LocalSettings.php to get a more specific error report, which now results with:


[XMQ5m6UBOIo6oieTYFmH0gAAAUE] /Expeditions Error from line 155 of /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php: Class 'JsonSchema\Validator' not found

Backtrace:

#0 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php(77): Kartographer\SimpleStyleParser->validateContent(array)

#1 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/SimpleStyleParser.php(58): Kartographer\SimpleStyleParser->parseObject(array)

#2 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(144): Kartographer\SimpleStyleParser->parse(string)

#3 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(119): Kartographer\Tag\TagHandler->parseGeometries(string, Parser, PPFrame_DOM)

#4 /home/w2b8ugyz85we/public_html/wiki/extensions/Kartographer/includes/Tag/TagHandler.php(99): Kartographer\Tag\TagHandler->handle(string, array, Parser, PPFrame_DOM)

#5 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(3968): Kartographer\Tag\TagHandler::entryPoint(string, array, Parser, PPFrame_DOM)

#6 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Preprocessor_DOM.php(1364): Parser->extensionSubstitution(array, PPFrame_DOM)

#7 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(3014): PPFrame_DOM->expand(DOMElement, integer)

#8 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(1350): Parser->replaceVariables(string)

#9 /home/w2b8ugyz85we/public_html/wiki/includes/parser/Parser.php(476): Parser->internalParse(string)

#10 /home/w2b8ugyz85we/public_html/wiki/includes/content/WikitextContent.php(341): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#11 /home/w2b8ugyz85we/public_html/wiki/includes/content/AbstractContent.php(517): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#12 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(242): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)

#13 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(211): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)

#14 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RevisionRenderer.php(175): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#15 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RevisionRenderer.php(128): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

#16 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)

#17 /home/w2b8ugyz85we/public_html/wiki/includes/Revision/RenderedRevision.php(175): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)

#18 /home/w2b8ugyz85we/public_html/wiki/includes/poolcounter/PoolWorkArticleView.php(194): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#19 /home/w2b8ugyz85we/public_html/wiki/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#20 /home/w2b8ugyz85we/public_html/wiki/includes/page/Article.php(774): PoolCounterWork->execute()

#21 /home/w2b8ugyz85we/public_html/wiki/includes/actions/ViewAction.php(68): Article->view()

#22 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(501): ViewAction->show()

#23 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#24 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(860): MediaWiki->performRequest()

#25 /home/w2b8ugyz85we/public_html/wiki/includes/MediaWiki.php(517): MediaWiki->main()

#26 /home/w2b8ugyz85we/public_html/wiki/index.php(42): MediaWiki->run()

#27 {main}

Gmlacey (talkcontribs)

Disabling the Kartographer extension allowed me to view the broken page, although (of course) the aspects of the page that use Kartographer didn't work. I deleted the extension and re-installed it, but then the same original problem persists.

AhmadF.Cheema (talkcontribs)
Gmlacey (talkcontribs)

The extension shows MediaWiki 1.27+ and PHP 5.5+.

My site is MediaWiki 1.32.0 and PHP 7.2.16 (litespeed).

AhmadF.Cheema (talkcontribs)
Gmlacey (talkcontribs)

Oh sorry, I downloaded from the same link you provided and used 1.32.

AhmadF.Cheema (talkcontribs)

That probably means the 1.32 version of the extension has not been updated to work with MediaWiki 1.32. Try using the master version and see if that works.

Gmlacey (talkcontribs)

Thank you. So I did try the master version, which resulted in the same. But I did learned that the Kartographer extension now apparently requires the installation of Extension:JsonConfig, which I also installed, yet resulting in the same issue. Sigh . . .

Hollosch (talkcontribs)

Hi @Gmlacey,

got the same error. I think there is a configuration problem with JsonConfig and we need a value for the localsettings.php

79.207.236.190 (talkcontribs)

Did somebody solve this problem?

Gmlacey (talkcontribs)

I never got it to work again, so no, not yet.

73.252.158.66 (talkcontribs)

My Versions are

MediaWiki 1.33.0
PHP 7.2.19-0ubuntu0.18.04.2 (fpm-fcgi)
MariaDB 10.1.41-MariaDB-0ubuntu0.18.04.1
ICU 60.2

I'm getting the same error as described above. My Installed extentions looks like this.

Parser hooks
Extension Version License Description Authors
Kartographer (085a7f7) 12:33, 20 March 2019 MIT Allows maps to be added to the wiki pages Yuri Astrakhan, Max Semenik, Ed Sanders, Julien Girault and others
Other
Extension Version License Description Authors
JsonConfig 1.1.0 (e19c474) 13:53, 12 March 2019 GPL-2.0-or-later Allows JSON configuration to be stored in a wiki Yuri Astrakhan

The Install directions for Kartographer only state to install jsonconfig and check special:Version to see if it's installed correctly. I'm not sure what a correct install looks like, but it's listing as installed. The Kartographer install directions do not go into if jsonconfig needs to be configured and if so how. I've read the instructions from jsonconfig for how to configure jsonconfig, and it doesn't read to me as though any configuration of jsonconfig is necessary, based on the kartographer and jsonconfig install and setup docs. Regardless I find the jsonconfig documentation configuration section to be incomprehensible. It does not explain which options, if any are applicable to me.

73.252.158.66 (talkcontribs)

I figured this out. The documentation says "Only when installing from git run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory." In my case at least, even though I installed via the ExtentionDistributer, running that command was still necessary. Adding keywords for people searching for this: SOLVED FIXED

Ciencia Al Poder (talkcontribs)

Yes, ExtensionDistributor isn't bundling composer dependencies as it should (and advertises). This is tracked on phab:T227362

Reply to "Internal Error for Unknown Reason"