【问题标题】:Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 7)从服务器加载数据时出错:apierror-visualeditor-docserver-http-error: (curl error: 7)
【发布时间】:2019-06-24 08:30:48
【问题描述】:

每当我在我的 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

【问题讨论】:

    标签: mediawiki mediawiki-extensions visual-editor mediawiki-visualeditor


    【解决方案1】:

    你只需要从你的路径中删除“w”,并始终保持parsoid api的端口(节点bin / serve.js)

    mwAPI: - # 这是唯一需要的参数, # 你的 MediaWiki API 端点的 URL。 uri: 'http://192.168.195.166/mediawiki/api.php' # “域”用于与可视化编辑器进行通信 # 和 RESTBase。它默认为主机名部分 # 下面的uri 属性,但你可以手动设置它 # 到任意字符串。 domain: 'localhost' # 可选

    【讨论】:

      猜你喜欢
      • 2023-03-22
      • 1970-01-01
      • 1970-01-01
      • 2021-06-18
      • 1970-01-01
      • 1970-01-01
      • 2014-12-04
      • 1970-01-01
      • 2023-04-01
      相关资源
      最近更新 更多