Page MenuHomePhabricator

"Call to a member function $user->getGroups() on null" in StructuredDiscussions when running update.php
Open, Needs TriagePublic

Description

When installing StructuredDiscussions and running update.php, following error occurs:

[bb35857f29b61c0166ca32aa] [no req]   Error from line 260 of C:\plavormind\web\wiki\mediawiki\extensions\Flow\includes\TalkpageManager.php: Call to a member function getGroups() on null
Backtrace:
#0 C:\plavormind\web\wiki\mediawiki\extensions\Flow\maintenance\FlowCreateTemplates.php(114): Flow\TalkpageManager->getTalkpageManager()
#1 C:\plavormind\web\wiki\mediawiki\extensions\Flow\maintenance\FlowCreateTemplates.php(86): FlowCreateTemplates->create(Title, WikitextContent)
#2 C:\plavormind\web\wiki\mediawiki\maintenance\Maintenance.php(1724): FlowCreateTemplates->doDBUpdates()
#3 C:\plavormind\web\wiki\mediawiki\maintenance\update.php(215): LoggedUpdateMaintenance->execute()
#4 C:\plavormind\web\wiki\mediawiki\maintenance\doMaintenance.php(99): UpdateMediaWiki->execute()
#5 C:\plavormind\web\wiki\mediawiki\maintenance\update.php(266): require_once(string)
#6 {main}

MediaWiki version: 1.34.0-wmf.13
StructuredDiscussions revision: b46ce868df1e9259eabd5349ef13c68e6487196f

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Aklapper renamed this task from StructuredDiscussions throws an error when running update.php to "Call to a member function $user->getGroups() on null" in StructuredDiscussions when running update.php.Jul 7 2019, 3:25 PM
JTannerWMF subscribed.

Thank you for identifying this bug. Unfortunately, at this time Growth-Team is not prioritizing this work, but may pick it up at a future date.

This is a really confusing error because it seems like it should be impossible. Does your wiki already have a user named "Flow talk page manager"? Do you have any extensions installed that would affect user login/creation/identity?

@Catrope We don't have a user named "Flow talk page manager", even after installing Flow, and auto-created pages (e.g. Template:FlowMention, Template:LQT page converted to Flow, etc.) are attributed to "127.0.0.1".

@JTannerWMF Does that mean they won't fix this bug?

@PlavorSeol: It means that the Growth Team will not look at this task at any time soon.

We have also this error when upgrading from 1.32.2 to 1.33.0, and in our case we have a user "Flow talk page manager" inherited from previous installation. We are currently investigating.

A possible workaround is :

  1. desactivate Flow
  2. update the database
  3. reactivate Flow
  4. update the database