Page MenuHomePhabricator

Enabling visualeditor does not result in usable visualeditor
Closed, DeclinedPublic

Description

Steps to reproduce:

#1 $ vagrant enable-role visualeditor
Ok. Run 'vagrant provision' to apply your changes.

#2 $ vagrant list-roles
Available roles:

analytics
antispam
apisandbox
betafeatures
browsertests
chromium
cirrussearch
cldr
codeeditor
commonsmetadata
echo
education
eventlogging
fundraising
gadgets
geodata
geshi
gettingstarted
guidedtour
hadoop
hhvm
hive
massmessage
math
mathsearch
mleb
mobilefrontend
multimedia
multimediaviewer
navigationtiming
oauth
parserfunctions
pdfhandler
proofreadpage
remote_debug
scribunto
timedmediahandler
uploadwizard
  • visualeditor wikieditor wikimetrics xhprof

Roles marked with '*' are enabled.
Use "vagrant enable-role" & "vagrant disable-role" to customize.

#3 $ vagrant provision
[default] Running provisioner: puppet...
Running Puppet with site.pp...
info: Applying configuration version '1391614793.16f99ad'
info: mount[files]: allowing mediawiki-vagrant access
notice: /Stage[main]/Mediawiki::Parsoid/Package[nodejs]/ensure: ensure changed 'purged' to '0.8.2-1chl1~precise1'
notice: /Stage[main]/Mediawiki::Parsoid/File[/etc/init/parsoid.conf]/ensure: created
notice: /Stage[main]/Mediawiki::Parsoid/Git::Clone[mediawiki/services/parsoid/deploy]/Exec[git clone mediawiki/services/parsoid/deploy]/returns: executed successfully
notice: /Stage[main]/Mediawiki::Parsoid/File[localsettings.js]/ensure: defined content as '{md5}11ba3cfc1124f11f4a507a56cc70d34c'
info: /Stage[main]/Mediawiki::Parsoid/File[localsettings.js]: Scheduling refresh of Service[parsoid]
notice: /Stage[main]/Mediawiki::Parsoid/Service[parsoid]/ensure: ensure changed 'stopped' to 'running'
notice: /Stage[main]/Mediawiki::Parsoid/Service[parsoid]: Triggered 'refresh' from 1 events
notice: /Stage[main]/Role::Visualeditor/Mediawiki::Extension[VisualEditor]/Git::Clone[mediawiki/extensions/VisualEditor]/Exec[git clone mediawiki/extensions/VisualEditor]/returns: executed successfully
notice: /Stage[main]/Role::Visualeditor/Mediawiki::Extension[VisualEditor]/Mediawiki::Settings[VisualEditor]/File[/vagrant/settings.d/puppet-managed/10-VisualEditor.php]/ensure: created
notice: Finished catalog run in 587.81 seconds

#4 Go to http://127.0.0.1:8080/wiki/Main_Page

#5 Error page is displayed:

MediaWiki 1.23wmf2 required--this is only 1.22alpha

Backtrace:

#0 /vagrant/mediawiki/extensions/VisualEditor/VisualEditor.hooks.php(23): wfUseMW('1.23wmf2')
#1 [internal function]: VisualEditorHooks::onSetup()
#2 /vagrant/mediawiki/includes/Setup.php(569): call_user_func('VisualEditorHoo...')
#3 /vagrant/mediawiki/includes/WebStart.php(161): require_once('/vagrant/mediaw...')
#4 /vagrant/mediawiki/index.php(55): require('/vagrant/mediaw...')
#5 {main}

#6 Looks like mediawiki-vagrant uses an old version of mediawiki (1.22alpha) and visualeditor needs version 1.23wmf2


Version: unspecified
Severity: normal

Details

Reference
bz60905

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:58 AM
bzimport set Reference to bz60905.

MediaWiki-Vagrant git-clones MediaWiki core the first time you provision it and leaves it for you to manage thereafter. You can go to the mediawiki/ subdirectory and run 'git pull' to get the latest.

Thanks, I got the same advice from James_F at #wikimedia-qa. The strange thing is that I have created the vagrant vm today. Shouldn't it have the lates core then?

There's also a 'vagrant git-update' command now that attempts to pull all latest changes to git repos.

I am not sure what I did wrong the last time. I have tried again with a clean VM and visual editor works just fine.