when i install Content translation success and activated this tool,occur "Error: Could not connect to the server" error.
how can i repair this problem?
when i install Content translation success and activated this tool,occur "Error: Could not connect to the server" error.
how can i repair this problem?
You also need to install ContentTranslation server (ie cxserver). Instructions are at: Content translation/cxserver/Setup
You need to point it in LocalSettings.php like,
$wgContentTranslationSiteTemplates['cx'] = 'http://localhost:8080/v1';
hi master,i have install cxserver.according to doc,open http://52.55.106.209:8080/v1 in browser,i can get response page,does it mean cxserver run successful?
but when i use Content translation tool,it does't work correct,the problem "Could not connect to the server" above has been soloved.
i suppose the config.yaml in restbase is not correctly configured.
my config.yaml content is below:
x-request-filters: - path: lib/security_response_header_filter.js x-sub-request-filters: - type: default name: http options: allow: - pattern: http://107.23.252.170/mediawiki/api.php forward_headers: true - pattern: http://localhost:8142 forward_headers: true - pattern: /^https?:\/\// paths: /{domain:107.23.252.170/mediawiki}: x-modules: - path: projects/example.yaml options: action: # XXX Check API URL! apiUriTemplate: http://107.23.252.170/mediawiki/api.php # XXX Check the base RESTBase URI baseUriTemplate: "{{'http://{domain}:7231/{domain}/v1'}}" parsoid: # XXX Check Parsoid URL! host: http://localhost:8142
my cxserver ,restbase,parsoid is install on one server.the server ip is:52.55.106.209
my mediawiki is install on another server,the server ip is:107.23.252.170,and mediawiki website is http://107.23.252.170/mediawiki or http://107.23.252.170/mediawiki/index.php.
i config cxserver addr in mediawiki location:extensions/ContentTranslation/extension.json,cxserver addr is below:
"ContentTranslationSiteTemplates": {
"view": "//$1.wikipedia.org/wiki/$2",
"action": "//$1.wikipedia.org/w/index.php?title=$2",
"api": "//$1.wikipedia.org/w/api.php",
"cx": "http://52.55.106.209:8080/v1",
"cookieDomain": null,
"restbase": "//$1.wikipedia.org/api/rest_v1"
},
Does the config.yaml I configured in restbase is error?which place is error?
You can use account:wekay102200/123456 to log into my mediawiki: http://107.23.252.170/mediawiki.
the Content translation site is:http://107.23.252.170/mediawiki/index.php?title=Special:ContentTranslation&campaign=specialcx