On Sat, May 11, 2013 at 04:46:37PM +0200, Marco De Nadai wrote:
> TypeError: Object.keys called on non-object
>     at Function.keys (native)
>     at Object.WikiConfig (/srv/
> www.startupperday.com/Parsoid/js/lib/mediawiki.WikiConfig.js:41:20)
>     at null.<anonymous> (/srv/
> www.startupperday.com/Parsoid/js/lib/mediawiki.parser.environment.js:300:22)
>      at processSome (/srv/
> www.startupperday.com/Parsoid/js/lib/mediawiki.ApiRequest.js:98:17)
>     at process._tickCallback (node.js:415:13)
> 
> Can you help me? :(((

Is this wiki readable by anonymous users? If not, the Parsoid service won't be
able to get the necessary configuration from your wiki via the API.

There's a bug for this - https://bugzilla.wikimedia.org/show_bug.cgi?id=44483

You could try to fix the bug, but it's a tough one. You could also work around
the issue by creating a cached JSON response in js/lib/baseconfig, where we
have a bunch of default configs laying around. After doing that you may need
to change some configuration or even code to get Parsoid's API to use that
file instead of an API response, but it's possible.

If your wiki *isn't* read-only, then I'm sorry I rambled at you here :) we can
help much more easily on IRC at #mediawiki-parsoid on Freenode, because of the
relative speed of the communication with IRC.

Thanks for trying out the system! Hopefully we can help you get it working on
your wiki.

Ta,

-- 
Mark Holmquist
Software Engineer
Wikimedia Foundation
mtrac...@member.fsf.org
https://wikimediafoundation.org/wiki/User:MHolmquist

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to