上周我一直在寻找如何同时使用可视化编辑器/Parsoid和Auth Remoteuser扩展的答案。
尝试创建/编辑页面时出现以下错误:
Error loading data from server: apierror-visualeditor-docserver-http: HTTP 500. Would you like to retry?
当前环境:
- 操作系统: 视窗服务器 2012 RT
- XAMPP: v3.2.2
- PHP: v7.1.12
- SQL: MariaDB 10.1.29
- 阿帕奇:v2.4
- 媒体维基: 1.30.0
本地设置.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>
当我从计算机转到Parsoid服务器时,它正在工作。 http://xx.xxx.xx.xx:8000。如果我禁用身份验证远程用户扩展,那么可视化编辑器工作正常。
我尝试按照 Parsoid 文档中的建议转发 cookie,但它不起作用。这个维基不是私有的。
当我将以下内容添加到httpd.conf可视化编辑器工作时:
Allow from 127.0.0.1
Satisfy Any
唯一的问题是,它不会使用他们的Windows凭据自动登录用户。
可能有点晚了,但我只是遇到了同样的问题。似乎这解决了它。 只需在 php 中注释已弃用的设置.ini error_reporting=E_ALL -> ;error_reporting=E_ALL
">[PHP]"部分下的"error_reporting"键会导致此问题。