Topic on Project:Support desk

Cannot start editing (create) Common.css

9
Summary by AhmadF.Cheema

Extension:SyntaxHighlight causing "Internal Error" on MediaWiki:Common.css page.

B.Shapoval (talkcontribs)

When I type mysitename/mediawiki/w/index.php?title=MediaWiki:Common.css (or MediaWiki:Common.css in serachbox) it shows "Internal Error". Lower in my language someyhing like "[WXcnzmRZrap6EUtZM1v@VwAAAUo] 2017-07-25 11:13:18: Exception cannot be solved «Symfony\Component\Process\Exception\RuntimeException» (Italic is my translation, not exactly). What can I do with this? MediaWiki:Sidebar is working at the same time.

AhmadF.Cheema (talkcontribs)

Do you have syntaxhighlighting enabled?

B.Shapoval (talkcontribs)

It is seen in Special:Version. How does it help me?

AhmadF.Cheema (talkcontribs)

Did you install the extension from Git?

If you did, then it requires composer installation too. Through SSH change to the directory containing the extension and run the following commands:

chmod a+x /pygments/pygmentize
composer install

If composer install, had been run once before and this time the extension was updated then run: composer update.

B.Shapoval (talkcontribs)

Excuse me, I did not understand. In my 1.28.1 mediawiki there is extension SyntaxHighlight_GeShi with pygments inside. So do I need download and insert GeSHi from GitHub and composer for creating CSS additionally? Could I simply do something with already installed extention?

AhmadF.Cheema (talkcontribs)

I'm not sure but it's possible that the errors you are seeing are because when your Wiki tries to access a page where syntax highlighting has to be shown (such as MediaWiki:Common.css) it runs into problems accessing the extension. For which reason, I mentioned the steps to solve issues with the extension.

Now that I think about it, you should first try just disabling Extension:SyntaxHighlight, to see if that is indeed what is causing the problems.

B.Shapoval (talkcontribs)

Thank you for answers. I cannot check right now because my hoster don't work from last weekend (hostafirm.com).

B.Shapoval (talkcontribs)

Yes! It is woking. As soon as I deleted the line

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

in LocalSettings.php , internal error of Common.css disappeared.

I will reload the SyntaxHighlight_GeShi. This is another issue.

So solved.

This post was hidden by Bimo kb (history)