Page MenuHomePhabricator

TheConen
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Thursday

  • Clear sailing ahead.

User Details

User Since
Oct 5 2020, 4:40 PM (85 w, 9 h)
Availability
Available
LDAP User
Unknown
MediaWiki User
TheConen [ Global Accounts ]

Recent Activity

Feb 8 2021

TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

Well, in that case, I'm at my wit's end... sorry ¯\_(ツ)_/¯.

Feb 8 2021, 10:57 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

but you said to set to true to enable Visual Editor. Does that mean we must allow anon edits if we want to use Visual Editor?:

Feb 8 2021, 10:08 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

What happens with this one?

Feb 8 2021, 9:19 AM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

Visual Editor needs anonynmous read, edit and writeapi rights. All of these are per default true so you don't need to change anything. Remove everything except

Feb 8 2021, 7:52 AM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor

Feb 7 2021

TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

You're getting a 403 error (Forbidden). If you had the problem described in this thread, you would get a 404 error (Not found). 403 errors happen when Parsoid is missing permissions, probably because you are using a semi-private or private wiki. Try the code snippet I mentioned above and have a look at https://www.mediawiki.org/wiki/Extension:VisualEditor#Troubleshooting, https://www.mediawiki.org/wiki/User:Andrujhon/Allow_Parsoid_Server and https://www.mediawiki.org/wiki/Topic:Vv35plp6g16qno0s

Feb 7 2021, 10:52 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

Well, it is for me... only thing I have in my config regarding Parsoid/VisualEditor are permissions because I use a semi-private wiki (publicly readable, but not writable). That requires something like this:

Feb 7 2021, 10:26 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T265614: Visual Editor + IIS bug. Visual Editor not working when editing a page with "/" or "\".

One thing I don't understand that maybe a dev can shed some light on:

Feb 7 2021, 10:17 PM · Editing-team (Third-party), Parsoid (Third-party), VisualEditor
TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

That's for a development checkout of Parsoid from the git repo. For a standard MediaWiki installation, you don't need any configuration except

Feb 7 2021, 9:41 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

My experience with Parsoid is that, up to now, it has been a node.js based external service since 1.27; this is the way I always installed it and this is the way I am using it with 1.35. Unfortunately, I think you will have to go through the developer page https://www.mediawiki.org/wiki/Parsoid/Developer_Setup and follow the instructions for your platform.

Feb 7 2021, 9:27 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor

Oct 20 2020

TheConen added a comment to T265043: "Error contacting the Parsoid/RESTBase server (HTTP 403)" when trying to edit an existing page with VisualEditor.

It will fix one of the two reasons you're getting the 403 error - VisualEditor not only requires the writeapi right, but also the edit right. AFAIK, you still have editing disabled for unregistered users.

Oct 20 2020, 10:41 AM · Editing-team (Third-party), Parsoid (Third-party), MW-1.35-release, VisualEditor
TheConen added a comment to T265043: "Error contacting the Parsoid/RESTBase server (HTTP 403)" when trying to edit an existing page with VisualEditor.

Yes, it does, as is explained on https://www.mediawiki.org/wiki/Help:ApiSandbox

Oct 20 2020, 10:11 AM · Editing-team (Third-party), Parsoid (Third-party), MW-1.35-release, VisualEditor
TheConen added a comment to T265043: "Error contacting the Parsoid/RESTBase server (HTTP 403)" when trying to edit an existing page with VisualEditor.

