Topic on Project:Support desk

Can't access config.js file

2
Summary by Sochin67

It's fixed; it was related to the WikiEditor which wasn't properly enabled.

Sochin67 (talkcontribs)

Hi,

I transferred my older Wiki Ver. 1.22 to the latest version.

Everything is working as expected as far I can say - except one thing: When I try to access Common.js by entering Mediawiki:Common.js in the search bar, the system throws an error:

Exception encountered, of type "Error"

What could be the problem here?

Many thanks!

This is the backtrace of the error:

[WBH1OVUNje0AADczvV0AAAAC] /index.php?title=MediaWiki:Common.js Error from line 283 of /www/htdocs/w00997ce/hvg-wiki-2016-10/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php: Class 'Symfony\Component\Process\ProcessBuilder' not found

Backtrace:

#0 /www/htdocs/w00997ce/hvg-wiki-2016-10/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php(423): SyntaxHighlight_GeSHi::highlight(string, string)

#1 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/Hooks.php(195): SyntaxHighlight_GeSHi::onContentGetParserOutput(JavaScriptContent, Title, NULL, ParserOptions, boolean, ParserOutput)

#2 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/content/AbstractContent.php(491): Hooks::run(string, array)

#3 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/page/Article.php(830): AbstractContent->getParserOutput(Title)

#4 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/page/Article.php(644): Article->showCssOrJsPage()

#5 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/actions/ViewAction.php(44): Article->view()

#6 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(503): ViewAction->show()

#7 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)

#8 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(745): MediaWiki->performRequest()

#9 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(519): MediaWiki->main()

#10 /www/htdocs/w00997ce/hvg-wiki-2016-10/index.php(43): MediaWiki->run()

#11 {main}

Jörgi123 (talkcontribs)

Your new version of MediaWiki needs some prerequisites. You are currently missing them, e.g. the Symfony package.

If you installed MediaWiki from Git, you should run composer install in geshi's directory.

Another, and maybe the better option, is to download MediaWiki from releases.wikimedia.org. The downloaded package (.e.g mediawiki-1.27.1.tar.gz) will contain the required requisites already.