Last modified: 2014-08-09 12:54:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62905, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60905 - Enabling visualeditor does not result in usable visualeditor
Enabling visualeditor does not result in usable visualeditor
Status: RESOLVED WORKSFORME
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-05 16:44 UTC by Željko Filipin
Modified: 2014-08-09 12:54 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Željko Filipin 2014-02-05 16:44:03 UTC
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
Comment 1 Ori Livneh 2014-02-05 16:45:19 UTC
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.
Comment 2 Željko Filipin 2014-02-05 16:56:29 UTC
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?
Comment 3 Yuvi Panda 2014-02-05 22:17:14 UTC
There's also a 'vagrant git-update' command now that attempts to pull all latest changes to git repos.
Comment 4 Željko Filipin 2014-02-06 13:29:17 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links