Page MenuHomePhabricator

"Sudo" extension / Fatal error: Call to a member function params()
Closed, ResolvedPublic

Description

Setup

  • MediaWiki - 1.27.0 (758cd9d)
  • PHP - 5.6.22-0+deb8u1 (apache2handler)
  • MariaDB - 10.0.26-MariaDB-1~jessie
  • Sudo - 0.4.0 (b330ba9)

Issue
When trying to return from the sudoed account to the sudoer's account the following fatal occurs:

Fatal error: Call to a member function params() on string in /.../w/extensions/Sudo/SpecialSudo.php on line 131

I am not sure which branch started to have this issue. Perhaps it is connected the the new auth management in MediaWiki though I am just speculating here.

Event Timeline

@DanielFriesen You will probably like to have a peep at this. Help and a fix will be appreciated.

Change 297128 had a related patch set uploaded (by Paladox):
Add missing ) on line 131

https://gerrit.wikimedia.org/r/297128

Quote self:

I am not sure which branch started to have this issue.

So this issue is only on REL1_27 and master. A backport to REL1_27 should be authored too.

@Paladox Great! Thanks!

@Kghbln hi, does the patch work, since I'm unsure if I did it correctly.

Could you test please.

@Paladox Affirmative, the fix works as a field test proves!

Change 297130 had a related patch set uploaded (by Paladox):
Add missing ) on line 131

https://gerrit.wikimedia.org/r/297130

Change 297128 merged by jenkins-bot:
Add missing ) on line 131

https://gerrit.wikimedia.org/r/297128

Change 297130 merged by jenkins-bot:
Add missing ) on line 131

https://gerrit.wikimedia.org/r/297130

Paladox claimed this task.
Paladox removed a project: Patch-For-Review.
Paladox removed a subscriber: gerritbot.

Closing as resolved, please reopen if the problem still happens.