Page MenuHomePhabricator

Call to undefined method MediaWiki\Preferences\DefaultPreferencesFactory::setUser()
Closed, DuplicatePublic

Description

Hi, I'm getting this:

Error from line 42 of /srv/mediawiki/w/extensions/GlobalPreferences/includes/Hooks.php: Call to undefined method MediaWiki\Preferences\DefaultPreferencesFactory::setUser()
Backtrace:
#0 /srv/mediawiki/w/includes/Hooks.php(174): GlobalPreferences\Hooks::onUserLoadOptions(User, array)
#1 /srv/mediawiki/w/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#2 /srv/mediawiki/w/includes/user/User.php(5555): Hooks::run(string, array)
#3 /srv/mediawiki/w/includes/user/User.php(3174): User->loadOptions()
#4 /srv/mediawiki/w/includes/parser/ParserOptions.php(1182): User->getOption(string)
#5 /srv/mediawiki/w/includes/parser/ParserOptions.php(991): ParserOptions->initialiseFromUser(User, Language)
#6 /srv/mediawiki/w/includes/parser/ParserOptions.php(1029): ParserOptions->__construct(User, Language)
#7 /srv/mediawiki/w/includes/Storage/DerivedPageDataUpdater.php(779): ParserOptions::newFromUserAndLang(User, Language)
#8 /srv/mediawiki/w/includes/Storage/PageUpdater.php(676): MediaWiki\Storage\DerivedPageDataUpdater->prepareContent(User, MediaWiki\Storage\RevisionSlotsUpdate, boolean)
#9 /srv/mediawiki/w/includes/page/WikiPage.php(1887): MediaWiki\Storage\PageUpdater->saveRevision(CommentStoreComment, integer)
#10 /srv/mediawiki/w/extensions/Flow/maintenance/FlowCreateTemplates.php(114): WikiPage->doEditContent(WikitextContent, CommentStoreComment, integer, boolean, User)
#11 /srv/mediawiki/w/extensions/Flow/maintenance/FlowCreateTemplates.php(86): FlowCreateTemplates->create(Title, WikitextContent)
#12 /srv/mediawiki/w/maintenance/Maintenance.php(1698): FlowCreateTemplates->doDBUpdates()
#13 /srv/mediawiki/w/maintenance/update.php(215): LoggedUpdateMaintenance->execute()
#14 /srv/mediawiki/w/maintenance/doMaintenance.php(94): UpdateMediaWiki->execute()
#15 /srv/mediawiki/w/maintenance/update.php(248): require_once(string)
#16 {main}

Just after upgrading to MediaWiki 1.32. (running php 7.2)