I set up an Ubuntu 19.10 server running a private wiki with MediaWiki. Everything works well until I try to add VisualEditor following MediaWiki's manual: when I edit my LocalSettings.php file adding

if ( !isset( $_SERVER['REMOTE_ADDR'] ) OR $_SERVER['REMOTE_ADDR'] == ''    ) {
    $wgGroupPermissions['*']['read'] = true;
    $wgGroupPermissions['*']['edit'] = true;

and reboot the machine the server stops working. If I try to visit the main page I get a blank page without any output. I'm sure the problem is in those lines because if I comment them out the wiki works again, but I can't understand where my mistake is.


Mismatched braces.

See also this page on debugging basics in general.

  • I can't see where mismatched braces are... – Ntakwetet Oct 29 '19 at 19:02
  • Sorry, I must have misread the code. In any case, you should establish what the error is - see the linked doc on how to display or log PHP errors. – Tgr Oct 29 '19 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.