Jump to: navigation, search

About this board

Edit description

Previous discussion was archived at Talk:VisualEditor/Archive 1 on 2015-09-01.

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

Display name function does not show any effect

Lanthanis (talkcontribs)

MW 1.27

VE 0.1.0

Hi @Whatamidoing (WMF)

if I want to set a display name for an article or a category it does not show any effect. Furthermore I didn't find any references of this function in the manual.

I think the function should display "VisualEditor" instead of the standard "Category:VisualEditor" for example, right ?

Whatamidoing (WMF) (talkcontribs)

Are you talking about {{DISPLAYTITLE}}? It's used to change the formatting of page titles, such as adding italics to the title of the book at

Lanthanis (talkcontribs)

I'm talking about this function "Anzeigetitel"

Whatamidoing (WMF) (talkcontribs)

The current version is 1.30.0-wmf.10 (cf8ce2d) for MediaWiki and 0.1.0 (c2dab36) for VisualEditor. It looks like you're running an older version. I believe that this problem will be solved if you upgrade to any newer version (anything in the last six months).

Reply to "Display name function does not show any effect" (talkcontribs)

Hi all,

When I open Media settings (Insert -> Media) and type in "L" it says nothing found. If I type in "L3" it shows the correct PDF file. Is there a way to convince the wiki to list all the media starting with letter [a-z] or show all the available media? Because not every user knows exactly what he has to search for.

If I test with other Picture Database ($wgUseInstantCommons = true;) it works with only typing in one letter.

MediaWiki Version: 1.28.0

Whatamidoing (WMF) (talkcontribs)

Well, that works on this wiki (after a delay). What happens in the regular Special:Search box, if you type in File:L? Does it list the files that you expect?

Lanthanis (talkcontribs)

If you are not using CirrusSearch or another fulltext search engine, you have to use search parameter like "L3" or ~L

Reply to "Media settings search is incomplete" (talkcontribs)

Hi, we have one very huge Page in one of our customers mediawiki. Editing this page will cause an alert windows after about 30 seconds witch says: "http". Not more. The Parsoid log says: ...started parsing... and then ...completed parsing in 37661 ms... so im guessing on a timeout problem. All other Pages load fast and fine. Is there a way to increase timeout? Thank you for every help and hint :-)

Reply to "Timeout in VisualEditor"

Parsoid crashes when processing articles with codeblocks

Summary by SSastry (WMF)
Satttarov (talkcontribs)

Hello, folks! When I create an article in our private wiki with more then four codeblocks, save it and try to edit later, those codeblocks aren't appear in editor. And when I close the editor, page freezes for about a minute then pass. But if I try to launch editor on this page again it crashes with error "HTTP 0" on parsoid logs I see this:

[warning][testwiki/Тестовая_страница] non-200 response: 504 <html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
[error][testwiki/Тестовая_страница] Batch request failure for "f1c423e85011b3500256b9b5e736d7a0": 504
Error: Batch request failure for "f1c423e85011b3500256b9b5e736d7a0": 504
at BatchRequest.ApiRequest._requestCB (/usr/lib/parsoid/src/lib/mw/ApiRequest.js:421:11)
at Request.self.callback (/usr/lib/parsoid/node_modules/request/request.js:198:22)
at Request.emit (events.js:98:17)
at Request.<anonymous> (/usr/lib/parsoid/node_modules/request/request.js:1063:14)
at Request.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/usr/lib/parsoid/node_modules/request/request.js:1009:12)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:929:16
at process._tickCallback (node.js:419:13)
[warning][testwiki/Тестовая_страница] non-200 response: 504 <html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>

Somebody encountered the same problem? Please help, this error completely defeats the purpose of our wiki.

Whatamidoing (WMF) (talkcontribs)

@SSastry (WMF), have you seen anything like this before?

SSastry (WMF) (talkcontribs)

