Topic on Extension talk:VisualEditor

67.244.49.134 (talkcontribs)

I have VE and Parsoid installed on my wiki running MW 1.29.0 and it won't work. The Loading bar doesn't get to 100% and disappears before getting there.

Seb35 (talkcontribs)
  1. Are Parsoid and the wiki installed on the same server?
  2. If you downloaded the VisualEditor with Git, be sure you executed git submodule update --init.
  3. Check you correctly registered the API of the wiki in Parsoid configuration, e.g. you open the Parsoid configuration file (config.yaml, either in /etc/mediawiki/parsoid (on Linux/Unix) either in the Parsoid (on Windows)), check the line - uri: 'http://your-wiki-url.example.com/api.php'; if it is not configured correctly, fix it; else copy-paste the entire URL in your browser and you should obtain the MediaWiki API page.
  4. If your wiki is private, you must add in your LocalSettings.php the instruction 'forwardCookies' (see Extension:VisualEditor#Forwarding Cookies to Parsoid).
2002:43F4:3186:1234:7CC5:40B9:CB10:5531 (talkcontribs)
  1. Yes
  2. I already ran git submodule init and then git submodule update
  3. I did
  4. It’s public not private
  5. I did not see anything wrong in the released error logs.
2002:43F4:3186:1234:7CC5:40B9:CB10:5531 (talkcontribs)

*releated

Seb35 (talkcontribs)

6. Check the PHP extension 'curl' is installed (package php-curl on Debian/Ubuntu).
7. Check the TCP port is the same on VE side and Parsoid side (default port from VE side is 8000, default port on Parsoid side is 8000, but default port on Parsoid side from the Debian package is 8142).
8. Check the Parsoid is correctly responding on http://your-parsoid-url.example.org:8000/localhost/v3/page/html/Main_Page/12?redirect=false (adapt your server and host, as well as the page name (Main_Page) and oldid (12 here, you can take 1 to be sure the oldid exists).
9. Can you give the address of your wiki?

2002:43F4:3186:1234:903A:E1BF:CE37:5E29 (talkcontribs)
Seb35 (talkcontribs)

10. Given your wiki is on HTTPS, check you have the package "ca-certificates". And what is exactly your configuration for $wgVirtualRestConfig['modules']['parsoid'] in LocalSettings.php, and the 'uri' key in /etc/mediawiki/parsoid/config.yaml? (I suspect some issue linked to HTTPS.)

I just checked your wiki: indeed everything seems to be fine except "?veaction=edit" does not fully launch the VisualEditor. Note that the Translate extension is hardly compatible with the VisualEditor (even if it would be an interesting feature), see phabricator:T140703 and phabricator:T55974.

If the point 10 does not solve the issue, I’m afraid that further steps involve deeper debugging. According to the page Manual:How to debug, can you add the following in your LocalSettings.php:

error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails = true;
$wgShowDebug = true;
$wgDevelopmentWarnings = true;
$wgDebugLogFile = '/var/log/mediawiki.log';

And check if some errors appears on the site and in the logfiles /var/log/mediawiki.log and in your server logs (access.log and error.log), first when loading a normal page, next when loading the visual editor.

Reply to "Ve error"