Topic on Extension talk:VisualEditor

T. Nordlund (talkcontribs)

I run version 1.33.0 MediaWiki as a private Wiki and followed the installation guide for both Parsoid and VisualEditor. Upon finishing configuration I receive the following error when I click on edit on any existing page:

apierror-visualeditor-docserver-http: HTTP 500.


What I checked so far:

7.2 curl is installed

setMwApi is correctly set


My guess is the problem is within the configuration and therefore trouble with the API.


LocalSettings.php:

wfLoadExtension( 'VisualEditor' );

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgHiddenPrefs[] = 'visualeditor-enable';

#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

$wgVirtualRestConfig['modules']['parsoid'] = array(

    'url' => 'http://xyz:8142',

    'domain' => 'localhost',

    'prefix' => 'localhost'

);

$wgVisualEditorAllowLossySwitching=false;

$wgSessionsInObjectCache = true;

$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;


config.yaml:

uri: 'http://xyz/mediawiki/api.php'

(only line that was configured)


Any help is greatly appreciated.

120.244.164.144 (talkcontribs)

same problem, sad

Bttfvgo (talkcontribs)

Not sure if it will help, but what I have (and it works) changes two lines.

LocalSettings.php 'url' => 'http://xyz:8142', reads 'url' => 'http://localhost:8142',

and config.yaml uri: 'http://xyz/mediawiki/api.php' reads uri: 'http://localhost/api.php' (Yours might have to read uri: 'http://localhost/mediawiki/api.php' but I'm not quite sure. That should only apply if your wiki's endpoint is accessed by http://xyz.com/mediawiki/api.php. If it's just http://xyz.com/api.php, use localhost/api.php.)

Perhaps it may work for you, as well.

T. Nordlund (talkcontribs)

I've posted this question in the MediaWiki support desk and received enough answers to figure out the problem. What @Bttfvgo mentioned seems to work, with the addition that I needed to also set the domain variable to my IP address. See here for reference.