MediaWiki-Docker/Extension/VisualEditor

This page instructs you to install Extension:VisualEditor inside MediaWiki-Docker. All commands should be run in the directory where you installed MediaWiki. All mentioned files are also located there.

Install MediaWiki-Docker
Follow the Quickstart instructions at MediaWiki-Docker page. Once MediaWiki is running and available at, then continue with instructions on this page.

Modify LocalSettings.php
If not already there, add this to the end of.

Troubleshooting
If you receive one of the following errors in the browser, try the remedies prescribed below.

"Uncaught ExtensionDependencyError"
If you receive an error message in the browser similar to the following

Fatal error: Uncaught ExtensionDependencyError: VisualEditor is not compatible with the current MediaWiki core (version 1.39.4), it requires: >= 1.41. in /var/www/html/w/includes/registration/ExtensionRegistry.php:432 Stack trace: #0 /var/www/html/w/includes/registration/ExtensionRegistry.php(276): ExtensionRegistry->readFromQueue #1 /var/www/html/w/includes/Setup.php(278): ExtensionRegistry->loadFromQueue #2 /var/www/html/w/includes/WebStart.php(86): require_once('...') #3 /var/www/html/w/index.php(44): require('...') #4 {main} thrown in /var/www/html/w/includes/registration/ExtensionRegistry.php on line 432

perform these steps to check out a compatible branch of the extension (in this example, )

and refresh the page to try again.

"Error contacting the Parsoid/RESTBase server"
If you receive the following error when attempting to use VisualEditor for the first time

Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server

you will most likely need to replace the Parsoid config setting  in your LocalSettings.php with the internal IP of the container running the web server. For example:

If you have installed, this command will return the appropriate information:

Example output:

{ "Name": "mediawiki_mediawiki-web_1", "EndpointID": "29155dfdac8e4194d4100bdaf5ddbe91ee0e66f52842145985ce6aa6e894c563", "MacAddress": "e0:e0:e0:e0:e0:e0", "IPv4Address": "172.17.0.1/16", "IPv6Address": "" }