Open main menu

Extension talk:VisualEditor

About this board

Please note that the Wikimedia Foundation does not provide support for installing VisualEditor on third-party wikis. However, if you have a question we may try to help.

MW: 1.28.2. VisualEditor+Parsoid, "Unknown Error" when trying to save page through VisualEditor

3
Pankaj9350 (talkcontribs)

I have installed MW:1.28.2 and its compatible VE and Parsoid on my private Wiki. When i am trying to save page with Infobox template , it gives me "Something went wrong" - "Unknown Error". Without Infobox template, this is working fine. There is the only problem article with the Infobox template. Following is the Infobox template which i have pasted in article. Also, I have imported all the related Infobox modules in my private wiki but it does not work properly. I have tried everything to resolve this issue but i still get this error.

Template:Infobox Project

Has anyone resolved this before, and any idea on how I can troubleshoot it? Please help.

2001:4641:F835:0:B81E:B622:637F:EA7D (talkcontribs)

Has nobody found a way to solve this? I found posts 4 years old with the same problem.

Oleolsenkjhølkølk (talkcontribs)

Oh my Goodness, got the exact same problem. Hasn't anyone figured out a way to fix this? Feels like i have tried everything now.

Reply to "MW: 1.28.2. VisualEditor+Parsoid, "Unknown Error" when trying to save page through VisualEditor"

Visual Editor successfully saves changes but says "Unknown error"?

14
Coolak (talkcontribs)

I have VE in my wiki project linked with Parsoid on Heroku. The data parses successfully according to the logs, and the changes apply successfully after using Visual Editor, which means that it's configured correctly, but each time I press "Save page", VE gives me "Unknown error" and doesn't display the results automatically. However, if I reload the page manually, I see that the changes have applied.

I've been searching Google for people with the similar issue but it seems that I'm the only one. I'm using MediaWiki 1.23.3 and the stable VE release for the 1.23 version + Parsoid extension for 1.23 as adviced. What do you think the problem might be? Thank you in advance for any help.

194.95.59.150 (talkcontribs)

Experiencing the same problem. Is there any solution? Thanks!

206.51.148.2 (talkcontribs)

Any fix anybody?

Fidicterms (talkcontribs)

Same Problem. I have my own VPS server and installed VisualEditor by following the guides on MediaWiki website. the same thing happens for me too. it gives me "Something went wrong" - "Unknown Error" . but I can see that it's saved when I manually refresh the page.

were you able to find a solution for this problem ?

77.59.199.130 (talkcontribs)

I changed back to the normal Cache and not the one you would activate when doing the Parsoid Cookieforward.

That fixed it

80.81.19.205 (talkcontribs)

i dont get it, what do i have to do?

Rdelloro (talkcontribs)

Hi every one,

I get the same issue in visual editor but i think that the cause is different. In detail if i save a page with an external link i get the error message "Something went wrong" - "Unknown Error" . If I remove the external link I can save without problem.

Planetenxin (talkcontribs)

Check, if zlib is installed on your server.

Vidarsk (talkcontribs)

I just had this problem. There were no parsoid errors, but the apache error log said:

[Tue Sep 06 09:01:45.466130 2016] [:error] [pid 19247] [client x.x.x.x:41696] PHP Notice: Undefined index: ts_log_id in /www/var/data/wiki/20160905-093050/mediawiki/includes/db/Database.php on line 2743, referer: https://wiki-test.domain.com/wiki/index.php/Test?veaction=edit

I turned off PHP notifications and that fixed it.

81.23.161.100 (talkcontribs)

Thanks a lot for help, Vidarsk! That really fixed it.

208.72.125.2 (talkcontribs)

What exactly are PHP notifications?

75.148.127.181 (talkcontribs)

I have the same issue with Visual Editor, but only when I enable a plugin called "SlackNotifications". It looks like the JSON being returned has the letters "ok" appended to the properly formatted JSON string.

116.68.120.139 (talkcontribs)

This must be the issue with ReCaptchaNoCaptcha. ConfirmEdit and Visual editor along with ReCaptchaNoCaptcha = Big PROBLEM

2001:4641:F835:0:B81E:B622:637F:EA7D (talkcontribs)

4 years, did anyone find a sollution to this? Got the same problem.

Reply to "Visual Editor successfully saves changes but says "Unknown error"?"

Exclude /doc from template name search

