Editing User:Juho Kunsola/log/2021

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 21: Line 21:


=== Saturday 2021-12-11 ===
=== Saturday 2021-12-11 ===
==== Finally enabled VisualEditor successfully ====
The solution given here [[phabricator:T270376#7365202]] after the breakthrough discovery [[phabricator:T270376#7364419]] by Func needed to be tweaked also with <code>AllowEncodedSlashes NoDecode</code> to stop the [[mw:VisualEditor]] REST 404 errors exhibiting when trying to edit subpages. Adding <code>AllowEncodedSlashes NoDecode</code> to the Apache 2.4 config inside of the <VirtualHost>-directive seems to yield a completely functioning VisualEditor setup.
This advice I found in [[mw:Extension:VisualEditor#Allowing VisualEditor on page titles containing slashes]] after it was kindly pointed out by an irc-goer in #mediawiki. So the documentation has been improved lately.
So two configuration changes to Apache2 were needed to successfully enable VisualEditor:
<pre>
  AllowEncodedSlashes NoDecode
</pre>
for VE to work with URL's with slashes in them
<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>
for REST traffic to work as intended and naturally also short URLs working (MediaWiki is residing in w/ and wiki URL is /wiki/) and no more REST 404 errors at all.
==== Made and verified backups and took an interim snapshot of the system disk ====
==== Made and verified backups and took an interim snapshot of the system disk ====
* Making and verifying backups
* Making and verifying backups
Line 49: Line 27:


=== Saturday 2021-11-27 ===
=== Saturday 2021-11-27 ===
==== Enabled VisualEditor ====
==== Finally enabled VisualEditor successfully ====
I finally enabled [[mw:VisualEditor]] on all wikis. I'm still getting REST 404 errors with VisualEditor, but I have verified that those exhibit '''only when trying to edit a subpage'''. When trying to edit a subpage with VE, it fails with REST 404 when loading the VE, but if trying to create a subpage with VE it fails only after the final "save page".
I finally enabled [[mw:VisualEditor]] on all wikis. I'm still getting REST 404 errors with VisualEditor, but I have verified that those exhibit '''only when trying to edit a subpage'''. When trying to edit a subpage with VE, it fails with REST 404 when loading the VE, but if trying to create a subpage with VE it fails only after the final "save page".


Please note that all contributions to Ban Covert Modeling! wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see BCM:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)