I haven't seen this before ... but, can you paste the contents of that page for us to inspect? Looks like mediawiki is not able to provide information back to Parsoid ... either it is taking too long and timing out, or there is some other error that is causing this on the mediawiki end.

Satttarov (talkcontribs)

For the sake of testing I'm using these blocks. It doesn't matter what those blocks contain, if there is more than four blocks, Parsoid hangs as I described before.

<syntaxhighlight lang="bash">



Thanks in advance.

Arlolra (talkcontribs)

At first glance, that looks like a deadlock.

Do things get worse when you remove batching?

parsoidConfig.useBatchAPI = false;

Is this specific to the syntaxhighlight extension? What if you tried with <source>?

Arlolra (talkcontribs)

Sorry, <source> wasn't a good test case. I wanted an extension tag not provided by the same extension. Try <gallery>.

Arlolra (talkcontribs)

This is being fixed in

Jeblad (talkcontribs)

There should be a VisualEditor/Recipes where some common problems and solutions are described step by step. The page as it is now is just an example, with a single entry. Feel free to move the page if it is better suited on other locations.

Some additional background on Import of preformatted templates into an article.

Reply to "Receipes"

Images (edit-mode) not shown with https-wiki

Summary by Waanders
Waanders (talkcontribs)

Hi all,

We've a problem when using the Visual Editor with a https-protected wiki (MW version 1.27.1): images in a wikipage aren't displayed when editing a page where this does happen in Read mode.

View source of the page contains:

<a href="/wiki/index.php/File:MyImage.jpg" class="image"><img alt="MyImage.jpg" src="/images/5/5a/MyImage.jpg" width="208" height="199" />

Console of the browser gives this error message: "GET https://localhost/images/5/5a/MyImage.jpg net::ERR_CONNECTION_REFUSED".

How can I fix this problem?

Regards, Jethro

VE is garbling wikilinks as an drive-by-accident

Sänger (talkcontribs)

In this change it seems, the VE has changed some correct wikilinks to something not readable in normal edit mode. The IP probably only wanted to update the table (and messed it up, despite VE is supposed to be better in working with tables), it would never have made those other changes intentionally. As I can't start a phab, I report it here.

The paragraph on deWP where this popped up was this one.

Grüße vom Sänger ♫(Reden) 16:39, 9 January 2017 (UTC)

Sänger (talkcontribs)

Another Post in deWP where it popped up. Is there already a phab for this? Grüße vom Sänger ♫(Reden) 09:34, 26 March 2017 (UTC)

Reply to "VE is garbling wikilinks as an drive-by-accident"
Blazyb (talkcontribs)

I have a page on 9738 words and 73074 characters.

VE loads to 100% (pretty quickly) and stops there and nothing happens.

When I trimmed it down to around 50k characters it worked.

Sounds like there is a limitation somewhere that restricts this?

Any ideas?

Blazyb (talkcontribs)

Problem identified: It was a thumbnail that VisualEditor cannot parse. Why is that?

Blazyb (talkcontribs)

Error msg:

Whatamidoing (WMF) (talkcontribs)

Hi @Blazyb. Is this on a private wiki? Is the image present on the local wiki, or pulled from somewhere else?

Blazyb (talkcontribs)

Yes, this is a private wiki. The image is present on the local wiki yes, it is uploaded through the "Upload file" page. And checking the images folder I can see the files there. (talkcontribs)

Hey Blazyb did you found a solution?

My VE is loading as well but stops at 100%.. But only in Pages with Images

Maalab (talkcontribs)

I got the same error. Anyone have a solution?


Maalab (talkcontribs)

I have discovered something. Our Wiki is in french. If i put this in my LocalSettings.php, it work : $wgLanguageCode = "en";

I have not find a solution to use it in french.

Whatamidoing (WMF) (talkcontribs)

Maalab, can you please tell me more about your config? Also, what version are you using for VisualEditor, Parsoid, and MediaWiki?

I've named you in the bug report at Phab:T155447. You can provide more information on this page or directly in the Phabricator task.

