Topic on Talk:MediaWiki 1.35

Visual editor can't connect to server

6
Summary by Hcadby

Fixed issue

Hcadby (talkcontribs)

I have installed the new mediawiki 1.35 and some extensions, during setup I installed Visual Editor however when trying to edit a page with visual editor i get the following error:

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

Any help would be appreciated.


My mediawiki install.

Product Version
MediaWiki 1.35.0
PHP 7.4.12 (fpm-fcgi)
MariaDB 10.3.17-MariaDB
ICU 65.1
91.166.116.231 (talkcontribs)

me too, the same error, does someone has a solution?

Bluedreamer1 (talkcontribs)

Also getting this error with the latest docker image of mediawiki.

Bluedreamer1 (talkcontribs)

I found out how to do this, the key part is very much missing from the documentation as it says "no configuration"

Add this to LocalSettings.php to use default 1.35 Parsoid code wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );

Hcadby (talkcontribs)

I have tried this but still getting the same result

Bluedreamer1 (talkcontribs)

So I did various other things.

I added this to my php.ini

curl.cainfo ="/etc/cacert.pem"

I download the file from curl's site at http://curl.haxx.se/ca/cacert.pem

I tried manually curling my site's api page

curl --cacert /etc/cacert.pem https://<my wiki site>/api.php

That still gave me an error

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

So I added my SSL pem cert to the end of the file /etc/cacert.pem

Then I added this to my LocalSettings.php

wfLoadExtension( 'Parsoid', '/home/un9/mediawiki/vendor/wikimedia/parsoid/extension.json' );
$wgGroupPermissions['user']['writeapi'] = true;

That's what I did and now it works, not sure if every step is necessary.