Topic on Talk:Parsoid

Error when running Parsoid welcome webpage tests: "Invalid prefix: mediawikiwiki" or "Invalid prefix: enwiki"

5
75.140.224.158 (talkcontribs)

Installation was done as a normal client (not the dev version). Have tried it without SELinux running. Also, checked the permissions on the file system in Parsoid and everyone has R+X.

The Parsoid service is running and I have also tried running the server.js manually. When a user tries to access the site on port 8000, the get the Welcome to the Parsoid service web page. But when they try to do one of the tests, such as the "round trip test-pages" it gets a page that says "Invalid prefix: mediawikiwiki"

or if the HTML DOM test is run, you get "Invalid prefix: enwiki"

The verbose output from the server, if you run it manually, just says the same thing locally. No information beyond that.

Can someone point me in a direction?

Thanks!

SSastry (WMF) (talkcontribs)
Kingadjon (talkcontribs)

That did the trick, thanks! Once I uncommented (or added) the following config line to localsettings.js, all the tests started working:

parsoidConfig.loadWMF = true;

If you get a second, would you mind explaining what is going on that causes that? I'm new here.

Thanks again!

SSastry (WMF) (talkcontribs)

loadWMF loads the WMF's mediawiki config into Parsoid. This shouldn't be necessary for non-WMF installs. Instead, a better workaround would be to use /_html/localhost kind of endpoints as in T137122.

Separately, we will try to fix the defaults on these debugging endpoints so it doesn't default to WMF wiki prefixes.

Kingadjon (talkcontribs)

More information: Linux version: Centos-release-7-2.1511.el7.centos.2.10.x86_64 PHP: 5.6.20 (apache2handler) MariaDB: 5.5.47-MariaDB MediaWiki: 1.26.2 Node.js: 0.10.42 Parsoid: 0.4.1

Since there was no clear instructions for installing on CentOS (Redhat) that I could find, I went by this help doc: https://www.centos.org/forums/viewtopic.php?f=47&t=53223&p=225372#p225372