[02:12:06] hi, there I'm looking for a little assistance in configuration of Restbase/Visual Editor in MW 1.35. I was previously on MW 1.31 with Parsoid/Restbase and VE and am looking to eliminate Parsoid (JS) and use the default arrangements. This is going reasonably but when I edit pages my page is always blanked out. [02:12:06] I'm testing locally, and in my debug console of my browser I see `http://localhost/w/rest.php/localhost/v1/page/html/Scoping_Cooling_Control_Replacements?redirect=false&stash=true` is 404-ing. [02:12:07] Interestingly (and I do not know why) if I replace `v1` with `v3` I see a view of the page I'm looking for. [02:12:27] Similarly, `http://localhost/w/rest.php/localhost/v3/page/html/Main%20Page/27877` works but `http://localhost/w/rest.php/localhost/v1/page/html/Main%20Page/27877` indicates `"The requested relative path (/localhost/v1/page/html/Main%20Page/27877) did not match any known handler"`. [02:12:27] I'd be grateful for any thoughts or suggestions [02:15:36] what's your LocalSettings.php configuration? [02:17:46] ```php [02:17:46] # The wiki is at in a subfolder called wiki. [02:17:47] wfLoadExtension( 'VisualEditor' ); [02:17:47] # IS THIS NEEDED? [02:17:48] $wgVirtualRestConfig['modules']['parsoid'] = array( [02:17:48] 'url' => 'http://localhost/w/rest.php/x', [02:17:49] 'domain' => 'localhost' [02:17:49] ); [02:17:50] # this one seems to be used [02:17:50] $wgVisualEditorFullRestbaseURL = 'http://localhost/w/rest.php/localhost/'; [02:17:51] # IS THIS NEEDED? [02:17:51] $wgVisualEditorRestbaseURL = 'http://localhost/w/rest.phpz/'; [02:17:52] $wgVisualEditorRestbaseURL = "http://localhost/w/rest.php/localhost/v3/page/html/"; [02:17:52] # From the docs which are not very good but better than the rest: [02:17:53] # https://www.mediawiki.org/wiki/RESTBase/Installation [02:17:53] #$wgVisualEditorFullRestbaseURL = "http://YOUR_WIKI_WEBSITE/YOUR_WIKI_WEBSITE/"; [02:17:54] #$wgVisualEditorRestbaseURL = "http://YOUR_WIKI_WEBSITE/YOUR_WIKI_WEBSITE/v1/page/html/"; [02:17:54] / required in MW 1.35 https://www.mediawiki.org/wiki/RESTBase/Installation [02:18:09] uh, use pastebin please [02:18:13] danyill: Please don't do that.. [02:18:14] oh, sorry [02:18:45] anyways, you should delete any manual $wgVirtualRestConfig and $wgVisualEditorRestbaseURL lines [02:18:52] Better: https://dpaste.org/YOB6#L6,7 [02:19:01] all you need is wfLoadExtension( 'VisualEditor' ) [02:19:30] delete the wfLoadExtension( 'Parsoid' ) too [02:20:46] Hmmm, that was where I started. Let me try that, perhaps I've gone full circle [02:22:33] @lego [02:22:44] @legoktm thanks, that worked [02:22:49] :D [02:23:03] we've really worked on making it require 0 configuration [02:23:05] I have so far spent about 7 hours on it so that is a grand step forward :D [02:23:20] I think it's all the old cruft [02:23:30] From MW 1.31 which I hadn't cleared away which was blinding me [02:23:44] yeah, things were pretty bad before [02:23:59] Will that be using my Restbase instance if I have it? How does MW know if a Restbase instance exists? [02:26:13] well you don't really need restbase anymore [02:26:26] depending on the size of your wiki, that is [02:26:39] if you want to continue using Restbase you'll have to manually configure it [02:27:49] I would quite like to drop it because the complexity of Parsoid/Restbase/Mathoid is a bit beyond my ability. I was wanting to create PDFs using Electron and I'm a little unsure if anything still needs Restbase [02:28:13] I think Mathoid might still need it but I'm not exactly sure [02:28:41] https://www.mediawiki.org/wiki/Extension:VisualEditor#RESTBase_setup_for_switching [02:32:41] When I was using MW 1.31 I enabled Mathoid so that I could use equations in Visual Editor with https://www.mediawiki.org/wiki/Extension:Math. It seems like it may still require this and also Restbase unless the CLI option is used but my recollection is this was quite slow [02:33:03] (slow = as you're typing equations in the refresh rate is slow) [02:54:46] With Restbase I'm seeing my browser logs: 'Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://restbase:7231/localhost/v1/page/html/Scoping_Cooling_Control_Replacements/30321?redirect=false&stash=true. (Reason: CORS request did not succeed).' [02:55:19] Both the web server and restbase are on localhost at not using https, I'm a bit unclear how to avoid this [02:55:32] *at = and [07:30:01] I've just enabled the new Visual Editor and it looks great but I went to save the page and got "Error contacting the Parsoid/RESTBase server (HTTP 301)" [07:30:44] Nevermind me, this idiot failed to RTFM. [07:42:58] Fixed the issue but now I find out that it won't work on private wikis. Hopefully that's fixed soon. [17:33:10] hashar: anything missing, or can this go in?... https://gerrit.wikimedia.org/r/c/integration/docroot/+/707333 [17:57:44] duesen I would like to have it automatic [17:57:52] and refactor the jobs to push the report to /phpmetrics/ [17:57:58] like we do for coverage [17:58:04] but I guess we can use that for a start [18:06:49] duesen: I guess I will check it tomorrow [19:07:55] thanks DannyS712 [19:12:01] happy to help - ever professionals need practice some times to perfect their "A game" :) [19:12:19] s/ever/even [19:17:46] hehe [19:17:57] anything else you want reviewed? [19:31:41] no, all my other DPL patches were already merged [19:31:55] thanks though, I did review one of your other patches in exchange :) [19:35:35] if you have the time, I have a few other patches that could use a review (eg https://gerrit.wikimedia.org/r/c/mediawiki/core/+/703416 and the follow ups)