Parsoid与MediaWiki VisualEditor返回500

时间:2015-03-22 19:23:30

标签: php mediawiki parsoid

我为MediaWiki 1.24.1的Visual Editor配置了Parsoid服务,配置为私有wiki。我可以访问api端点和parsoid端点,但是当我尝试使用VisualEditor开始编辑时,我收到此错误:

Erro ao carregar dados do servidor:  parsoidserver-http-bad-status: 500: error: Page Fetch failure for "http://server.domain.in": 404 path: /working/file
Error: Page Fetch failure for "http://server.domain.in": 404
at ApiRequest._requestCB (/usr/lib/parsoid/src/lib/mediawiki.ApiRequest.js:172:11)
at Request.self.callback (/usr/lib/parsoid/node_modules/request/request.js:123:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (/usr/lib/parsoid/node_modules/request/request.js:1047:14)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/usr/lib/parsoid/node_modules/request/request.js:998:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:929:16
at process._tickCallback (node.js:419:13). Gostaria de tentar novamente?

首先错误的是,完整的域名是http://server.domain.inter.com,似乎由于某种原因它不行。

/etc/mediawiki/parsoid/settings.js中的配置是

parsoidConfig.setInterwiki( 'interwiki', 'http://server.domain.inter.com/wiki/api.php' );

LocalSettings.php有

 require_once "$IP/extensions/VisualEditor/VisualEditor.php";
 // Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
// OPTIONAL: Enable VisualEditor's experimental code features
#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;

// URL to the Parsoid instance
// MUST NOT end in a slash due to Parsoid bug
$wgVisualEditorParsoidURL = 'http://localhost:8142';
// Proxy to use for curl requests.
// false: use direct connection to Parsoid daemon ($wgHTTPProxy is not 
// either)
$wgVisualEditorParsoidHTTPProxy = false;
// Interwiki prefix to pass to the Parsoid instance
// Parsoid will be called as $url/$prefix/$pagename
$wgVisualEditorParsoidPrefix = 'interwiki';

0 个答案:

没有答案