Jump to content

User:Jukeboksi/Log/2021: Difference between revisions

+ ==== Finally enabled VisualEditor successfully ==== + This is an matter of importance, because mobile users have been unable to edit any pages due to an issue with mw:Extension:ConfirmEdit and mw:Extension:MobileFrontend not quite playing catch with each other + It seems that the 404 errors with the REST-communication used by VisualEditor are due to old style of apache2 rewrite engine settings. + solution + thanks
mNo edit summary
(+ ==== Finally enabled VisualEditor successfully ==== + This is an matter of importance, because mobile users have been unable to edit any pages due to an issue with mw:Extension:ConfirmEdit and mw:Extension:MobileFrontend not quite playing catch with each other + It seems that the 404 errors with the REST-communication used by VisualEditor are due to old style of apache2 rewrite engine settings. + solution + thanks)
Line 2: Line 2:


== November ==
== November ==
=== Saturday 2021-11-27 ===
==== Finally enabled VisualEditor successfully ====
I finally enabled [[mw:VisualEditor]] on all wikis.
This is an matter of importance, because mobile users have been unable to edit any pages due to an issue with [[mw:Extension:ConfirmEdit]] and [[mw:Extension:MobileFrontend]] not quite playing catch with each other.
I was alerted to the issue of no captcha by a user of the Consumerium development wiki on [[ciumd:User:Jukeboksi/Log/2021#Sunday 2021-02-07]].
I filed a ticket on it [[ciumd:MediaWiki/Tickets/Phabricator T274807 - No CAPTCHA from ConfirmEdit served for users that use MobileFrontend]].
I did try to enable VisualEditor on 2021-05-13 but run into 404 problems regarding the REST-traffic, as have many other people. See catalogue [[phabricator:T266971|phabricator:T266971 - ''"Error contacting the Parsoid/RESTBase server" (HTTP 404/403) and similar errors (catalog)'']]. The weird thing about these 404's was that they did not start to exhibit immediately after enabling VisualEditor, nor did they exhibit consistently.
It seems that the '''404 errors''' with the REST-communication used by VisualEditor '''are due to old style of apache2 rewrite engine settings'''.
For the problem of 404 errors in REST-communication I took the solution given here [[phabricator:T270376#7365202]] after the breakthrough discovery [[phabricator:T270376#7364419]] by [https://phabricator.wikimedia.org/p/Func/ Func].
This Apache configuration (snippet) in the VirtualHost directive in <code>/etc/apache2/sites-available/000-website.tld</code> worked for wikis where short URLs in the format of <code>/wiki/</code> and the MediaWiki residing in <code>/w/</code> and document root is one directory up from /w/
<pre>
  RewriteEngine On
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
  RewriteRule ^(?:(?!rest.php/).)*$ %{DOCUMENT_ROOT}/w/index.php [L]
</pre>
'''Thank yous''' to '''Func''' for solving this for us and [https://phabricator.wikimedia.org/p/Kghbln/ '''Kghbln'''] for asking the question in [[phabricator:T270376]] and thanks to Bob, who brought to my attention the problem that mobile users were unable to edit wiki.
* Making and verifying backups and taking a snapshot


=== Friday 2021-11-26 ===
=== Friday 2021-11-26 ===
9,854

edits

We use only those cookies necessary for the functioning of the website.