- 使用者代理: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
VisualEditor/Feedback
Upgraded a 1.39.4 to 1.40.0
When editing with the VisualEditor, category tags like [[Category:System]]
are converted and saved as [[index.php?title=Kategori:System]]
. This of course breaks the page categorising. It's possible to re-edit the page, re-categorise it and it works but it will break again on the next edit.
The WikiText editor does not exhibit this behaviour. It correctly handles the category tags.
Restored the 1.39.4 from backup and tried re-installing a few times, but the upgrade to 1.40.0 produces this unwanted behaviour all times.
Here's rest of the software versions.
Produkt | Version |
---|---|
MediaWiki | 1.39.4 |
PHP | 8.2.9 (cgi-fcgi) |
MariaDB | 10.10.2-MariaDB |
ICU | 71.1 |
Lua | 5.1.5 |
Pygments | 2.16.1 |
Browser used is Chrome Version 116.0.5845.110 (Officiell version) (arm64) on MacOS.
Since you are running your own wiki, you might ask at the Project:Support desk.
i got the same problem
Freshly installed yesterday and can confirm this very annoying behaviour
Experiencing the same issue. Any solution?
MediaWiki 1.40.1, VisualEditor 0.1.2, issue witnessed. We plan to update MW to latest soon to find out if that fixes it. I can't tell the VE version that appears in ME vs the VE version that is posted on these pages.
+1 on this issue. Very annoying.
Yup. can confirm and is very frustrating
Is the issue present in 1.41?
Yes, Issue still present in version 1.41.0. This is indeed very annoying.
MediaWiki 1.41.0, VisualEditor 0.1.2
Fresh installation, issue witnessed.
Try that workaround:
localsettings.php
$wgUsePathInfo= true;
I added a blockquote, and as a result it merged the paragraph right under the blockquote with a separate paragraph right under that paragraph, with both showing them as together in visual editor, but in the source editing, they were shown as separate. Fixed it, but was recommended by an editor at the help desk to report it.
URLs for the original help desk request and recommendation to report: https://en.m.wikipedia.org/w/index.php?diff=1260580208&oldid=1260578541&title=Wikipedia:Help_desk
https://en.m.wikipedia.org/w/index.php?title=Wikipedia:Help_desk&diff=prev&oldid=1260581424
Hi all, if you add an URL of the New Yoirk Times, Times of Israel or Washington Post, the Visual Editor does not upload any pparameter suc as title, date if publication, author, website or acccess-date.
Unfortunately paywalls are increasingly causing such problems. There is not much that can be done against this I’ve been told.
- Agent utilisateur : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
URL : https://fr.wikipedia.org/wiki/Droit_de_l%27avortement?veswitched=1&veaction=edit&oldid=186395372
Chaque fois que j'essaie de mettre des sources, rien ne se passe. Je voudrais savoir comment le régler. Dans les autres langues je n'ai pas ce problème.
I have a mediawiki in current version 1.42.3 and try to use VisualEditor.
Some pages work, but on the most of the pages the visual editor gives out an error message. All other Wiki Features works fine, i cannot find any other problem then the visual editor.
I get the following error in the Popup:
[0d4e083bdcb1c5b07630e264] Exception caught: DOMElement::setAttribute(): Argument #2 ($value) must be of type string, true given
If i check the full backtrace i are lost in the media-wiki sorce code space :-)
Do you have any hint for me how i can get the error?
TypeError at C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\PP\\Processors\\AddLinkAttributes.php(54) from C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\PP\\Processors\\AddLinkAttributes.php(54) #0 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\PP\\Processors\\AddLinkAttributes.php(54): DOMElement-\u003EsetAttribute() #1 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(139): Wikimedia\\Parsoid\\Wt2Html\\PP\\Processors\\AddLinkAttributes-\u003Erun() #2 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(908): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003EWikimedia\\Parsoid\\Wt2Html\\{closure}() #3 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(949): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003EdoPostProcess() #4 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\DOMPostProcessor.php(967): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003Eprocess() #5 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\ParserPipeline.php(170): Wikimedia\\Parsoid\\Wt2Html\\DOMPostProcessor-\u003EprocessChunkily() #6 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wt2Html\\ParserPipelineFactory.php(278): Wikimedia\\Parsoid\\Wt2Html\\ParserPipeline-\u003EparseChunkily() #7 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Wikitext\\ContentModelHandler.php(154): Wikimedia\\Parsoid\\Wt2Html\\ParserPipelineFactory-\u003Eparse() #8 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Parsoid.php(191): Wikimedia\\Parsoid\\Wikitext\\ContentModelHandler-\u003EtoDOM() #9 C:\\inetpub\\wwwroot\\wiki-2023\\vendor\\wikimedia\\parsoid\\src\\Parsoid.php(232): Wikimedia\\Parsoid\\Parsoid-\u003EparseWikitext() #10 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\parser\\Parsoid\\ParsoidParser.php(148): Wikimedia\\Parsoid\\Parsoid-\u003Ewikitext2html() #11 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\parser\\Parsoid\\ParsoidParser.php(253): MediaWiki\\Parser\\Parsoid\\ParsoidParser-\u003EgenParserOutput() #12 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\content\\WikitextContentHandler.php(376): MediaWiki\\Parser\\Parsoid\\ParsoidParser-\u003Eparse() #13 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\content\\ContentHandler.php(1663): WikitextContentHandler-\u003EfillParserOutput() #14 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\content\\Renderer\\ContentRenderer.php(67): ContentHandler-\u003EgetParserOutput() #15 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RenderedRevision.php(259): MediaWiki\\Content\\Renderer\\ContentRenderer-\u003EgetParserOutput() #16 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RenderedRevision.php(232): MediaWiki\\Revision\\RenderedRevision-\u003EgetSlotParserOutputUncached() #17 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RevisionRenderer.php(226): MediaWiki\\Revision\\RenderedRevision-\u003EgetSlotParserOutput() #18 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RevisionRenderer.php(164): MediaWiki\\Revision\\RevisionRenderer-\u003EcombineSlotOutput() #19 [internal function]: MediaWiki\\Revision\\RevisionRenderer-\u003EMediaWiki\\Revision\\{closure}() #20 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Revision\\RenderedRevision.php(199): call_user_func() #21 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\page\\ParserOutputAccess.php(379): MediaWiki\\Revision\\RenderedRevision-\u003EgetRevisionParserOutput() #22 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\page\\ParserOutputAccess.php(330): MediaWiki\\Page\\ParserOutputAccess-\u003ErenderRevision() #23 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\parser\\Parsoid\\ParsoidOutputAccess.php(134): MediaWiki\\Page\\ParserOutputAccess-\u003EgetParserOutput() #24 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper.php(774): MediaWiki\\Parser\\Parsoid\\ParsoidOutputAccess-\u003EgetParserOutput() #25 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper.php(587): MediaWiki\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper-\u003EgetParserOutputInternal() #26 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper.php(451): MediaWiki\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper-\u003EgetParserOutput() #27 C:\\inetpub\\wwwroot\\wiki-2023\\extensions\\VisualEditor\\includes\\DirectParsoidClient.php(155): MediaWiki\\Rest\\Handler\\Helper\\HtmlOutputRendererHelper-\u003EgetHtml() #28 C:\\inetpub\\wwwroot\\wiki-2023\\extensions\\VisualEditor\\includes\\ApiParsoidTrait.php(107): MediaWiki\\Extension\\VisualEditor\\DirectParsoidClient-\u003EgetPageHtml() #29 C:\\inetpub\\wwwroot\\wiki-2023\\extensions\\VisualEditor\\includes\\ApiVisualEditor.php(232): MediaWiki\\Extension\\VisualEditor\\ApiVisualEditor-\u003ErequestRestbasePageHtml() #30 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiMain.php(1946): MediaWiki\\Extension\\VisualEditor\\ApiVisualEditor-\u003Eexecute() #31 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiMain.php(922): ApiMain-\u003EexecuteAction() #32 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiMain.php(893): ApiMain-\u003EexecuteActionWithErrorHandling() #33 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\api\\ApiEntryPoint.php(158): ApiMain-\u003Eexecute() #34 C:\\inetpub\\wwwroot\\wiki-2023\\includes\\MediaWikiEntryPoint.php(199): MediaWiki\\Api\\ApiEntryPoint-\u003Eexecute() #35 C:\\inetpub\\wwwroot\\wiki-2023\\api.php(44): MediaWiki\\MediaWikiEntryPoint-\u003Erun() #36 {main}"
- Agent utilisateur : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0
URL : https://fr.wikipedia.org/w/index.php?title=Lee_E._McMahon&action=edit&redlink=1 This page when going on the wikipedia page of Sed UNIX is described as non-existing. This is not the case, as there is indeed a wikipedia page who's name is Lee E McMahon. I'm not used to wikipedia so I don't know how to change this
Any ideas why VisualEditor throws this exception to Chrome console with 1.33 and later when copy pasting image to editor,
Query.Deferred exception: files.map is not a function TypeError: files.map is not a function at OoUiSelectFileWidget.OO.ui.SelectFileWidget.setValue (https://wiki.local/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=09ovhn2:1048:538) at mw.ForeignStructuredUpload.BookletLayout.mw.Upload.BookletLayout.setFile (<anonymous>:1050:340) at Array.<anonymous> (<anonymous>:713:254) at mightThrow (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:48:916) at process (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:49:589) jQuery.Deferred exception: files.map is not a function TypeError: files.map is not a function at OoUiSelectFileWidget.OO.ui.SelectFileWidget.setValue (https://wiki.local/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=09ovhn2:1048:538) at mw.ForeignStructuredUpload.BookletLayout.mw.Upload.BookletLayout.setFile (<anonymous>:1050:340) at Array.<anonymous> (<anonymous>:713:254) at mightThrow (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:48:916) at process (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:49:589) jQuery.Deferred exception: files.map is not a function TypeError: files.map is not a function at OoUiSelectFileWidget.OO.ui.SelectFileWidget.setValue (https://wiki.local/load.php?debug=false&lang=en&modules=ext.visualEditor.core%7Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=09ovhn2:1048:538) at mw.ForeignStructuredUpload.BookletLayout.mw.Upload.BookletLayout.setFile (<anonymous>:1050:340) at Array.<anonymous> (<anonymous>:713:254) at mightThrow (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:48:916) at process (https://wiki.local/load.php?debug=false&lang=en&modules=jquery&skin=vector&version=0w5wrgy:49:589)
What image are you trying to paste? Are you pasting the code for an image that you copied from another wiki page, or an image from another website?
Same behaviour observed in Firefox 72.0.1, after trying to copy an image from a Word document
Same problem on Chrome 79.0.3945.117 (64 bit)
Same problem on version 1.34
Do you realize that you are supposed to use Special:Upload to put images on your wiki, and not just copy/paste?
What os your point? We can achieve the functionality but being less usable is preferred?
Some extensions like ClipUpload actually manages that, we are talking about just one step more, which was working and now does not.
If you are having trouble with Extension:ClipUpload, then you should contact the maintainers of that extension. Extension:VisualEditor has never supported uploading via copy/paste, and supporting copy/paste uploads from the web is actively unwanted by Wikimedia Commons and the Wikipedia communities.
Extension:VisualEditor has never supported uploading via copy/paste
The user guide disagrees with you:
You can upload images from a tab in the media dialog, or by dragging and dropping a file into the editor, or by pasting an image from your clipboard.
Yet here we are, still without a fix after several years.
Absolute pathetic that it's still not a built in feature. This is why mediawiki is being phased out for stuff like Confluence.
I completely not agree with you.
If something is unwanted, does no seems that it has to be removed from a system.
This feature was working before and now not. Allowing users to do it or to enable it should be a good point.
You say that it was never supported, but it was here and it was a great feature as lots of users like me use wikimedia to store there IT process and then use copy/paste of screenshot.
How could you explain that if it was not supported it was working before and now it throw an error ?
using 1.34 - on line 5803 in oojs-ui-widgets.js, in OO.ui.SelectFileWidget.prototype.setValue, i changed the line files = files.slice(0,1) to files = [files.slice(0,1)] and i'm getting the image upload popup (error was calling .map on a single object not an array). Doesn't quite fix the problem for me, but it's progress (no thumbnail on the upload popup and when i hit upload i get a filename error)
Hello,
I'm not sure if this message goes here, but I'm noticing that this edit: en:w:Special:Diff/1221607731. Comparing this edit visually is odd, because that is not what the editor added (see it in the Wikitext comparison). Why is this happening?
Strangely, pasting results in either nothing or U+2601 Cloud.
- Click "Computer code" in VE or reply tool
- Copy
Location: https://
- Paste into the browser URL bar (to remove formatting. Ctrl+Shift+V can skip steps 3-4)
- Cut
- Paste into the editor
It gives me the Unicode cloud symbol but I expected to see what I tried to paste.