Jump to content

Talk:MediaWiki-Docker/Extension/VisualEditor

Add topic
From mediawiki.org

How to test the setup?

[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I followed the instructions. However, when I try to edit a page visually I receive the following error

{"error":{"code":"apierror-visualeditor-docserver-http-error","info":"Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server","docref":"See http://localhost:8080/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."}}

How can I figure out which url is trying to be contacted? Physikerwelt (talk) 11:28, 4 August 2021 (UTC)Reply

I checked http://localhost:8080/w/rest.php/localhost/v3/page/html/Main%20Page/3 which works as expected. Physikerwelt (talk) 11:44, 4 August 2021 (UTC)Reply
This page is a draft. I'm pretty sure that you'll not get a working VE after following these steps. ZFilipin (WMF) (talk) 16:55, 18 August 2021 (UTC)Reply
@Physikerwelt Are you using Docker on a mac? If this is the case, you might want to add
$wgVirtualRestConfig['modules']['parsoid'] = [
'url' => 'http://host.docker.internal:8080' . $wgScriptPath . '/rest.php',
];
This seems to be working for me. VPuffetMichel (WMF) (talk) 19:21, 3 September 2021 (UTC)Reply
It worked for me too! Thanks! ZFilipin (WMF) (talk) 16:08, 6 September 2021 (UTC)Reply
I've tested it both on macos and ubuntu, and it's needed in both. ZFilipin (WMF) (talk) 13:58, 14 September 2021 (UTC)Reply
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Every extension needs to mention checking out the REL1_XX branch

[edit]

I'll update this article to reflect that, but what's the most efficient way of doing that across all the relevant pages? Just Special:ReplaceText, or are there other tricks I'm not aware of? Edit: I think you need to be a sysop to use Special:ReplaceText, so that's out. --Ernstkm (talk) 03:03, 28 August 2023 (UTC)Reply

Maybe ask at Project:Support desk? Whatamidoing (WMF) (talk) 23:45, 28 August 2023 (UTC)Reply
OK, good idea. Thanks. Ernstkm (talk) 01:45, 29 August 2023 (UTC)Reply