Topic on Talk:MediaWiki 1.35

MediaWiki 1.35.0-rc.0, VisualEditor, and Parsoid

4
Aixnr (talkcontribs)

Hey guys,


Congratulations on the RC release of the much anticipated v1.35. I am super excited knowing that Parsoid and VisualEditor are going to be bundled together within this release.


I installed it just now (using this tarball: https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.0-rc.0.tar.gz), ran the installation using PostgreSQL as the database backend and Nginx/PHP-FPM as the HTTP server. I tried editing a page and it defaults to VisualEditor UI, but it stopped short at "Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server".


I found that it is installed, located at the "vendor/wikimedia/parsoid" folder, but how do I get from there? I tried adding this:


wfLoadExtension( 'Parsoid' );


... but it threw this error:


Unable to open file /var/www/mediawiki/extensions/Parsoid/extension.json


Please advise. Thank you!

Adamw (talkcontribs)

I believe you can include extensions from non-standard directories with something like the following:

wfLoadExtension( 'Parsoid', "$IP/vendor/wikimedia/parsoid/extension.json" );

However, my one reservation is that I'm not sure if this is the right version of Parsoid. Neither extension.json nor composer.json includes a version number as far as I can see, and HISTORY.md seems out of date.

Jdforrester (WMF) (talkcontribs)
夕舞八弦 (talkcontribs)

Similar situation, but I got

Error contacting the Parsoid/RESTBase server (HTTP 404)

In my nginx log I found

127.0.0.1 - - [16/Aug/2020:15:45:09 +0800] "GET /rest.php/prts.xwbx.ink/v3/page/html/%E9%A6%96%E9%A1%B5/31?redirect=false&stash=true HTTP/1.1" 404 169 "-" "VisualEditor-MediaWiki/1.35.0-rc.1"

2020/08/16 15:45:09 [error] 21#21: *565 open() "/var/www/html/mediawiki/rest.php/prts.xwbx.ink/v3/page/html/首页/31" failed (20: Not a directory), client: 127.0.0.1, server: prts.xwbx.ink, request: "GET /rest.php/prts.xwbx.ink/v3/page/html/%E9%A6%96%E9%A1%B5/31?redirect=false&stash=true HTTP/1.1", host: "prts.xwbx.ink"

maybe there is some configure I shoud do with nginx?

Reply to "MediaWiki 1.35.0-rc.0, VisualEditor, and Parsoid"