VisualEditor breaking MediaWiki server

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'] == '127.0.0.1' ) { $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.

1 Answer

Mismatched braces.

See also this page on debugging basics in general.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like