Internal error when editing pages in MediaWiki

If you get an Internal error when trying to edit your pages in MediaWiki, you should first enable debugging by adding the following line at the bottom of  the LocalSettings.php file:

$wgShowExceptionDetails = true;

You can modify the file using FTP, SSH, or File Manager in cPanel.

This will give you the exact error message, as well as a backtrace result so that you can see what is causing the problem.

If you get an error message similar to this:

Invalid h node passed to PPNode_DOM::splitHeading

add the following code at the bottom of LocalSettings.php:

$wgParserConf['preprocessorClass'] = 'Preprocessor_Hash';

This should resolve your issue and you will be able to edit your MediaWiki pages again.

You need help with an application? SiteGround is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!