Maalab (talkcontribs)

Thanks Whatamidoing for your reply. I will reply to both place so people can follow this case.

Our wiki is run on Ubuntu 14.04.5 LTS server. Parsoid version is 0.6.1, Mediawiki version is 1.27.1 LTS and VisualEditor version is 0.1.0.

This is a private Wiki, but i have change it to a public Wiki and the problem is still there.

We have some extensions, but i will not list them (except if you need it), because when i disable them all, this does not solve the problem.

I don't think the problem is related to parsoid, because, when i troubleshoot parsoid and show the page in problem (http://servername:8142/localhost/v3/page/html/Test/), everithing seems to work fine and there is no error un parsoid log.

The only way i get VisualEditor to work with a page that have an image aligment, is when i put the Wiki in english. Our Wiki is in french.

When i inspect the code with Chrome Debugger, i get this error : Uncaught TypeError: Cannot read property 'constructor' of null at Object.oo.cloneObject.

I have also report this bug at

Let me know if i can test something to help troubleshoot.

TitusiMW (talkcontribs)

@Maalab: how do you change public wiki to private wiki? I can only think of two ways --- going through installation process all over again or changing tons of permission variables one-by-one? Even there, I did not find any complete/exhaustive lists of permission variables that need to be set to flip a private wiki to public wiki and vice-versa.

Maalab (talkcontribs)

Maybe i am wrong about what is a private wiki, but for me, a private wiki is a wiki that require authentication to see pages. What we do to make a private wiki is remove permission to read ans edit page to all user and give those permission to know user :

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['read']          = false;

$wgGroupPermissions['*']['edit']          = false;

$wgGroupPermissions['*']['createpage']    = false;

$wgGroupPermissions['*']['createtalk']    = false;

$wgGroupPermissions['*']['writeapi']      = false;

$wgGroupPermissions['user']['edit'] = true;

$wgGroupPermissions['user']['createpage'] = true;

$wgGroupPermissions['user']['createtalk'] = true;

If i remove those line in my LocalSettings file, it is a public wiki and anyone can read or edit pages.

But like i said, maybe i am wrong about what is a private wiki.

Maalab (talkcontribs)

My problem have been solved. See

Reply to "VE not loading big pages"
Noé (talkcontribs)


Sorry if it is not the right place for this suggestion. During Wikimania 2016 we discussed about links between Wiktionary and Wikisource, and we reach a solution to tide them up. Well, in VisualEditor it is already possible to include media from Commons. So, may it be possible to include similarly Sentences from Wikiquote or Wikisource? I mean: you click on Insert citations put a word and tick languages and it request x project to give sentences that include the requested word.

It may be of some use for Wikipedia, but very useful for Wiktionary as definition came with attestation. If this tool can also format the references, it may permit to insert a sentence that contain a specific word in less than a second! Such an improvement!

I have no idea on how difficult it can be to develop that, but there is a need for it, and we can organize a vote to prove that if needed. I'll be happy to explain more precisely if my English is too cryptic, so feel free to react in any way.

Whatamidoing (WMF) (talkcontribs)

Noé, thanks for this note. I think I understand your goal. There may be more than one way to get example sentences.

I'm going to pass this idea along to User:Trizek (WMF). He knows more about Wiktionary than I do. I think he will also be interested in your idea. So, please feel free to post in French.

Trizek (WMF) (talkcontribs)

I know about Wiktionary thanks to Noé. :)

Insert Images is easy: you have one image and identified meta-data attached to (good job, dear Commonists).

If you want to pick a precise citation, that's not the case for Wiktionary or Wikisource. I think it will be much more complicated.

This said, please post your idea in details in French. Automated translation is pretty accurate.

Noé (talkcontribs)