which means that if I had defined these parameters (I didn't, because I don't want to actually delete any pages and I'm not sure if the API sandbox actually executes the requests) the unregistered user could proceed with the page deletion. Still there in no link for page deletion on the website, like it appears when I'm logged in, but it turns out the deletion could be completed through the API!

Oct 20 2020, 10:04 AM · Editing-team (Third-party), Parsoid (Third-party), MW-1.35-release, VisualEditor

Oct 8 2020

TheConen added a comment to T265043: "Error contacting the Parsoid/RESTBase server (HTTP 403)" when trying to edit an existing page with VisualEditor.

Well, you could have www.mywiki.com use Cloudflare DNS and www.mywikiwithoutcloudflare.com use your hosting providers DNS.

Oct 8 2020, 9:12 PM · Editing-team (Third-party), Parsoid (Third-party), MW-1.35-release, VisualEditor
TheConen added a comment to T265043: "Error contacting the Parsoid/RESTBase server (HTTP 403)" when trying to edit an existing page with VisualEditor.

Another thing that might work: set $wgVisualEditorFullRestbaseURL = https://DOMAIN_THAT_LEADS_TO_YOUR_WIKI_BUT_DOESNT_USE_CLOUDFLARE.com/rest.php

Oct 8 2020, 9:06 PM · Editing-team (Third-party), Parsoid (Third-party), MW-1.35-release, VisualEditor
TheConen added a comment to T265043: "Error contacting the Parsoid/RESTBase server (HTTP 403)" when trying to edit an existing page with VisualEditor.

AFAIK, VisualEditor is not part of any group, so you need to find a way to enable edit and writeapi for * - but only if the requests come from VisualEditor. The solution described in T263928#6518831 does this, but since you are using Cloudflare and every request comes from a different IP, even if it is sent by the server itself, this doesn't work for you.

Oct 8 2020, 8:57 PM · Editing-team (Third-party), Parsoid (Third-party), MW-1.35-release, VisualEditor
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

Oh well, you wouldn't want to enable access from all Cloudflare IPs... that's a big security risk. Anyone using any Cloudflare IP could edit your wiki. On the other hand, if all requests to your wiki go through Cloudflare, you cannot use this solution with an IP address. Using Cloudflare might actually be what stops you from using that solution in this case.

Oct 8 2020, 8:42 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

Also, i just noticed that there was a ' missing in the code snippet I provided earlier, so if you just copy-pasted that, it might not have worked for you. Try this:

Oct 8 2020, 8:18 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T265043: "Error contacting the Parsoid/RESTBase server (HTTP 403)" when trying to edit an existing page with VisualEditor.

I'm just gonna mention this here for reference: T263928#6518831

Oct 8 2020, 8:16 PM · Editing-team (Third-party), Parsoid (Third-party), MW-1.35-release, VisualEditor
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

Judging by the log you provided above, the IP address you need to use should be 162.158.73.250.

Oct 8 2020, 8:14 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

Try enabling edit and writeapi for everyone (*) for test purposes. If VisualEditor works then, you just have to find the right IP address to put in there. Have you tried IPv4 as well as IPv6?

Oct 8 2020, 8:11 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

In that case, you either need to apply the solution I described in T263928#6518831 or - if you are using HTTP only and no HTTPS - enable cookie forwarding as per https://www.mediawiki.org/wiki/Extension:VisualEditor#Forwarding_cookies_to_Parsoid. Keep in mind that if you enable cookie forwarding, you also have to manually configure Parsoid (https://www.mediawiki.org/wiki/Parsoid#Linking_a_developer_checkout_of_Parsoid).

Oct 8 2020, 8:02 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

Make sure you are not logged in when visiting the site with your browser, use incognito mode.

Oct 8 2020, 7:53 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

When you visit the site (/rest.php/[domain]/v3/page/html/Main_Page/95?redirect=false&stash=true) with your browser, do you get a JSON that tells you "rest-write-denied" or do you get a 403 error message served by your webserver?

Oct 8 2020, 7:51 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release

Oct 5 2020

TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

I've already tried that, they won't do that. So basically I need to rename/move every article that contains a / in its title?

Oct 5 2020, 8:41 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

@CostasAthan Have you tried giving edit and writeapi permissions to * in general to see if that works?

Oct 5 2020, 6:54 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

@CostasAthan I'm using the bundled 1.35 version. I used the IP that showed up in the logs of my hosting provider and that worked for me, but it had to be the IPv6 address (which is the one that showed up in the logs) - the IPv4 would not work.

Oct 5 2020, 6:51 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release
TheConen added a comment to T261921: Visual Editor + Apache bug. Visual Editor not working when editing or creating a page with : or / characters in the Title. e.g. http://localhost/w/index.php/User:John/Newpage.

So, what do I do if I use shared webhosting and have no access to the Apache Virtual Host configuration files?

Oct 5 2020, 6:30 PM · User-Ryasmeen, RESTBase, Parsoid, VisualEditor
TheConen added a comment to T263928: VisualEditor in 1.35 not working (404 / Permanent Loading).

@CostasAthan I was dealing with a 403 error as well, this is how I fixed it:

Oct 5 2020, 6:24 PM · Editing-team (Third-party), Parsoid (Third-party), RESTBase-API, RESTBase, VisualEditor, MW-1.35-release