2
Summary by Tinss

Fix will be available in an upcoming version of the VisualEditor.

Tinss (talkcontribs)

Hello!

I'd like to exclude /doc, /Documentation results from search results in the template tool. Template data is defined in those subpages and then transcluded and they should not show up in the result set.

Thanks!

Jdforrester (WMF) (talkcontribs)

Hey there, you're right that this is an irritation, and has been for a while – it was first reported way back in 2013. Looking at your request it struck me that we now have a way to do this, so it should be fixed very soon.

Problem with FlaggedRevs with MW 1.31

1
64.251.40.244 (talkcontribs)

We have recently upgraded the MW v1.29 to v.31 with both FlaggedRevs and VisualEditor extension updated.

The problem I have is with Visual Editor "Edit" button now directs you to the stable (approved) page, instead of showing the latest edit.


This was not an issue in v1.29 but it looks like EDIT button now carries the "OLID" parameter that is causing the issue (see the link example below)

MYSITE/mediawiki/index.php?title=PAGENAME&stable=1&veaction=edit&oldid=48401


Is there a way to remove the OLDID paramater so it directs you to the latest revision to edit, review, and approve the page?

Reply to "Problem with FlaggedRevs with MW 1.31"

error loading data from server: apierror-visualeditor-docserver-http: http 401

1
67.183.134.86 (talkcontribs)

Hello gurus,

I have the following enviornment:

OS (Linux vm-intwiki 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux)

MediaWiki 1.33.0-alpha (84460b0)
VisualEditor 0.1.1 (9cd26f5) 00:52, 27 December 2018
LDAP Authentication Plugin 2.1.0 (662eaaf) 19:37, 15 November 2018

So I installed parsoid, temporary turned off my LDAP and created a user for parsoid for

NetworkAuth 2.1.2 (58ddb5e) 12:12, 9 March 2018


However, I still have the following error

error loading data from server: apierror-visualeditor-docserver-http: http 401

Any ideas how can I fix it?


Regards,

Serge

Reply to "error loading data from server: apierror-visualeditor-docserver-http: http 401"

The VirtualRESTService for the document server is not defined

1
机智的小鱼君 (talkcontribs)

When I installed this extension then click the edit button,it just pop up a window said “no_vrs: The VirtualRESTService for the document server is not defined;”

What’s that mean?screenshot

Reply to "The VirtualRESTService for the document server is not defined"

Error when editing a page: Error loading data from server: HTTP 0. Would you like to retry?

1
Ti infotrad (talkcontribs)

System information:

OS: Windows Server 2008

Mediawiki: 1.27.3

PHP: 5.6.30

MySQL: 5.7.18

VisualEditor: 0.1.0

nodejs: v8.9.1

Parsoid: 0.8.0

Symptoms:

  • Editing a page with VisualEditor, received the following error:
Error loading data from server: HTTP 0. Would you like to retry?