L'idée en français alors. Actuellement, en cliquant sur "Insérer" dans l’Éditeur Visuel, il apparaît une liste d'options dont "Média" qui va rechercher sur Commons. La façon dont je vois les choses serait d'ajouter une option "Citations" qui ouvre une fenêtre de requête permettant d'interroger Wikisource et Wikinews, dans les versions linguistiques choisies. La requête sortirait des phrases contenant le mot cible, délimitées par des points (détectés automatiquement), et mettant en gras le mot clé. Il suffirait ensuite de cocher les citations adéquates puis de valider pour qu'elles s'insèrent avec la source bien formatée (modèle source sur le Wiktionnaire francophone). De cette manière, il serait plus simple de citer des projets libres que d'aller piocher sur Google Books...ce qui est la pratique actuelle. Je ne sais pas comment des développeurs pourraient faire ça, mais ça serait génial :)

Elitre (WMF) (talkcontribs)

Wow, I never thought about this, and yet it makes so much sense. I put it at, which can be improved if I misunderstood something. I think we should also ask the Search guys. Looks like a clever idea though.

Trizek (WMF) (talkcontribs)

Comme je disais en anglais, cela est facile à faire pour les images, car celles-ci sont uniques : une page = une image. Les méta-données qui y sont attachées sont facilement trouvables.

Pour des contenus textuels, c'est bien moins évident : ce sont des blocs de texte, dans lesquels il faut trouver telle ou telle phrase en fonction d'un contexte ou d'un auteur... C'est très difficile à mettre en place.

Je vais faire remonter l'idée. Aurais-tu quelques exemples concrets ?

Noé (talkcontribs)

Je réalise bien la différence, et entends que ça puisse être très difficile, mais parfois, il suffit de bien exprimer les problèmes les plus complexes pour que des solutions émergent. Et puis, il se trouvera peut-être quelqu'un qui piochera ce sujet lors d'un prochain hackathon, ça n'a pas forcément vocation a être développé par des employés de la Fondation. Il y a une fonction un peu comme ça dans Linguee, un outil en ligne que j'aime bien. Ça marche plus ou moins bien, mais ça fait le taf en général. Par exemple :

Sorry to write in French. Trizek wrote he considers this operation very complex and I assure I got it. I imagine describing properly a problem may help to solve it at some point. And maybe there will be someone that may like this challenge at the next Hackathon. As an example of this kind of feature, I can mention Linguee:

Whatamidoing (WMF) (talkcontribs)

You do not need to apologize for writing in French here. is not an English-only project. You are welcome to post in French.

Trizek (WMF) (talkcontribs)

(Mes collègues ont accès aux outils de traduction automatique qui transcrivent très bien le français :))

Linguee est un sacré projet, que j'utilise tous les jours (je l'avoue). J'ai du mal à voir le lien entre Linguee et l'idée proposée : Linguee cherche des relations entre phrases ayant le même sens. Tu souhaites avoir un outil de citations qui va chercher des éléments suivant un conteste général. Or, il y a une différence entre chercher la traduction de « Napoléon est mort à Sainte-Hélène » et chercher les citations qui se rapportent à son décès.

Peux-tu préciser ton exemple ?

Elitre (WMF) (talkcontribs)

I think he's just trying to show how he imagines the feature to be like, a search bar + snippets of results that you can choose from. I believe this is eventually about interwiki search, which is directly related to Goal 2, Objective 2 for Discovery this year: .

Noé (talkcontribs)

En fait, ce qui intéresse le Wiktionnaire, c'est d'avoir des attestations avec une orthographe identique. Chaque variation orthographique a droit à son entrée, et la requête serait donc uniquement sur une chaîne de caractère, sans prise en compte de la sémantique. C'est à dire que l'on ne recherche pas la définition de "pomme" mais seulement des phrases dans lesquelles il y aurait le mot "pomme" (et nous n'aurions pas "pommier" car nous n'en voulons pas). Est-ce que tu voyais autre chose ?

Trizek (WMF) (talkcontribs)

Je ne voyais pas grand chose :)

