Extension talk:VisualEditor/2022
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
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.
Question about syntax customisation
[edit]I would like to replace some of the more idiosyncratic wiki syntax with syntax that is closer to HTML practices, especially <i></i> and <strong></strong>, which is perfectly valid in a wiki. How can I make sure that the editor menu and shortcuts (e.g. ctrl+i) use the markup I need? Cavila 11:51, 1 January 2022 (UTC)
how to insert namespace as link
[edit]how is possible to insert current namespace when inserting a link?
let's say i'm in my sutom namespace called "Developers", when using visual editor (simplified view) and adding a link i'd like to get in the label near the magnifier my custom namespace already written; any way to do that ?
or is there any extension that could handle that?
thanks 93.57.21.199 (talk) 17:21, 4 January 2022 (UTC)
integration w/
[edit]Hi all,
There're 3 sites in our organization, each serve 1 languages: en, vi, zh, to encourage participation, particular editors to contribute contents, we're looking for UX improvement areas, as many of the knowledge with organization are composed with zh, everytime users have to re-create another page with different contents.
Is it possible to add a button used to linked knowledge on the other sites, e.g 'bitconin' in en site, if we know 'bitcoin=ćŻçšĺ¸' then editors can simply copy from the en:bitcoin article & copy it into zh version & start edit/translate. Lamjon (talk) 02:08, 11 January 2022 (UTC)
Php 8.1 : Problem with parsoid
[edit]- Hello,
- We are currently using mediawiki 1.38wmf16, everything was working correctly when we upgraded to php 8, after a test to switch to php 8.1 we get the following error only when previewing in edit mode (the visual editor is working correctly):
- Error contacting the Parsoid/RESTBase server (HTTP 500)
- However, this error does not prevent the validation of the changes.
- Sincerely,
- Kims 176.134.95.169 (talk) 13:49, 13 January 2022 (UTC)
- Installing parsoid Sokote zaman (talk) 08:29, 23 March 2022 (UTC)
- I wrote too fast, the visual editor is also impacted by this error 500 in php 8.1. 176.134.95.169 (talk) 14:01, 13 January 2022 (UTC)
VisualEditor rolling back back-to-back edits
[edit]- I've been having an issue where VisualEditor loads fine and works perfectly on a page which I haven't edited in a while. However, if I, after immediately saving it, try to edit it again, the VisualEditor does not load the new version of the page, instead, rolling back to the original version of the page. Even after refreshing, the editor still uses the original version, and it becomes very difficult to edit a single page multiple times.
- I tried updating MediaWiki from 1.34 to 1.37 (since I heard Parsoid becomes bundled) and saw no difference. 100.14.209.124 (talk) 03:33, 30 January 2022 (UTC)
- Installing parsoid Sokote zaman (talk) 08:29, 23 March 2022 (UTC)
- Turns out to be a problem on Firefox? Tested on Chromium and VE works as intended with back-to-back edits. 100.14.209.124 (talk) 03:55, 30 January 2022 (UTC)
Add VisualEditor to some Special pages and Templates?
[edit]I have a very basic template called "Player Character" and an input box for people to create new Player Character pages:
<inputbox>
type=create
break=no
preload=Template:Player Character
buttonlabel=Create new article
default=(Character Name)
</inputbox>
Enter a name and create the page, it takes me to the standard editor. If I save the page, I'm presented with the Visual Editor as an option. Is there a way to make it so the input box starts the new page with the visual editor to begin with?
I'm also using the SimpleBlogPage extension for player journals, but I can't seem to figure out how to enable the visual editor at all on these. I've tried adding the namespace to the config like this:
$wgVisualEditorAvailableNamespaces = [
'User_blog' => true,
'File' => false,
];
But the Special:CreateBlogPost|Create Post page only uses the standard editor and even viewing the blog post doesn't present the visual editor as an option. 63.155.84.83 (talk) 17:53, 12 February 2022 (UTC)
- Oh! The SimpleBlogPost page does show the VisualEditor option, but I get a 404 error if I try to use it. 63.155.84.83 (talk) 17:58, 12 February 2022 (UTC)
Pasting multiple table rows
[edit]Pasting multiple table rows affects how page breaks are interpreted. For example, let's take the following two table cells:
| Line1
Line2 |
| Line3
Line4 |
If I paste just one at a time, the result will be:
| Line1
Line2 |
However, if I paste both at the same time, an extra line is added:
| Line1
|
| Line3
|
This might seem like a minor issue, but I work with very long tables on my wiki, and copy/pasting from Google Sheets is a must. It is also not just an aesthetic problem for me, it breaks certain functions that I set up in the wiki.
I would really appreciate some help, either a fix or a workaround. Makertrainer (talk) 19:15, 19 February 2022 (UTC)
Uncaught TypeError: Cannot read properties of null (reading 'toText')
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When attempting to edit a page, the progress bar gets stuck at 100% and this gets outputted to the browser console.
Uncaught TypeError: Cannot read properties of null (reading 'toText') at Object.ve.dm.MWInternalLinkAnnotation.static.dataElementFromTitle (<anonymous>:534:984) at Object.ve.dm.MWInternalLinkAnnotation.static.newFromTitle (<anonymous>:535:512) at Object.ve.ui.MWLinkAction.static.getLinkAnnotation (<anonymous>:914:848) at Object.ve.dm.MWExternalLinkAnnotation.static.toDataElement (<anonymous>:532:544) at VeDmConverter.ve.dm.Converter.createDataElements (load.php?lang=en&modules=ext.visualEditor.core&skin=monobook&version=amixk:247:262) at VeDmConverter.ve.dm.Converter.getDataFromDomSubtree (load.php?lang=en&modules=ext.visualEditor.core&skin=monobook&version=amixk:253:810) at VeDmConverter.ve.dm.Converter.getDataFromDomSubtree (load.php?lang=en&modules=ext.visualEditor.core&skin=monobook&version=amixk:257:58) at VeDmConverter.ve.dm.Converter.getDataFromDomSubtree (load.php?lang=en&modules=ext.visualEditor.core&skin=monobook&version=amixk:257:58) at VeDmConverter.ve.dm.Converter.getDataFromDomSubtree (load.php?lang=en&modules=ext.visualEditor.core&skin=monobook&version=amixk:257:58) at VeDmConverter.ve.dm.Converter.getDataFromDomSubtree (load.php?lang=en&modules=ext.visualEditor.core&skin=monobook&version=amixk:257:58)
Here's the versions I'm using if it helps.
| Product | Version |
|---|---|
| MediaWiki | 1.35.4 (4a3d6a6)
11:51, 30 September 2021 |
| PHP | 7.4.3 (fpm-fcgi) |
| MariaDB | 10.3.32-MariaDB-0ubuntu0.20.04.1 |
| Elasticsearch | 6.7.2 |
| Lua | 5.1.5 |
| VisualEditor | 0.1.2 (cd6568c) 06:11, 4 September 2021 |
Error contacting the Parsoid/RESTBase server: (curl error: no status set)
[edit]Hi,
I have fresh installation of MediaWiki 1.37. When trying to use VisualEditor error comes:
Error contacting the Parsoid/RESTBase server: (curl error: no status set)
It's seems to be specific error as no status is set for curl error.
Any hints? 195.74.51.67 (talk) 20:48, 21 February 2022 (UTC)
- Installing parsoid Sokote zaman (talk) 08:28, 23 March 2022 (UTC)
- Isn't Parsoid bundled by default in MediaWiki 1.35+? 195.74.51.67 (talk) 17:45, 2 April 2022 (UTC)
- It is installed by default, but: Many problems are solved by installing and configuring Parsroid and a visual editor. Sokote zaman (talk) 13:54, 3 April 2022 (UTC)
- OK, so how to reinstall or reconfigure it? 195.74.51.67 (talk) 20:02, 7 April 2022 (UTC)
- I worked very hard on this and spent a lot of time. If you wish, I can share my knowledge with you for a normal fee Sokote zaman (talk) 10:42, 8 April 2022 (UTC)
- So what is the fee? 195.74.51.67 (talk) 18:11, 24 April 2022 (UTC)
- Should a program that is free and open source be installed and configured free by others? Sokote zaman (talk) 15:11, 25 April 2022 (UTC)
- I asked about price, not philosophical arguments... 195.74.51.67 (talk) 04:56, 29 April 2022 (UTC)
- Give as much as you'd like.
- Email me every problem I have to fix for you. Sokote zaman (talk) 06:46, 29 April 2022 (UTC)
- I've stumbled on this thread as I'm faced with the same problem with no solution. I find Sokote zaman's response above totally bizarre, as participation on an open forum about open source projects is entirely voluntary, and the existence of Stack Exchange is proof that people are willing to provide their solutions to others for free, and for those that aren't, it simply isn't acceptable to post passive aggressive rhetorical questions just to waste people's time. Yinweichen (talk) 01:29, 3 January 2023 (UTC)
- The information in stack overflow should be helpful in case anyone finds this in the future. The wiki page for visualeditor has a lot of outdated and confusing information and probably could be made much more concise.
- Search on stackoverflow for "Error contacting the Parsoid/RESTBase server: http-bad-status on Fresh Mediawiki 1.35.0 LTS" 217.180.219.227 (talk) 01:08, 6 January 2023 (UTC)
- For me, the problem simply disappeared after an upgrade from 1.38 to 1.39 including all extensions. Yinweichen (talk) 03:38, 6 January 2023 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OK
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
| MediaWiki | 1.37.1 |
| PHP | 7.4.28 (cgi-fcgi) |
| SQLite | 3.37.2 |
| ICU | 70.1 |
When using MediaWikis VisualEditor, I get this error:
Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OK
When setting up lighttpd to use https I did the following:
- created a private key and a private CA certificate, so my private server can sign certificates (ca.key, ca.pem)
- created a key and a certificate signing request for lighttpd and signed it with my CA certificate (key.pem, server.pem)
- added my own CA certificate to trusted certificates (trust anchor --store=/.../ca.pem)
When I now run
openssl verifiy /.../ca.pem
I get OK as answer - this makes sense, because I added the CA certificate.
When I run
openssl verifiy /.../server.pem
I also get OK, because the request was signed with the CA certificate.
But I don't understand, why now curl print this error?
Shouldn't also curl trust my both certificates as openssl shows? Mrpaul1234 (talk) 09:03, 22 February 2022 (UTC)
- openssl validates the certificate is valid as per expiration dates and signature, but it doesn't validate it's trusted.
- curl validates against the list of trusted CA, and your CA is not trusted according to curl, probably because you're using a self-signed certificate or signed by a CA you created.
- You'll have to add that CA to the trusted CA store of the server. Ciencia Al Poder (talk) 11:14, 22 February 2022 (UTC)
- I think, I've done exactly this by executing
trust anchor --store=/.../ca.pem- So my self-signed CA certificate should belong to the trusted CA store, or doesn't it?
- I was checking this in the following way:
- - created ca.pem (CA certificate) and server.pem (certificate for lighttpd)
- - verified ca.pem with
openssl verifiy /.../ca.pem-> Result: verification failed - - verified server.pem with
openssl verifiy /.../server.pem-> Result: verification failed - - executed
trust anchor --store=/.../ca.pem - - verified ca.pem with
openssl verifiy /.../ca.pem-> Result: OK - - verified server.pem with
openssl verifiy /.../server.pem-> Result: OK - So everything behaved as expected: the verification of my self-signed CA certificate and my CA-signed server certificate failed until I added the CA certificate to the trusted certificates of the server Mrpaul1234 (talk) 13:04, 22 February 2022 (UTC)
- I guess php-curl uses a different ca trust store than the curl binary
- https://stackoverflow.com/questions/41772340/how-do-i-add-a-certificate-authority-to-php-so-the-file-function-trusts-certif
- Another solution would be an option to ignore cert errors, but this doesn't seem to be supported right now. Another question would be why would you use https in the first place? One of the suggested solutions is to allow unencrypted connections between MediaWiki and parsoid (which is MediaWiki itself), although it may have other complications as well... Ciencia Al Poder (talk) 14:11, 22 February 2022 (UTC)
- I've found the reason:
- There have been two problems:
- 1: The certificate-file required for using https under lighttpd (
ssl.pemfileinlighttpd.conf) did only contain the server certificate but not the whole bundle. So I only needed to put the server and the CA certificate into one file and use this cat /.../server.pem /.../ca.pem > /.../lighttpd/certs/bundle.pemin /.../lighttpd.conf...ssl.pemfile = /.../lighttpd/certs/bundle.pem...- 2: The encrpytion I used for my CA certificate was not TLS v1.3 compatible. After creating all keys and certificates again, signing the server certificate request with the CA certificate and adding the CA certificate to the trusted on my server everything went well. Mrpaul1234 (talk) 18:35, 22 February 2022 (UTC)
VE most often does not display last version
[edit]I have a mediawiki instance behind a httpd reverse proxy.
VE is installed and configured for 1.35. The instance is using MEMCACHED as Cache Type.
Communication between the mediawiki httpd and the reverse proxy is without ssl (http), and the proxy does the encryption to https before delivering to client.
I am able to edit pages, it works great apart 2 issue:
1 Major Issue is that most of the time if you do two edits in a row, on the second edit it will display to edit the previous version of the page leaving you to erase your previous edit. Is there a configuration to avoid this ?
2 smaller issue links to pictures in the page are rendered as http, so browsers will not display them as the final communication is https . Is there a way to force parsoid to use https inside the code even if the mediawiki is configured as simple http behind a https proxy? Jppialasse (talk) 04:11, 24 February 2022 (UTC)
- answering to myself in case someone has same issue, this was caused by using mod_expires. If you do so take care to define an entry for json, to avoid browser caching the result:
- ExpiresDefault "access plus 1 days"
- ExpiresByType application/json "access" Jppialasse (talk) 17:20, 18 November 2022 (UTC)
- Thanks for posting this, I kept getting blank or outdated pages in visualeditor and search results were yielding nothing but dead ends.
- I became convinced it was some local browser setting for a while before finding this post. Adding the json line to my apache mod_expires config resolved the issue. :) ProbablyDrew (talk) 06:42, 10 March 2023 (UTC)
Split documentation by version?
[edit]I'm finding it difficult to follow the correct instructions and configuration for the current code, because of the major differences between versions. Perhaps we can split up the documentation for clarity? Adamw (talk) 11:42, 28 February 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 400)
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
My mediawiki version is 1.37.1. PHP 7.43. and I'm install the VE.
When you press the edit button, an error called 'Error contacting the Parsoid/RESTBase server (HTTP 400)' occurs.
What can I do? Gaon12 (talk) 09:43, 2 March 2022 (UTC)
- Install parsoid Sokote zaman (talk) 10:08, 3 March 2022 (UTC)
- I set it up as below.
wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );- Then another error code appeared.
Error contacting the Parsoid/RESTBase server (HTTP 404)- What can I do? Gaon12 (talk) 08:29, 4 March 2022 (UTC)
- Please send me an email to send you the instructions for installing and config
- https://www.mediawiki.org/wiki/Special:EmailUser/Sokote_zaman Sokote zaman (talk) 09:35, 4 March 2022 (UTC)
- I sent you an email. Please check. Gaon12 (talk) 10:04, 4 March 2022 (UTC)
- Sent to you
- There was a question to ask.
- Clear the rest of the settings you sent me Sokote zaman (talk) 10:18, 4 March 2022 (UTC)
- Hi, I'm facing the same issue and have already spent days on debugging without a solution. Setup: MediaWiki 1.37.1, VE, both running in official docker container with apache2, PHP 7.4.28 behind nginx reverse proxy.
- Is there some solution to share? Imtotallylost (talk) 20:55, 8 March 2022 (UTC)
- If you'd like to email me to talk about the problem
- EmailUser: Sokote zaman Sokote zaman (talk) 08:26, 11 March 2022 (UTC)
Again "HTTP 500"
[edit]Hi,
I'm sorry to bother you again with "HTTP 500", but I've spent already days in debugging and reading this and other forums with no success.
My final plan ist to install a private wiki (MediaWiki + VisualEditor) for a school. But to narrow down the problem I've created a "clean setup" again with as public wiki for the time being. My setup now:
- MediaWiki 1.37.1 running behind a nginx reverse proxy (http forwarded to https, certificate handling done by reverse proxy, forwarding to mediawiki on http).
- MediaWiki running together with MariaDB in docker containers (docker-compose)
- MediaWiki running on apache2, php 7.4.28
- VisualEditor included in LocalSettings.php just with "wfLoadExtension( 'VisualEditor' );" (wanted to use the internal parsoid).
As mentioned I already spent days in debugging and reading. My current conclusion after haveing a look at the communication with tcpdump:
- The api.php call is done with http instead of https
[Full request URI: http:<mydomain>/api.php?action=visualeditor&format=json&paction=parse&page=Hauptseite&uselang=de&formatversion=2
- even though the $wgServer is set correctly:
$wgServer = "https:<mydomain>";
- result is a
MediaWiki-API-Error: apierror-visualeditor-docserver-http-error
Any suggestions highly welcome ... Herbbob (talk) 07:41, 11 March 2022 (UTC)
- I have experience implementing and implementing several private wikis.
- If you wish, I can solve your problem for a fee and even do it in a complete specialized configuration for the whole wiki. Sokote zaman (talk) 08:18, 11 March 2022 (UTC)
- Here is my version. I am using docker image + nginx as the reverse proxy. private wiki.
- I got error when I try to edit docuemt using visual editor
- Error contacting the Parsoid/RESTBase server: (curl error: 6) Couldn't resolve host name
- Please help what I can do for this issue. Jefffuca (talk) 05:25, 22 March 2022 (UTC)
- Jefffuca (talk) 05:28, 22 March 2022 (UTC)
MediaWiki 1.37.1 PHP 7.4.28 (apache2handler) MariaDB 10.7.3-MariaDB-1:10.7.3+maria~focal ICU 67.1 Lua 5.1.5 Pygments 2.10.0
- Installing parsoid Sokote zaman (talk) 08:27, 23 March 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 412)
[edit]Hi,
while I was submiting the changes on VisualEditor, it shows the following Error Message:
Error contacting the Parsoid/RESTBase server (HTTP 412)
These are my server info:
| MediaWiki | 1.37.1 |
| PHP | 7.4.28 (fpm-fcgi) |
| MySQL | 5.7.29-log |
| ICU | 50.2 |
| Lua | 5.1.5 |
| Pygments | 2.10.0 |
Apache 2.4
PHP 7.4
Tkx for helping!!! WrOffi (talk) 07:38, 23 March 2022 (UTC)
- Installing parsoid Sokote zaman (talk) 08:27, 23 March 2022 (UTC)
- It had Parsoid installed on MediaWiki 1.37.1, I still don't know how to figure out this problem... WrOffi (talk) 04:48, 24 March 2022 (UTC)
- If you also use flow, you also need parsoid. Customize Parsoid installation to resolve the problem. I've been using visualeditor for years and on versions 1. 35, 1.37, 1.38, I tested and it worked well Sokote zaman (talk) 05:42, 24 March 2022 (UTC)
- Thanks~ I solved this problem by move my wiki to another server... I think there were ports conflict WrOffi (talk) 06:42, 24 March 2022 (UTC)
- Because of wiki's complexity, I recommend always using one with a separate server Sokote zaman (talk) 06:48, 24 March 2022 (UTC)
technical use requirements
[edit]I organize wiki events. Sometimes people tell me that they cannot get VisualEditor to work.
In looking at their situations, sometimes they are on a very old laptop, sometimes they are on a tablet, sometimes they have lots of blocking software on their devices, and sometimes they have a new computer and I cannot even guess what the problem could be.
What are the technical use requirements for using VisualEditor? If someone says that VisualEditor is not working on their device, what questions should I ask to determine if there is something they can do to make it work? Blue Rasberry (talk) 18:49, 26 March 2022 (UTC)
Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server
[edit]FYI
Having trouble enabling VisualEditor, I suddenly realized SELinux might be the cause. So I ran
# setenforce 0
which did the trick. Digging further,
# setsebool httpd_can_network_connect 1
and enabling selinux again, was enough to use VisualEditor Arent (talk) 13:16, 28 March 2022 (UTC)
The server did not respond within the expected time.
[edit]The server did not respond within the expected time.
mediawiki 1.35 error after installing Math and visual editor extension. anyone know the problem? Aessaputra (talk) 10:24, 29 March 2022 (UTC)
Search uploaded files not working
[edit]Hi,
I have the latest version of MediaWiki. When trying to search for media by name, it doesn't show any results. I'm sure that the files that I'm searching for have been successfully uploaded as I can search and find them perfectly fine in the File list special page.
Any ideas or anything are very welcomed. MedEncore (talk) 06:21, 5 April 2022 (UTC)
Uploaded graphics including 'index.php?title=' code
[edit]I have been looking high and low for some instruction on how to remove this code that is getting added into the wikitext code.
This is what my wikitext looks like when I upload a graphic using visualeditor:
[[index.php?title=Media:nameoffile.xlsx|Budget Impact Model]] Issiegainsley (talk) 17:55, 15 April 2022 (UTC)
- I wrote a re-write rule to shorten the URL and now the index.php?title= is not added. Issiegainsley (talk) 23:16, 16 April 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 500) while editing large table
[edit]I assume the size of the table (10 columns, 6728 rows, page has 896.183 Bytes) is the reason for the error. Does anyone know a rule of thumb for the maximum size of tables? ThT (talk) 08:53, 6 May 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 403)
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I just finished setting up a fresh wiki with the following configuration:
Mediawiki 1.35.6
PHP 7.4.3 (apache2handler)
MySQL 8.0.29-0ubuntu0.20.04.3
ICU 66.1
Lua 5.1.5
VisualEditor 0.1.2
wikimedia/parsoid 0.12.2
Parsoid and Visual Editor were installed through the Mediawiki bundling. I have a wiki with a similar configuration the only difference is Mediawiki 1.35.3, which works perfectly fine. On the wiki with Mediawiki 1.35.6 VisualEditor returns the following error:
Error contacting the Parsoid/RESTBase server (HTTP 403)
Any idea on how I can fix this without updating Mediawiki from 1.35 and downgrading it to 1.35.3? I need to stay on the legacy version of Mediawiki. AID-PMBD (talk) 07:00, 17 May 2022 (UTC)
- As additional information, I have given all users that are supposed to be able to edit the following permission:
- $wgGroupPermissions['Edit']['writeapi'] = true; AID-PMBD (talk) 12:28, 17 May 2022 (UTC)
- Another additional piece of information:
- I am running the wiki as a vhost with apache2. My .config file in etc/apache2/sites-available looks like this:
<VirtualHost *:80>ServerAdmin admin@email.comServerName wiki.name.domain.comServerAlias www.wiki.name.domain.comDocumentRoot /var/www/htmlErrorLog ${APACHE_LOG_DIR}/error.logCustomLog ${APACHE_LOG_DIR}/access.log combinedRewriteEngine onRewriteCond %{SERVER_NAME} =wiki.name.domain.com [OR]RewriteCond %{SERVER_NAME} =www.wiki.name.domain.comRewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]</VirtualHost><Directory /var/www/html>AllowOverride All</Directory>AID-PMBD (talk) 12:43, 17 May 2022 (UTC)- Setting from
$wgServer = "http://wiki.name.domain.com";to$wgServer = "https://wiki.name.domain.com";solved the issue for me. - I strongly recommend to add this to the documentation since I had to find it on a thread on stackoverflow (https://stackoverflow.com/questions/64106004/error-contacting-the-parsoid-restbase-server-http-bad-status-on-fresh-mediawiki). AID-PMBD (talk) 07:07, 19 May 2022 (UTC)
VE does not work with any template
[edit]I have my VE cleanly installed and running fine until we started using templates. Any article with template, once saved, cannot be edited again with VE, and yields Error contacting the Parsoid/RESTBase server (HTTP 500) instead. But once the template tags are removed in the source code, the article become editable in VE again. Tekthyrios (talk) 06:32, 25 May 2022 (UTC)
- Hello, you should provide some information about the MediaWiki version and the environment - the PHP version, OS, so on. Spas.Z.Spasov (talk) 09:27, 25 May 2022 (UTC)
VisualEditor 503 Service Unavailable Error
[edit]When I click edit with VE in existing pages, the editor pops up a Window and shows me "Server returns error: 503". I'm not sure what happens.
On the PHP side, it says
[client 61.151.164.63:20061] AH01067: Failed to read FastCGI header, referer: https://sonicpedia.org.cn/wiki/%E9%A6%96%E9%A1%B5?action=edit&veswitched=1
[proxy_fcgi:error] [pid 1366536:tid 139996849719040] (104)Connection reset by peer: [client 61.151.164.63:20061] AH01075: Error dispatching request to : , referer: https://sonicpedia.org.cn/wiki/%E9%A6%96%E9%A1%B5?action=edit&veswitched=1"
Everything is normal when I create new pages with VE.
| MediaWiki | 1.37.2 |
| PHP | 7.4.28 (fpm-fcgi) |
| MySQL | 5.7.37-log |
| ICU | 66.1 |
| Elasticsearch | 6.8.23 |
| Lua | 5.1.5 |
| Pygments | 2.10.0 |
WrOffi (talk) 11:34, 5 June 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 404)
[edit]Hello everyone
I've been trying to configure VisualEditor on a private wiki in local (for testing), but I always have an "Error contacting the Parsoid/RESTBase server (HTTP 404)" when I try to open the editor. I've been looking for a solution all day but can't find anything that work
I'm on MediaWiki 1.38.2 and using the version of VisualEditor that come with it.
Here's the content of the LocalSettings.php file that I added:
wfLoadExtension( 'VisualEditor' );
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;
I use PHP 8.0 if it can help.
Thanks in advance ! LoikFR (talk) 14:33, 6 July 2022 (UTC)
- The same for me, just an easy installation in Fedora, gives me always Error contacting the Parsoid/RESTBase server (HTTP 404) and nobody knows how to fix it.
- This is a serious bug, because Visual Editor is a must this days. 185.107.107.2 (talk) 09:45, 7 July 2022 (UTC)
- Probably the PHP version is the troublemaker see: Compatibility#PHP. If you are using PHP-FPM it is pretty easy to install php7.4-fpm along with php8.0-fpm and set the MediaWiki instance to use it. Spas.Z.Spasov (talk) 12:22, 11 July 2022 (UTC)
- Hi @Spas.Z.Spasov
- i am using php7-4.fpm alongside php8.1-fpm and php8.0-fpm.
- There is no difference at all in each of this versions, i still get the mentioned error.
- kind regards 79.253.44.73 (talk) 16:11, 3 August 2022 (UTC)
- Yes, I can confirm it is not PHP version issue. Weeks ago, I've switched to PHP 8.1 and everything works correct on my MW instance. Spas.Z.Spasov (talk) 06:02, 15 August 2022 (UTC)
Configuration of VE
[edit]Hello,
When the user writes some wiki code VE and parsoid disable it (with <nowiki> and other techniques) but I don't went this function how I can do it ?
because I don't see a configuration who do it in MediaWiki-Docker/Extension/VisualEditor - MediaWiki and in the configuration of the parotid, maybe I miss it ?
thank you. Nicolas senechal (talk) 10:35, 7 July 2022 (UTC)
Table editing "yo-yo" bug
[edit]MediaWiki version: 1.38.1
VisualEditor: 0.1.2
(no external servers, just MediaWiki install plus VE plugin)
I am running into a bug with VisualEditor where if you scroll and the table tools overlay is out of view and you click another cell in the table, it zips you all the way down to the bottom of the page and then back up (sometimes to the table, sometimes not).
Video of issue: https://www.youtube.com/watch?v=YU9zipXXVKw
Normally, this wouldn't really be a noticeable issue, but giant pages with lots of tables are difficult to work with when you are being flung all around the page, and it breaks highlighting multiple cells.
Example page: https://consolemods.org/wiki/AV:RetroTINK-5X_Pro Derf Jagged (talk) 02:54, 24 September 2022 (UTC)
- Edit: If I just straight up delete the HTML element that contains the table tools, it works properly, but I'd like to keep the table tools as they are useful. Derf Jagged (talk) 03:59, 24 September 2022 (UTC)
How to specify which page of a pdf or other file you want to display on an article through Visual Editor
[edit]Hello, I'm trying to test out imputting pdfs and other multi-page files in the articles of my wiki through VisualEditor, and as I discovered, while clicking on the option to import a file, even though the pdf clearly has multiple pages, nowhere in the options to modify the appearance, etc does it allow you to choose which page you want to display. I found out on the PDFHandler extension page, that you have to manually go onto the source to insert the line |page=#| where the name of the file is, in order to get the specific page that you want. I tried seeing if there was the same problem on Wikipedia itself, and so I went to try it in my sandbox, and there was the same problem, that there was no option to choose what page you were displaying. Is there a way around this, where I can make it so that an option while inserting a file in the article pops up for you to choose which page to insert? Thanks Guillaume Taillefer (talk) 22:17, 5 October 2022 (UTC)
Can I use Self-signed Client SSL certificate
[edit]Hi, I am trying to use Client Certificate signed by my self-signed intermediate CA as protection for parts of my domain on public internet and one of them is Wiki.
I configured apache2 to require client certificates and all works fine till the moment I try to save my edit on page.
I reverted apache2 requirement for client certificates and all worked fine so based on Error at the end of this post I guess there is problem with curl and API that cannot take certificate from browser because curl is called server side not by client.
So my question is what should I configure on server or how can I solve this problem to use client certificates.
My guess is that I should give curl somehow list of certificates allowed for connection but do not know how.
The error given by dialog
Error loading data from server:
Error contacting the Parsoid/RESTBase server: (curl error: 56) Failure when receiving data from the peer NemecDev (talk) 11:51, 11 October 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 404) in IIS
[edit]I'm having the same error reported so many times before, "Error contacting the Parsoid/RESTBase server (HTTP 404)". It's only occurring on pages with slashes in the titles. However, the difference here is that I'm using IIS, not Apache. I've looked through the past topics here and I've searched online for the IIS equivalent of
AllowEncodedSlashes NoDecode
without any success. Anyone have an idea what that may be, or what else I could try?
Another issue I'm having that may be related is that on some pages with special characters like Ď, using VE will either return the same error or will load a different page for editing, one that begins with the same title but cuts off the title starting at the symbol. KeybladeSpyMaster (talk) 12:59, 26 October 2022 (UTC)
Adding a "Cite" button
[edit]The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I would like to add a "Cite" button to a wiki's VisualEditor installation, like the one found in Wikipedia - including all the same "Cite web", "Cite news" etc. templates. Is there any documentation for how to do this? Does it require a lot of custom code? Yaron Koren (talk) 01:42, 4 November 2022 (UTC)
- Never mind - it happens automatically; there was just something wrong with my setup. Yaron Koren (talk) 17:53, 7 November 2022 (UTC)