Hi Inez, hi Subbu
That's it!
I didn't know about prefix as I could not find anything about that variable at http://www.mediawiki.org/wiki/Parsoid. Maybe you should add that to the page.
But that alone didn't help! The thing that made it work was "$wgGroupPermissions['*']['read'] = false;" I had it on FALSE and when I changed it to TRUE, everything worked! Splendid, thank you.
Will it be possible to use Parsoid in the future with the variable being FALSE?
Stadtpirat!
>
> Message: 2
> Date: Fri, 25 Jan 2013 11:39:49 -0800
> From: Subramanya Sastry <ssastry(a)wikimedia.org>
> To: wikitext-l(a)lists.wikimedia.org
> Subject: Re: [Wikitext-l] No response to VisualEditor from Parsoid
> Message-ID: <5102DF85.7030002(a)wikimedia.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> In addition to what Inez suggested, another place to check based on
> #mediawiki-parsoid discussion about this report. -Subbu.
>
> ...
> <RoanKattouw> Does he have $wgGroupPermissions['*']['read'] === false
> perhaps?
> <marktraceur> Hm, that might be it
> <RoanKattouw> Does he have a current version of MW?
> <marktraceur> RoanKattouw: The permissions thing is exactly right
> <marktraceur> RoanKattouw: I didn't ask about the version
> <RoanKattouw> The perms thing will do it
> ...
> <RoanKattouw> The API refuses to do pretty much everything if you're
> logged out and have denied anons read rights
> <RoanKattouw> Actually, I'm pretty sure the only modules available in
> that case are help and login :)
> ...
>
>> Hi,
>>
>> In your localsettings.js (for Parsoid) you should have
>> "parsoidConfig.setInterwiki( 'skwiki', 'http://skwiki'; );" instead of
>> what you have now.
>>
>> Also try setting $wgVisualEditorParsoidURL = 'http://skwiki:8000'; and
>> $wgVisualEditorParsoidPrefix = 'skwiki' (make sure that nothing is
>> overwritten in extensions/VisualEditor/VisualEditor.php).
>>
>> Inez
>>
>> On Fri, Jan 25, 2013 at 3:25 AM, - - <stadtpirat11(a)ymail.com> wrote:
>>>
>>> Hi,
>>>
>>> I just asked this in IRC, but in case I need to go before I get a reply, I will ask you here:
>>>
>>> This really starts to bug me! I have no idea why Parsoid (and the VisualEditor) is not working! My wiki is working and the address is http://skwiki/w/Hauptseite ("Main_Page" is "Hauptseite" in German). I see the api page when I go to http://skwiki/api.php and I see the Parsoid page when I go to http://skwiki:8000. But I get errors when I click the VisualEditor link on http://skwiki/w/VisualEditor:Sandbox (no response).
>>>
>>> - The wiki is located at /usr/local/var/www/mediawiki/.
>>> - The webserver is configured to have the docroot for http://skwiki at /usr/local/var/www/mediawiki/
>>> - It also internally rewrites "/w/(.+)" to "index.php?title=$1"
>>> - /usr/local/var/www/mediawiki/extensions/Parsoid/js/api/localsettings.php is http://pastebin.com/BhB07BKY
>>> - /usr/local/var/www/mediawiki/LocalSettings.php is http://pastebin.com/Y1wLnwiL
>>>
>>> When I click the WYSIWYG-button at http://skwiki/w/VisualEditor:Sandbox, I get the following response in the web browser
>>>
>>>> {"error":{"code":"parsoidserver","info":"Error contacting the Parsoid server"}}
>>> and node js throws an error:
>>>
>>>> /usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.WikiConfig.js:25
>>>> var nkeys = Object.keys( names );
>>>> ^
>>>> TypeError: Object.keys called on non-object
>>>> at Function.keys (native)
>>>> at Object.WikiConfig (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.WikiConfig.js:25:21)
>>>> at MWParserEnvironment.switchToConfig (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.parser.environment.js:215:21)
>>>> at ApiRequest.processListeners.processSome (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.ApiRequest.js:53:4)
>>>> at process.startup.processNextTick.process._tickCallback (node.js:244:9)
>>> I really would like to get this working!
>>>
>>> Thanks,
>>>
>>> Stadtpirat
>>>
>>> ---------- Forwarded message ----------
>>> From: - - <stadtpirat11(a)ymail.com>
>>> To: "wikitext-l(a)lists.wikimedia.org" <wikitext-l(a)lists.wikimedia.org>
>>> Cc:
>>> Date: Fri, 25 Jan 2013 03:06:21 -0800 (PST)
>>> Subject: WG: No response to VisualEditor from Parsoid
>>> Hi,
>>>
>>>
>>> I just asked this in IRC, but in case I need to go before I get a reply, I will ask you here:
>>>
>>> This really starts to bug me! I have no idea why Parsoid (and the VisualEditor) is not working! My wiki is working and the address is http://skwiki/w/Hauptseite ("Main_Page" is "Hauptseite" in German). I see the api page when I go to http://skwiki/api.php and I see the Parsoid page when I go to http://skwiki:8000. But I get errors when I click the VisualEditor link on http://skwiki/w/VisualEditor:Sandbox (no response).
>>>
>>> - The wiki is located at /usr/local/var/www/mediawiki/.
>>> - The webserver is configured to have the docroot for http://skwiki at /usr/local/var/www/mediawiki/
>>> - It also internally rewrites "/w/(.+)" to "index.php?title=$1"
>>> - /usr/local/var/www/mediawiki/extensions/Parsoid/js/api/localsettings.php is http://pastebin.com/BhB07BKY
>>> - /usr/local/var/www/mediawiki/LocalSettings.php is http://pastebin.com/Y1wLnwiL
>>>
>>> When I click the WYSIWYG-button at http://skwiki/w/VisualEditor:Sandbox, I get the following response in the web browser
>>>
>>>> {"error":{"code":"parsoidserver","info":"Error contacting the Parsoid server"}}
>>> and node js throws an error:
>>>
>>>> /usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.WikiConfig.js:25
>>>> var nkeys = Object.keys( names );
>>>> ^
>>>> TypeError: Object.keys called on non-object
>>>> at Function.keys (native)
>>>> at Object.WikiConfig (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.WikiConfig.js:25:21)
>>>> at MWParserEnvironment.switchToConfig (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.parser.environment.js:215:21)
>>>> at ApiRequest.processListeners.processSome (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.ApiRequest.js:53:4)
>>>> at process.startup.processNextTick.process._tickCallback (node.js:244:9)
>>> I really would like to get this working!
>>>
>>> Thanks,
>>>
>>>
>>> Stadtpirat
Hi,
I just asked this in IRC, but in case I need to go before I get a reply, I will ask you here:
This really starts to bug me! I have no idea why Parsoid (and the VisualEditor) is not working! My wiki is working and the address is http://skwiki/w/Hauptseite ("Main_Page" is "Hauptseite" in German). I see the api page when I go to http://skwiki/api.php and I see the Parsoid page when I go to http://skwiki:8000. But I get errors when I click the VisualEditor link on http://skwiki/w/VisualEditor:Sandbox (no response).
- The wiki is located at /usr/local/var/www/mediawiki/.
- The webserver is configured to have the docroot for http://skwiki at /usr/local/var/www/mediawiki/
- It also internally rewrites "/w/(.+)" to "index.php?title=$1"
- /usr/local/var/www/mediawiki/extensions/Parsoid/js/api/localsettings.php is http://pastebin.com/BhB07BKY
- /usr/local/var/www/mediawiki/LocalSettings.php is http://pastebin.com/Y1wLnwiL
When I click the WYSIWYG-button at http://skwiki/w/VisualEditor:Sandbox, I get the following response in the web browser
> {"error":{"code":"parsoidserver","info":"Error contacting the Parsoid server"}}
and node js throws an error:
> /usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.WikiConfig.js:25
> var nkeys = Object.keys( names );
> ^
> TypeError: Object.keys called on non-object
> at Function.keys (native)
> at Object.WikiConfig (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.WikiConfig.js:25:21)
> at MWParserEnvironment.switchToConfig (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.parser.environment.js:215:21)
> at ApiRequest.processListeners.processSome (/usr/local/var/www/mediawiki/extensions/Parsoid/js/lib/mediawiki.ApiRequest.js:53:4)
> at process.startup.processNextTick.process._tickCallback (node.js:244:9)
I really would like to get this working!
Thanks,
Stadtpirat
Fellow MediaWiki hackers!
After the pretty successful December release and some more clean-up work
following up on that we are now considering the next steps for Parsoid.
To this end, we have put together a rough roadmap for the Parsoid project at
https://www.mediawiki.org/wiki/Parsoid/Roadmap
The main areas we plan to work on in the next months are:
Performance improvements: Loading a large wiki page through Parsoid into
VisualEditor can currently take over 30 seconds. We want to make this
instantaneous by generating and storing the HTML after each edit. This
requires a throughput that can keep up with the edit rates on major
wikipedias (~10 Hz on enwiki).
Features and refinement: Localization support will enable the use of
Parsoid on non-English wikipedias. VisualEditor needs editing support
for more content elements including template parameters and extension
tags. As usual, we will also continue to refine Parsoid's compatibility
in round-trip testing and parserTests.
Apart from these main tasks closely connected to supporting the
VisualEditor, we also need to look at the longer-term Parsoid and
MediaWiki strategy. Better support for visual editing and smarter
caching in MediaWiki's templating facilities is one area we plan to look
at. We also would like to make it easy to use the VisualEditor on small
mediawiki installations by removing the need to run a separate Parsoid
service.
A general theme is pushing some of Parsoid's innovations back into
MediaWiki core. The clean and information-rich HTML-based content model
in particular opens up several attractive options which are discussed in
detail in the roadmap.
Please review the roadmap and let us know what you think!
Gabriel and the Parsoid team
--
Gabriel Wicke
Senior Software Engineer
Wikimedia Foundation