Elitre has raised an interesting possibility to work on that, with the Discovery team. @CKoerner (WMF) may be interested by that idea of having a way to quote citations from somewhere (search occurencies of "apple" to illustrate the Wiktionary with examples of sentences where "apple" is used).

VIGNERON (talkcontribs)


Intéressé et concerné, je me permet de laisser un message.

Du point de vue technique, il me semble que cela se découpe ainsi :

  • recherche du mot dans Wikisource
  • découpage de la phrase (ou la partie de la phrase)
  • insertion dans le Wiktionnaire
  • insertion des données bibliographiques

Le premier point me semble trivial.

Le second est déjà un peu plus compliqué (comment savoir où couper ? quelle section de la phrase est pertinente et fait sens ?) mais cela ne me semble pas insurmontable (Linguee le fait bien : pas de problèmes pour les phrases courtes qui sont les plus courantes).

Le troisième point dépend de ce que l'on attend ; une solution simple serait de faire un copier-coller, non ? Une véritable transclusion serait bien trop compliqué (nécessiterait de faire comme des Labeled Section Transclusion) et ne correspond pas au besoin.

J'avoue mon ignorance sur la complexité technique précise du quatrième point ; lesdites informations bibliographiques sont en cours de migration vers Wikidata mais un chantier délicat et un peu complexe (difficile à complètement automatiser, on a passé 2 jours à réfléchir à la question pendant Wikimania ; en gros, on a conclu qu'il valait mieux le faire doucement mais surement).

Noé (talkcontribs)


Merci Vigneron, et d'accord avec toi dans l'ensemble. Copier-coller une phrase est suffisant, pas besoin de transclusion. Idéalement, le Wiktionnaire francophone met en italique toute la phrase et en gras le mot vedette, mais chaque langue a un choix de mise en forme différent et il faudrait envisager des aménagements locaux. Pour les sources, l'ordre est éventuellement différent selon les langues, et ce ne sera peut-être pas si trivial. Dans fr.wikt nous les mettons dans un modèle source.

Trizek (WMF) (talkcontribs)

Donc avoir un moyen de mettre en avant le mot (surbrillance) dans un ensemble de phrases serait l'idée ?

Noé (talkcontribs)

Oui. Je n'avais pas vu la question avant, désolé. En réfléchissant à cette idée à nouveau, j'ai réalisé qu'il s'agissait simplement d'interroger une base textuelle de la même manière qu'avec le moteur de recherche standard, avec les différences pointées par Vigneron. Je mentionnais Linguee pour l'aspect visuel, la mise en avant de ce que l'on recherche. Pour les sources, j'imagine que ça ne sera pas forcément évident de récupérer le numéro de page.

Andrew Sheedy (talkcontribs)

Ce que l'on voudrait, c'est de pouvoir chercher dans Wikidata et Wikisource les occurrences des mots qu'on veut trouver, et puis de selectionner les phrases pertinentes (qui contiennent le mot cible) pour les incorporer dans l'entrée sur Wiktionnaire/Wiktionary. Dans l'entrée, on aimerait que le mot vedette soit en gras et que les données bibliographiques soient incluses dans la bonne ordre. Si c'est possible, il serait encore mieux d'insérer toutes ces données ainsi que le texte exemplaire dans une modèle, mais il suffirait peut-être de les copier-coller à peu près comme l'exemple suivant :

date de publication=date

auteur=nom de famille, prénom


lien vers la source=lien

