Topic on Project:Support desk

VisualEditor not enabled 1.35.1

10
RookieBeard (talkcontribs)

Dear Support,

I am new to this, but installed MediaWiki hosted via Siteground.

The version is 1.35.1.

As far as I know, with this version the VisualEditor is enabled and installed by default.

When I go to my website to edit, VisualEditing is not available. There is also no Edit Source button available, meaning edit source is the only option. Nowhere in the settings can I enable this.

In my filemanager, I do see VisualEditor.

Do I still need to do something before the VisualEditor is enabled?

Bawolff (talkcontribs)

Is it listed as enabled on the page Special:Version on your wiki?

Whether or not it is enabled by default depends on what options you selected in the installer. If its not enabled, you typically have to add a wfLoadExtension line to LocalSettings.php. See also Extension:VisualEditor.

RookieBeard (talkcontribs)

In my page special, I see the following:

Installed extensions:

Extension Version License

VisualEditor 0.1.2 MIT


I have tried to add the following line to localsettings.php

wfLoadExtension( 'VisualEditor' );

After that, I get the error when I try to edit in my website:

"Error contacting the Parsoid/RESTBase server (HTTP 500)"

Am I missing something?


Update edit:

I have now changed the extension.json document from false to true and the popup seems gone, but still not working as intended, the changes below:


       "VisualEditorRestbaseURL": {

           "value": true

       },

  "VisualEditorFullRestbaseURL": {

           "value": true

       },

       "VisualEditorEnableWikitext": {

           "value": true

       },

       "VisualEditorEnableWikitextBetaFeature": {

           "value": true

       },

       "VisualEditorEnableDiffPage": {

           "value": true

       },

       "VisualEditorEnableDiffPageBetaFeature": {

           "value": true

       },

       "VisualEditorUseSingleEditTab": {

           "value": true

       },


Currently, when I try to edit, the visual editor now is usable.

However, when I edit, the previous texts are not showing up. So everytime I edit, there are no previous texts.

Furthermore, the Parsoid/RESTBase server (HTTP 500) error pops up when I use the edit on a heading.

How do I fix this?

Bawolff (talkcontribs)

You should not change anything in extension.json. extension.json provides the defaults. If you want to override the defaults you put something like $wgSETTINGNAMEHERE = true; in LocalSettings.php. You probably also don't want to be changing some of those from the default (I have no idea what changing VisualEditorRestbaseURL from false to true will do, but its probably not something you want).

Are you sure you have the right version of Visual Editor for your version of MediaWiki (e.g. its the version that was included with the tarball). I believe in 1.35 VisualEditor no longer requires separate restbase/[js]parsoid

RookieBeard (talkcontribs)

I have this version of visualeditor:

{

   "name": "VisualEditor",

   "version": "0.1.2",


The version of MediaWiki is

<?php

# This file was automatically generated by the MediaWiki 1.35.1


I also thought 1.35 did not require seperate parsoid, somehow I keep receiving this error by default.

How can I prevent this error from happening (after enabling the the VirtualEditor by using this wfLoadExtension( 'VisualEditor' )

"Error contacting the Parsoid/RESTBase server (HTTP 500)"

RookieBeard (talkcontribs)

Dear Support,

I am still trying out everything, still without luck.

Do you happen to know to solution to this issue, using the VisualEditor?

"Error contacting the Parsoid/RESTBase server (HTTP 500)" ?

Thanks in advance.

SalSocks (talkcontribs)

I am also having this exact same issue using Siteground. Were you ever able to solve it? Thanks.

2804:14C:6591:4A16:418:802F:C173:CF6 (talkcontribs)

I was with a similar problem (with Mediawiki v 1.35.1 and VE). I've tried the following config and now Visual Editor is working (I added commented lines of the original source):

(source: docs.bitnami.com/ installer/ apps/ mediawiki/ configuration/install-visualeditor/)



wfLoadExtension( 'VisualEditor' );

// OPTIONAL: Enable VisualEditor in other namespaces

// By default, VE is only enabled in NS_MAIN

//$wgVisualEditorNamespaces[] = NS_PROJECT;

// Enable by default for everybody

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

// Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable';

// OPTIONAL: Enable VisualEditor's experimental code features

//$wgVisualEditorEnableExperimentalCode = true;

2603:7000:A700:515E:25A1:35C5:3998:2475 (talkcontribs)

I am having the same error with a site installed via cPanel.

Wpinfold (talkcontribs)

I am running a Semantic Mediawiki based on 1.35.3 (and 10.6.4-MariaDB) in a docker container and have not been able to make the Visual Editor work. I get the same error described above "Error contacting the Parsoid/RESTBase server (HTTP 500)". I have been working through the suggestions above and several others on the web. I have read the install instructions multiple times. Any new ideas since the last comment?

Reply to "VisualEditor not enabled 1.35.1"