Last modified: 2013-12-11 16:05:09 UTC
After having upgraded from mw1.19 til mw1.22 I cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git and added require_once "$IP/extensions/VisualEditor/VisualEditor.php"; $wgDefaultUserOptions['visualeditor-enable'] = 1; $wgHiddenPrefs[] = 'visualeditor-enable'; to LocalSettings.php as described at http://www.mediawiki.org/wiki/Extension:VisualEditor When I visit the wiki I get in the browser [da26e58f] 2013-12-11 13:28:05: Fatal exception of type MWException Using CentOS6 64bit
(In reply to comment #0) > After having upgraded from mw1.19 til mw1.22 I > cd extensions > git clone > https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git So you cloned git master of VisualEditor? VisualEditor git master requires MW 1.23 - see https://www.mediawiki.org/wiki/Extension:VisualEditor > [da26e58f] 2013-12-11 13:28:05: Fatal exception of type MWException See https://www.mediawiki.org/wiki/Manual:How_to_debug
Hmmm. Do you know which commit that broke mw1.22 comparability? Because then I could just "git checkout" that version. I don't see any extra debug info in the browser of httpd log by adding error_reporting( -1 ); ini_set( 'display_errors', 1 ); to LocalSettings.php. Should I do more?
(In reply to comment #2) > to LocalSettings.php. Should I do more? $wgShowExceptionDetails
Very useful variable =) Does the following make sense? [df264ef0] / Exception from line 3078 of /var/www/mediawiki-1.22.0/includes/GlobalFunctions.php: MediaWiki 1.23wmf2 required--this is only 1.22.0 Backtrace: #0 /var/www/mediawiki-1.22.0/extensions/VisualEditor/VisualEditor.hooks.php(23): wfUseMW(string) #1 [internal function]: VisualEditorHooks::onSetup() #2 /var/www/mediawiki-1.22.0/includes/Setup.php(592): call_user_func(string) #3 /var/www/mediawiki-1.22.0/includes/WebStart.php(153): require_once(string) #4 /var/www/mediawiki-1.22.0/index.php(46): require(string) #5 {main}
So yeah, VisualEditor is rather experimental and needs non-released versions to work. You can download either 1.23alpha (aka git master) via git or at https://toolserver.org/~krinkle/mwSnapshots/snapshots/mediawiki-core/mediawiki-latest.tar.gz , or the wmf/1.23wmf2 branch (or some other wmf branch greater than 1.23wmf2) via git. These are of course experimental versions of MediaWiki, so it may not be as stable. You could also try downloading an earlier version of VisualEditor, if one is available. --- Closing bug as INVALID since this isn't really a MW bug.
I would prefer to stay at mw1.22 and use an older visual editor, but finding the last git commit that broke mw1.22 is probably not easy. When I look at the git snapshots I don't see anything in the extensions/. Can you explain what I have to do to get all the files that makes up a full mw?
As that's support, could you please raise this in https://www.mediawiki.org/wiki/Project:Support_desk ? Thanks for your understanding!