Topic on Extension talk:VisualEditor

Jump to navigation Jump to search (talkcontribs)


I've been trying to install VisualEditor on a Windows machine and Ubuntu. Both tries returns me 500 error when trying to edit pages, or Unkown Error when trying to create a new page. Parsoid is up and running but I can't confirm it's linked with VisualEditor.

What am I doing wrong? Any suggestion?

Thanks. (talkcontribs)

For a 500 error on the visual editor end you should be getting an error in your web server logs, if you haven't set a special vhost configuration for apache then the log should be in /var/log somewhere.

Keegan1120 (talkcontribs)

I got the same error when i start editing a page. BUT: I create a new site = the Editor works perfectly..

My persoid.log (the error section):

[info][wiki$0/Hauptseite?oldid=8] started parsing

[fatal/request][wiki$0/Hauptseite?oldid=8] Cannot assign to read only property 'lastIndex' of object '[object RegExp]'

TypeError: Cannot assign to read only property 'lastIndex' of object '[object RegExp]'

at RegExp.exec (native)

at RegExp.test (native)

at /usr/lib/parsoid/src/lib/wt2html/HTML5TreeBuilder.js:128:45

at (native)

at TreeBuilder._att (/usr/lib/parsoid/src/lib/wt2html/HTML5TreeBuilder.js:123:22)

at TreeBuilder.processToken (/usr/lib/parsoid/src/lib/wt2html/HTML5TreeBuilder.js:212:66)

at TreeBuilder.resetState (/usr/lib/parsoid/src/lib/wt2html/HTML5TreeBuilder.js:101:7)

at new TreeBuilder (/usr/lib/parsoid/src/lib/wt2html/HTML5TreeBuilder.js:34:7)

at ParserPipelineFactory.makePipeline (/usr/lib/parsoid/src/lib/wt2html/parser.js:233:17)

at ParserPipelineFactory.makePipeline (/usr/lib/parsoid/src/lib/wt2html/parser.js:229:17)

Content of my persoid settings.js-File:

'use strict';

exports.setup = function(parsoidConfig) {

parsoidConfig.setMwApi({ uri: 'http://sub.domain.tld/api.php', domain: 'sub.domain.tld' });

parsoidConfig.debug = true;

parsoidConfig.useSelser = true;


Content of my LocalSettings.php:

$wgVirtualRestConfig['modules']['parsoid'] = array(

'url' => 'http://sub.domain.tld:8142',

'domain' => 'sub.domain.tld'


By the way: sub = my Subdomain (help), domain = my Domainname, tld = de

Bozomal (talkcontribs)

I don't know if you still have this problem, but I was having the same problem (13 july  2017) and manage to solve it by installing php5-curl (or "php7.0-curl" if you have newer versions of ubuntu)

I don't know if I missed a step through the installation guide or got an error that I dind`t notice or maybe It's missing on the mediwiki article.

anyway, when I installed the php5-curl the Visual Editor started working, the http 500 error was gone

Extension:VisualEditor#Troubleshooting (talkcontribs)

Thank you Bozomal! Installing php7.0-curl fixed the 500 error for me too. (talkcontribs)

hey bro, it fixed my trouble too with curl install (talkcontribs)


I installed VisualEditor 1.30 and Mediawiki 1.30 on Virtual machine Debian 9.It returns me 500 error when trying to edit pages.

Here are my configuration files.

- LocalSettings :

wfLoadExtension( 'VisualEditor' );

// Enable by default for everybody

$wgDefaultUserOptions['visualeditor-enable'] = 1;

// Optional: Set VisualEditor as the default for anonymous users

// otherwise they will have to switch to VE

// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";

// Don't allow users to disable it

$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVirtualRestConfig['modules']['parsoid'] = array(

   // URL to the Parsoid instance

   // Use port 8142 if you use the Debian package

   'url' => 'http://swebprod688.local:8000',

   // Parsoid "domain", see below (optional)

   'domain' => 'swebprod688.local',

   // Parsoid "prefix", see below (optional)

   'prefix' => 'localhost'


- Config.yaml

uri: 'http://swebprod688.local/mediawiki/api.php'

         # The "domain" is used for communication with Visual Editor

         # and RESTBase.  It defaults to the hostname portion of

         # the `uri` property above, but you can manually set it

         # to an arbitrary string. It must match the "domain" set

         # in $wgVirtualRestConfig.

         domain: 'swebprod688.local'  # optional

Please, help. Thanks.

2003:C6:4F25:E6E0:285D:1D34:EF27:E455 (talkcontribs)


are you using the heroku app?

1) Make sure that no htpasswd is set up in your /w folder. I realized that the heroku app is not working with a password protected ftp folder.

2) Be careful where you set your root directory in your website hosting app

Hollosch (talkcontribs)

Hi, same problem with heroku app.

I've no htpasswd on my /w folder.

I changed nothing - and it's not working now...

Reply to "500 error on VisualEditor"