Page MenuHomePhabricator

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


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
#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 project: Growth-Team. · View Herald TranscriptJul 7 2019, 12:17 AM
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 added a subscriber: JTannerWMF.

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.

Catrope added a subscriber: Catrope.Jul 9 2019, 7:44 PM

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 "".

PlavorSeol updated the task description. (Show Details)EditedJul 10 2019, 8:50 AM

@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.

Seb35 added a subscriber: Seb35.Jul 22 2019, 1:32 PM

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
Tinss added a subscriber: Tinss.Oct 5 2019, 9:06 PM

@Nicolas_NALLET thanks a bunch, that worked.