尝试在192.168.20.130中设置一个可视化编辑
我使用apt-get来安装parsoid并将config.yaml设置为
uri:'http://192.168.20.130/wiki/api.php‘
我试图通过浏览器访问192.168.20.130:8142,并得到了一个工作页面。
然后将LocalSettings.php配置为
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'h*ttp://192.168.20.130:8142',//ignore this * pls due to stack overflow don't let me upload question descript with links
'domain' => '192.168.20.130',
'prefix' => '192.168.20.130'
);在这些配置之后,我尝试用Visual编辑索引页,但是得到了一个“从服务器加载数据时出错:HTTP 200”
我检查了apache access_log并发现这个编辑操作请求url:http://192.168.20.130/wiki/api.php?action=visualeditor&format=json&paction=parse&page=%E9%A6%96%E9%A1%B5&uselang=zh-cn (我使用zh-cn,"%E9%A6%96%E9%A1%B5“是索引页的uri编码),然后我手动访问这个url,但只收到一条消息:”遇到异常,类型为“Error”。
我怎样才能解决这个问题?
发布于 2016-12-03 20:32:52
重要的部分是"Exception encountered, of type "Error""上的action=visualeditor API。您需要查看web服务器的错误日志,才能准确地找到哪里出错了。
https://stackoverflow.com/questions/40720611
复制相似问题