Page MenuHomePhabricator

Error: Interface 'MediaWiki\Extension\PluggableAuth\Hook\PluggableAuthPopulateGroups' not found
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enable role wsoauth in Vagrant.
  • Go to page Special:Preferences.

What happens?:

There's an internal error:

[097ab1bb4cf641ae1f4496e3] /wiki/Special:Preferences Error: Interface 'MediaWiki\Extension\PluggableAuth\Hook\PluggableAuthPopulateGroups' not found

Backtrace:

from /vagrant/mediawiki/extensions/WSOAuth/src/WSOAuthHooks.php(34)
#0 /vagrant/mediawiki/includes/AutoLoader.php(221): require()
#1 [internal function]: AutoLoader::autoload()
#2 /vagrant/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(240): spl_autoload_call()
#3 /vagrant/mediawiki/vendor/wikimedia/object-factory/src/ObjectFactory.php(149): Wikimedia\ObjectFactory\ObjectFactory::getObjectFromSpec()
#4 /vagrant/mediawiki/includes/HookContainer/HookContainer.php(505): Wikimedia\ObjectFactory\ObjectFactory->createObject()
#5 /vagrant/mediawiki/includes/HookContainer/HookContainer.php(156): MediaWiki\HookContainer\HookContainer->getHandlers()
#6 /vagrant/mediawiki/includes/HookContainer/HookRunner.php(1904): MediaWiki\HookContainer\HookContainer->run()
#7 /vagrant/mediawiki/includes/preferences/DefaultPreferencesFactory.php(261): MediaWiki\HookContainer\HookRunner->onGetPreferences()
#8 /vagrant/mediawiki/includes/preferences/DefaultPreferencesFactory.php(1841): MediaWiki\Preferences\DefaultPreferencesFactory->getFormDescriptor()
#9 /vagrant/mediawiki/includes/specials/SpecialPreferences.php(142): MediaWiki\Preferences\DefaultPreferencesFactory->getForm()
#10 /vagrant/mediawiki/includes/specials/SpecialPreferences.php(109): SpecialPreferences->getFormObject()
#11 /vagrant/mediawiki/includes/specialpage/SpecialPage.php(701): SpecialPreferences->execute()
#12 /vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php(1554): SpecialPage->run()
#13 /vagrant/mediawiki/includes/MediaWiki.php(328): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#14 /vagrant/mediawiki/includes/MediaWiki.php(925): MediaWiki->performRequest()
#15 /vagrant/mediawiki/includes/MediaWiki.php(579): MediaWiki->main()
#16 /vagrant/mediawiki/index.php(50): MediaWiki->run()
#17 /vagrant/mediawiki/index.php(46): wfIndexMain()
#18 /var/www/w/index.php(5): require(string)
#19 {main}

Software version (skip for WMF-hosted wikis like Wikipedia):

PluggableAuth, which was installed by the role, is version 7.0-dev. WSOAuth is version 7.0.0. According to WSOAuth's extension.json, PluggableAuth >= 6.0 is supported, so that should be fine. It's possible that the dev version isn't working properly. I haven't tried installing another yet since I don't know how to do that with Vagrant.

Other information (browser name/version, screenshots, etc.):

The extension seems to otherwise work. I managed to log in to my local wiki from another one.

Event Timeline

I downloaded PluggableAuth 7.0.0 and replaced the version that was installed by the WSOAuth role, but the error remains.

Hi Sebastian, you must use WSOAuth 9.0.0 for PluggableAuth 7.0.0, as documented in the compatibility matrix on the extension page. I agree that the version constraint in the extension.json is too loose, so I will see if I can make it stricter.