Topic on Extension talk:VisualEditor

Error contacting the Parsoid/RESTBase server (HTTP 403)

4
Summary by AID-PMBD

Solution found in: https://stackoverflow.com/questions/64106004/error-contacting-the-parsoid-restbase-server-http-bad-status-on-fresh-mediawiki


Changed $wgServer = from $wgServer = "http://wiki.name.domain.com"; to $wgServer = "https://wiki.name.domain.com";

AID-PMBD (talkcontribs)

I just finished setting up a fresh wiki with the following configuration:

Mediawiki 1.35.6

PHP 7.4.3 (apache2handler)

MySQL 8.0.29-0ubuntu0.20.04.3

ICU 66.1

Lua 5.1.5

VisualEditor 0.1.2

wikimedia/parsoid 0.12.2


Parsoid and Visual Editor were installed through the Mediawiki bundling. I have a wiki with a similar configuration the only difference is Mediawiki 1.35.3, which works perfectly fine. On the wiki with Mediawiki 1.35.6 VisualEditor returns the following error:


Error contacting the Parsoid/RESTBase server (HTTP 403)


Any idea on how I can fix this without updating Mediawiki from 1.35 and downgrading it to 1.35.3? I need to stay on the legacy version of Mediawiki.

AID-PMBD (talkcontribs)

As additional information, I have given all users that are supposed to be able to edit the following permission:


$wgGroupPermissions['Edit']['writeapi'] = true;

AID-PMBD (talkcontribs)

Another additional piece of information:


I am running the wiki as a vhost with apache2. My .config file in etc/apache2/sites-available looks like this:

<VirtualHost *:80>

ServerAdmin admin@email.com

ServerName wiki.name.domain.com

ServerAlias www.wiki.name.domain.com

DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined

RewriteEngine on

RewriteCond %{SERVER_NAME} =wiki.name.domain.com [OR]

RewriteCond %{SERVER_NAME} =www.wiki.name.domain.com

RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

</VirtualHost>

<Directory /var/www/html>

       AllowOverride All

</Directory>

AID-PMBD (talkcontribs)