I have been searching for the last week trying to find an answer on how to use Visual Editor/Parsoid and Auth Remoteuser extensions together.
I am getting the following error when trying to Create/Edit a page:
Error loading data from server: apierror-visualeditor-docserver-http: HTTP 500. Would you like to retry?
Current environment:
- OS: Windows Server 2012 RT
- XAMPP: v3.2.2
- PHP: v7.1.12
- SQL: MariaDB 10.1.29
- Apache: v2.4
- MediaWiki: 1.30.0
LocalSettings.php
$wgEnableWriteAPI = true;
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'http://localhost:8000',
'domain' => 'localhost',
);
config.yaml
mwApis:
uri: 'http://localhost/api.php'
domain: 'localhost'
httpd.conf
<Directory "D:/Wiki/htdocs">
Options None
AllowOverride All
Order allow,deny
Allow from all
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
SSPIOmitDomain On
Require valid-user
</Directory>
When I go to Parsoid server from my computer, it is working. http://xx.xxx.xx.xx:8000. If I disable the Auth Remoteuser extension, then Visual Editor works fine.
I tried forwarding the cookies as suggested in the Parsoid documentation and it doesn't work. This Wiki is not private.
When I add the following to the httpd.conf Visual Editor works:
Allow from 127.0.0.1
Satisfy Any
The only problem is then, it doesn't automatically log in the user using their Windows Credential.
might be a bit late, but I just had the same issue. Seems like this solves it. Just comment the deprecated setting in php.ini error_reporting=E_ALL -> ;error_reporting=E_ALL
'error_reporting' key under section '[PHP]' causes the issue.