Topic on Project:Support desk

Jump to: navigation, search

VisualEditor 404 after changing Wiki's LocalSettings.php

Quinnj09 (talkcontribs)

I have set up a new mediawiki (1.28.0) and added the extension VisualEditor. When browsing to the wiki on the local machine using http://localhost/wiki/ it all works fine and visualeditor and parsoid works as expected. But as soon as I change mediawiki LocalSettings.php $wgServer = "http://localhost"; to $wgServer = "http://serverdomainname"; I get the following in Parsoid:

:"Invalid domain: serverdomainname","name":"lib/index.js","stack":"lib/index.js:
 Invalid domain: serverdomainname\n    at errOut (C:\\Program Files (x86)\\parso
id\\lib\\api\\routes.js:30:13)\n    at routes.v3Middle (C:\\Program Files (x86)\
\parsoid\\lib\\api\\routes.js:94:11)\n    at Layer.handle [as handle_request] (C
:\\Program Files (x86)\\parsoid\\node_modules\\express\\lib\\router\\layer.js:95
:5)\n    at next (C:\\Program Files (x86)\\parsoid\\node_modules\\express\\lib\\
router\\route.js:131:13)\n    at Route.dispatch (C:\\Program Files (x86)\\parsoi
d\\node_modules\\express\\lib\\router\\route.js:112:3)\n    at Layer.handle [as
handle_request] (C:\\Program Files (x86)\\parsoid\\node_modules\\express\\lib\\r
outer\\layer.js:95:5)\n    at C:\\Program Files (x86)\\parsoid\\node_modules\\ex
press\\lib\\router\\index.js:277:22\n    at param (C:\\Program Files (x86)\\pars
oid\\node_modules\\express\\lib\\router\\index.js:349:14)\n    at param (C:\\Pro
gram Files (x86)\\parsoid\\node_modules\\express\\lib\\router\\index.js:365:14)\
n    at param (C:\\Program Files (x86)\\parsoid\\node_modules\\express\\lib\\rou
ter\\index.js:365:14)\n    at param (C:\\Program Files (x86)\\parsoid\\node_modu
les\\express\\lib\\router\\index.js:365:14)\n    at param (C:\\Program Files (x8
6)\\parsoid\\node_modules\\express\\lib\\router\\index.js:365:14)\n    at Functi
on.process_params (C:\\Program Files (x86)\\parsoid\\node_modules\\express\\lib\
\router\\index.js:410:3)\n    at next (C:\\Program Files (x86)\\parsoid\\node_mo
dules\\express\\lib\\router\\index.js:271:10)\n    at C:\\Program Files (x86)\\p
arsoid\\lib\\api\\ParsoidService.js:159:3\n    at Layer.handle [as handle_reques
t] (C:\\Program Files (x86)\\parsoid\\node_modules\\express\\lib\\router\\layer.
t"},"msg":"Invalid domain: serverdomainname","time":"2017-03-09T08:48:29.886Z","

Can anyone help? I can provide more config settings if im looking in the wrong place?

Ciencia Al Poder (talkcontribs)

Looks like your server can't resolve the domain name you provided

Quinnj09 (talkcontribs)

I dont understand why not when 'serverdomainname' is the server that both the mediawiki installation and parsoid is on. should it be pointing at 'serverdomainname' or 'localhost'? but neither seem to work

Quinnj09 (talkcontribs)

No matter what I set it to, it tells me invalid domain

MarkAHershberger (talkcontribs)

If you are running parsoid on the same server as your wiki, try "localhost". Otherwise, try pinging the hostname from the parsoid server on the command line. If that fails (it should in your case) then add the host's name and IP to /etc/hosts.

This comment was hidden by Quinnj09 (history)
Quinnj09 (talkcontribs)

Oddly, the thing that fixed it, was I put parsoid into debug mode, it worked fine, took it back out of debug mode, it continued to work, maybe theres some rare bug I stumbled over?

Ciencia Al Poder (talkcontribs)

Maybe the change in setting wasn't saved correctly, or the value was cached somehow, or you needed to restart some service...