I need some help configuring LocalSettings.php for getting Restbase working with VisualEditor.
If I stop the Restbase-service, and remove according entries from LocalSettings.php, I am able to use VisualEditor, able to switch from VE to 'EditSource', but not able to switch back to VE without discarding any changes. So it seems Parsoid is installed properly.
If I start the Restbase-Server and enable to settings in LocalSettings.php, I am unable to open VE, I receive the Message 'Error loading data from server: Could not connect to the server'.
The RestBase installation seems ok, as 'http://localhost:7231/localhost/v1/' and 'http://my_internal_serverip:7231/localhost/v1/' is working.
Accessing mediawiki from a client, Firefox tells me that I am trying to access 'http://localhost:7231/localhost/v1/' - which imho does not make sense, as this 'localhost' is refering to my PC, but should refer to the server. Firefox console also tells me: Blocked loading mixed active content “http://localhost:7231/localhost/v1/page/html/File?redirect=false”
Here is my configuration: Server running Ubuntu 16.04 with a private Mediawiki 1.28 installed. Parsoid, CXserver, Restbase are on the same server. Access to the Mediawiki is (only) via 'https://wiki.mypage.com/Main_Page'. Parsoid is 'seeing' the wiki via 'https://wiki.mypage.com:8243' with no problem.
Here is relevant part from my Localsettings.php:
$wgVisualEditorParsoidURL = 'https://wiki.mypage.com::8143'; $wgVisualEditorParsoidPrefix = 'localhost'; $wgVisualEditorParsoidForwardCookies = false; $wgVisualEditorRestbaseURL = "http://localhost:7231/localhost/v1/page/html/"; $wgVisualEditorFullRestbaseURL = "http://localhost:7231/localhost/"; $wgVirtualRestConfig['modules']['parsoid'] = array( 'url' => 'https://wiki.mypage.com:8143', 'domain' => 'localhost', 'prefix' => 'localhost' ); $wgSessionsInObjectCache = false; $wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = false; $wgVirtualRestConfig['modules']['restbase'] = array( 'url' => 'http://localhost:7231', 'domain' => 'localhost', 'forwardCookies' => false, 'parsoidCompat' => false );
Thanks for your help!
TieMichael (talk) 14:08, 3 March 2017 (UTC)