The page itself is not very large (14 KB in wikicode). Using direct corresponding api call in the browser bar (http://xxx/api.php?action=visualeditor&format=json&paction=parse&page=...) returns a result after almost one minute;

  • Issue with 30 s ajax timeout in \mediawiki-1.27.3\resources\src\mediawiki\api.js . Changing the timeout to one minutes fixed the issue

Questions:

  • There are 200 media links in the test page. Is the parsoid response time I am experiencing (~ 60 seconds) what one would expect?
  • Any way of making it faster (e.g., setting ParsoidConfig.prototype.fetchImageInfo to false)?
  • Any way to provide better information as to what is happening to the user?

Thanks in advance for any answers.

Reply to "Error when editing a page: Error loading data from server: HTTP 0. Would you like to retry?"

parsoid upgrade from 9 to 10broke ve on debian stretch

1
RobFantini (talkcontribs)
Reply to "parsoid upgrade from 9 to 10broke ve on debian stretch"

Line breaks are disappearing

26
Summary by Whatamidoing (WMF)
Lanthanis (talkcontribs)

MW 1.27

VE 0.1.0

Hi @Mattflaschen-WMF, @Whatamidoing (WMF)

I want to add new paragraphs and just add new lines as if I would use MS Word but after saving the "empty" lines and therefore the paragraph disappears. Seems that VE just deletes empty lines. I also noticed this behavior on this site, is there any possibility to keep these "empty" lines ?

Thanks in advance!

Lanthanis (talkcontribs)

Like this:

Some text

(empty line)

(empty line)

new text.

Whatamidoing (WMF) (talkcontribs)

VisualEditor's visual mode reduces multiple consecutive blank lines to a single blank line.

Why do you want two blank lines displayed between paragraphs?

Lanthanis (talkcontribs)

Just to mark off seperate sections.

Whatamidoing (WMF) (talkcontribs)
Konjurer (talkcontribs)

I think this is a big issue and a lot of my users complain about it. Not only does it remove blank lines it also removes any space after bullet point lists and numbered lists and it look really ugly.

Lanthanis (talkcontribs)

Indeed!

Whatamidoing (WMF) (talkcontribs)

@SSastry (WMF), is there any need for Parsoid to remove all of the blank lines after a list and before the next regular paragraph? It is a bit easier, when editing in wikitext mode, to have a (single) blank line before and after every list.

SSastry (WMF) (talkcontribs)

Parsoid doesn't remove newlines on its own. But, yes, we can update the defaults so that we add newlines before and after a list (this only applies to newly inserted and possibly edited lists).

SSastry (WMF) (talkcontribs)

@Whatamidoing (WMF)could you please file a phab task requesting this newline before/after a list? Thanks.

hatamidoing (WMF)W

Whatamidoing (WMF) (talkcontribs)
AdSvS (talkcontribs)

This is not a solution to the general issue. In wikitext you can add a new line (<br />) but in VE there is no such option, is there?

5.103.137.211 (talkcontribs)

Will it be possible in the future, to not have VE remove the blank lines ? Not just before/after a list but overall ?

Lanthanis (talkcontribs)

I would appreciate this too, @Whatamidoing (WMF) and @SSastry (WMF).

I would like to structure my articles the way I feel comfortable and not being forced to use your structure policy (don't take this personal). Or maybe some tag recognized by VE?

SSastry (WMF) (talkcontribs)

As I said earlier, Parsoid doesn't remove newlines on its own. If there is a bug related to how Parsoid is converting VE's HTML to wikitext, please file a bug with details. Thanks.

Lanthanis (talkcontribs)

@SSastry (WMF) So it is VE, not Parsoid, which deletes the lines ? I'll try to debug this and file a bug as soon as I find it out.

Whatamidoing (WMF) (talkcontribs)

I've filed it as phab:T184755. I don't know whether the team will implement it.

124.121.195.196 (talkcontribs)

I'd also love to see this resolved. Give us a tag or a keyword, something that lets us control our layout. But isn't VE supposed to be WYSIWYG?

Stefan

SSastry (WMF) (talkcontribs)

We'll investigate this on the Parsoid end soon.

Whatamidoing (WMF) (talkcontribs)

VisualEditor's visual mode is supposed to be rich-text, which is not quite the same thing as WYSIWYG.

Lanthanis (talkcontribs)
Konjurer (talkcontribs)

How is this task coming along SSastry? Although VE is brilliant, this is really an annoying behavior of the VE. As admin of my company's wiki, I field A LOT of questions about this behavior. Once the issue is resolved, how long does it take to make it into the VE extension for the general public?

Thanks for your hard work!

SSastry (WMF) (talkcontribs)

This is coming along -- I have a patch to fix a related issue in Parsoid before we can address this newline handling issue. Note that this is an entirely Parsoid only change. We release debian packages once in 6 months. So, the next release will be in October. So, if you want a version that fixes this problem once we have it in master, you will have to install the master version of Parsoid from the git repo. Anyway, let us wait till the fixes land.

Konjurer (talkcontribs)

@SSastry (WMF) How is this coming along? This is still the most complained about thing I receive. Can we expect a fix in October for the disappearing blank link issue? Thanks!

SSastry (WMF) (talkcontribs)
SSastry (WMF) (talkcontribs)

Sorry about the lack of updates but the dependency patches were merged and deployed. We'll try to get this in before the next release.

Reply to "Line breaks are disappearing"

Visual Editor "Embed Video" Button

2
2A00:23C0:B04:AC01:8CCF:77DA:31F8:7D53 (talkcontribs)
Jdforrester (WMF) (talkcontribs)

That would have to be something the EmbedVideo developers worked on. It should be pretty easy for them to do.

Reply to "Visual Editor "Embed Video" Button"
Return to "VisualEditor" page.