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.
VisualEditor/Feedback
Appearance
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.
- Agent utilisateur : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
URL : https://fr.wikipedia.org/w/index.php?title=Championnat_europ%C3%A9en_f%C3%A9minin_de_go&veaction=edit Cette page wiki s'affichait comme étant vide. J'ai commencé à l'éditer puis impossible de l'enregistrer. Je pense avoir perdu tout ce que j'ai fait car la page a été supprimée! Si j'ai mal fait quelque chose, je ne sais pas encore quoi..... :(
Fausse alerte, apparemment mes modifs ont bien été prises en compte. Après être sorti du mode édition, il m'a été demandé si je voulais reprendre les modifs... :) J'ai donc dit oui. Désolé pour le spam.
Eh non, en fait j'ai bien un problème sans fin : je reviens sur la page en mode édition, puis je veux la publier, j'ajoute un commentaire, et je clique sur publier ou enregistrer et là j'ai un message d'erreur qui dit que la page est supprimée !!
Comme je ne sais pas de quelle erreur il s'agit je suis coincé....
One of the things that annoys me about VE is that you can't edit just a single section. Even if you click on the "edit" link next to an individual section heading, you still end up editing the entire page. I remember reading somewhere that due to the way VE parsed the page (or something like that), this was unavoidable.
But, I just noticed that on wikitech, it does work! Clicking the "edit" link next to a section head does indeed get you into VE looking at just that section. For example: https://wikitech.wikimedia.org/w/index.php?title=Help:Toolforge/My_first_Flask_OAuth_tool&veaction=edit§ion=1. Wonderful! So, how does this work? Is there some option I need to enable? Or is wikitech running a newer version of VE and I just have to wait for it to get rolled out to enwiki?
@RoySmith: That is an experimental feature that the Editing team rolled out to wikitech for testing. Not sure if they feel comfortable rolling it out to other wikis; it has some potential for confusion, and would likely need a lot of careful work before then, but I defer to them. :-)
When I copy a reference and paste it back in somewhere else, the reference list creates a new bullet list in the reference list, despite the reference already being there. This can quickly clutter the reference list, especially if placed more in the middle of an edited article.
You mean when you don't copy it from the existing document (in edit mode), but from read mode, or a different article, correct ?
What I mean is that if I copy a reference from another page and if I were to add it more then one time it creates two different references with the same content.
Here's a screenshot of how it looks. https://imgur.com/a/2BxuwXU