ISBN=ISBN (s'il y en a un)

(d'autres renseignements pertinents)

texte=texte avec le mot vedette en gras

Désolé d'avoir écrit en français même si ma langue maternelle est l'anglais, mais je n'ai que rarement l'opportunité de l'écrire et j'aime pratiquer quand je peux. :) J'espère que tout est compréhensible. Sinon, je peux m'expliquer en anglais....

Et Noé, c'est une idée fantastique, en passant. :)

Elitre (WMF) (talkcontribs)

m:User:CKoerner (WMF)/Interwiki Searches is relevant IMHO.

Billinghurst (talkcontribs)

To follow on from @ VIGNERON

The Wikisources currently utilise Extension:Labeled Section Transclusion to mark a printed page into sections, which then enables the sections to be transcluded internally within our wikis. I could see that the ability to mark a section of text is of interest to a wiktionary, and may have some conceptual interest for citations. Consider if we had the ability to easily markup text with a section, and apply a distinctive label that identifies that it is a citation, the word, the language, then probably to the wikidata equivalent or hardlink to the wiki/word

Then whether the section component could be either transcluded or bot-generated extraction. It is at least in a state to be useful.


  • the ability to xwiki transclude has been long mentioned (there may be ye olde phabricator tickets), and never gained priority, so I see that the proof of concept can be of importance and useful, if that is the avenue that may be worth exploring
  • adding multiple sections to Wikisource works would not be problematic as long as we design a schema for unique or non-clashing nomenclature
  • one advantage of our section markup is that it also allows for overlapping sections (uniquely label both start and end tags)
  • transcluded pages in the Wikisources have page numbering as anchors, and that with these works being (well getting there) in Wikidata, that there is good scope for good citation, with that improving over time as edition data improves.
  • I know that I have found numbers of words in our older texts that have not been within the English Wiktionary, and have added them, though often without citation as the learning curve is steep for an occasional user, so any tool that could make that easier would definitely be beneficial
  • there would be hundreds or thousands of existing uses of the wikt: interwiki within works that could be queried
Reply to "Insert citations"

VE can't load with http 500 error in Browser

1 (talkcontribs)

mediawiki version: 1.28.0

nodejs version : v0.10.25

parsoid version i don't know, i have install it with Parsoid/Setup help. and it's work. I can access the http://myhost:8142 and get the right page in Browser.

The question is when i add "wfLoadExtension( 'VisualEditor' );" in LocalSettings.php, i will receive the http 500 error when i access my wiki in browser. when i comment "wfLoadExtension( 'VisualEditor' );" in LocalSettings.php, i can access my wiki normally.

I don't know where configuration is wrong, i'm following the step with Extension:VisualEditor.

I'm sure i have input "git submodule update --init" after clone VE.

Below is LocalSettings.php additional configuration:

# End of automatically generated settings.

# Add more configuration options below.

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';

// OPTIONAL: Enable VisualEditor's experimental code features

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

$wgVisualEditorAvailableNamespaces = [

"0" => true,

"2" => true,

"102" => true,

"_merge_strategy" => "array_plus"


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

// URL to the Parsoid instance

// Use port 8142 if you use the Debian package

'url' => 'http://localhost:8142',

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

'domain' => 'localhost'

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

#'prefix' => 'localhost'


Below is parsoid partial configuration:(i'm using config.yaml as configuration file)


- module: ../src/lib/index.js

entrypoint: apiServiceWorker


# For backwards compatibility, and to continue to support non-static

# configs for the time being, optionally provide a path to a

# localsettings.js file.  See localsettings.example.js

#localsettings: ./localsettings.js

# Set your own user-agent string

# Otherwise, defaults to:

#   'Parsoid/<current-version-defined-in-package.json>'

#userAgent: 'My-User-Agent-String'

# Configure Parsoid to point to your MediaWiki instances.


- # This is the only required parameter,

# the URL of you MediaWiki API endpoint.

uri: 'http://localhost/wiki/api.php'

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

# and RESTBase.  It defaults to the hostname portion of

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

# to an arbitrary string.

domain: 'localhost'  # optional

# To specify a proxy (or proxy headers) specific to this prefix

# (which overrides defaultAPIProxyURI). Alternatively, set `proxy`

# to `null` to override and force no proxying when a default proxy

# has been set.


#    uri: 'http://my.proxy:1234/'

#    headers:  # optional


Reply to "VE can't load with http 500 error in Browser"