从服务器加载数据错误:apierror-visualeditor-docserver-http-error。(curl错误:7)

问题描述 投票:2回答:1

每当我在mediawiki网站上点击 "编辑 "时,总是显示错误,而且我无法进入Visual编辑器,我怀疑是我的路径在某些URL中出了问题。

$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
mediawiki mediawiki-extensions visual-editor mediawiki-visualeditor
1个回答
0
投票

你只需要从你的路径中删除 "w",并始终保持parsoid api的端口在(node bin serve.js)。

mwApis.# 这是唯一需要的参数,# 你的MediaWiki API端点的URL。 - 这是唯一需要的参数, # MediaWiki API端点的URL.http:/192.168.195.166mediawikiapi.php。' # "domain "用于与Visual Editor #和RESTBase通信。 它默认为#的主机名部分。uri domain: 'localhost' # 可选。

© www.soinside.com 2019 - 2024. All rights reserved.