Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error contacting the Parsoid/RESTBase server: http-bad-status on Fresh Mediawiki 1.35.0 LTS

Tags:

mediawiki

https://www.mediawiki.org/wiki/MediaWiki_1.35 is out and one of the advertise features seems to be the "built in"/"out of the box" Visual Editor that doesn't need an external server anymore.

So downloaded and installed the version just released and clicked "VisualEditor" so that it would appear in my LocalSettings.php as:

wfLoadExtension( 'VisualEditor' );

But when trying to edit a page the error message:

Error contacting the Parsoid/RESTBase server: http-bad-status

With no further hint on what to do.

The information in https://www.mediawiki.org/wiki/Extension:VisualEditor is still intimidating for me - it doesn't look like an "out of the box" configuration at all. I did not find anything there about the dialog's message content.

Where do i find the official information on how to avoid this dialog?

Screenshot

like image 317
Wolfgang Fahl Avatar asked Nov 15 '22 04:11

Wolfgang Fahl


2 Answers

Making sure that $wgServer in LocalSettings.php has https and not http in the string solved it for me.

like image 145
kriffe Avatar answered Dec 06 '22 18:12

kriffe


I've managed to wake up visual editor on an apache / ubuntu with mediawiki 1.37 set to private wiki.

This is what I've done

$wgServer = "https://example.org";

Note the https in wgServer!

End of my LocalSettings.php

if ( isset( $_SERVER['REMOTE_ADDR'] ) &&
     in_array( $_SERVER['REMOTE_ADDR'], [ $_SERVER['SERVER_ADDR'], '127.0.0.1' ] ) ) {
  $wgGroupPermissions['*']['read'] = true;
  $wgGroupPermissions['*']['edit'] = true;
  $wgGroupPermissions['*']['writeapi'] = true;
}
like image 33
Áron Lukács Avatar answered Dec 06 '22 18:12

Áron Lukács