每当我在我的 mediawiki 网站上单击“编辑”时,总是会显示该错误,并且我无法继续使用可视化编辑器,我怀疑我的路径在某些 URL 中是错误的。这是我在 LocalSettings.php 中的 parsoid 配置
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://localhost:8000',
// Parsoid "domain", see below (optional)
'domain' => 'localhost',
// Parsoid "prefix", see below (optional)
'prefix' => 'localhost'
);
这是我的 config.yaml
mwApis:
- # This is the only required parameter,
# the URL of you MediaWiki API endpoint.
uri: 'http://192.168.195.166/mediawiki/w/api.php'
# The "domain" is used for communication with Visual Editor
# and RESTBase. It defaults to the hostname portion of
# the `uri` property below, but you can manually set it
# to an arbitrary string.
domain: 'localhost' # optional