Page MenuHomePhabricator

TypeError: MediaWiki\Extension\CheckUser\Logging\TemporaryAccountLogger::logAutoRevealAccessEnabled(): Argument #2 ($expiry) must be of type int, string given, called in /srv/mediawiki/php-1.47.0-wmf.4/extensions/CheckUser/src/
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.47.0-wmf.4
  • timestamp: 2026-05-29T13:11:37.321Z
  • phpversion: 8.3.31
  • reqId: 8cb8832f-c4fc-4934-80a2-516bfc52d755
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   TypeError: MediaWiki\Extension\CheckUser\Logging\TemporaryAccountLogger::logAutoRevealAccessEnabled(): Argument #2 ($expiry) must be of type int, string given, called in /srv/mediawiki/php-1.47.0-wmf.4/extensions/CheckUser/src/
FrameLocationCall
from/srv/mediawiki/php-1.47.0-wmf.4/extensions/CheckUser/src/Logging/TemporaryAccountLogger.php(209)
#0/srv/mediawiki/php-1.47.0-wmf.4/extensions/CheckUser/src/HookHandler/GlobalPreferencesHandler.php(58)MediaWiki\Extension\CheckUser\Logging\TemporaryAccountLogger->logAutoRevealAccessEnabled(MediaWiki\User\User, string)
#1/srv/mediawiki/php-1.47.0-wmf.4/includes/HookContainer/HookContainer.php(127)MediaWiki\Extension\CheckUser\HookHandler\GlobalPreferencesHandler->onGlobalPreferencesSetGlobalPreferences(MediaWiki\User\User, array, array)
#2/srv/mediawiki/php-1.47.0-wmf.4/extensions/GlobalPreferences/includes/Services/GlobalPreferencesHookRunner.php(22)MediaWiki\HookContainer\HookContainer->run(string, array, array)
#3/srv/mediawiki/php-1.47.0-wmf.4/extensions/GlobalPreferences/includes/GlobalPreferencesFactory.php(651)GlobalPreferences\Services\GlobalPreferencesHookRunner->onGlobalPreferencesSetGlobalPreferences(MediaWiki\User\User, array, array)
#4/srv/mediawiki/php-1.47.0-wmf.4/extensions/GlobalPreferences/includes/ApiGlobalPreferences.php(87)GlobalPreferences\GlobalPreferencesFactory->setGlobalPreferences(MediaWiki\User\User, array, MediaWiki\Context\DerivativeContext)
#5/srv/mediawiki/php-1.47.0-wmf.4/includes/Api/ApiOptionsBase.php(116)GlobalPreferences\ApiGlobalPreferences->commitChanges()
#6/srv/mediawiki/php-1.47.0-wmf.4/extensions/GlobalPreferences/includes/ApiGlobalPreferences.php(35)MediaWiki\Api\ApiOptionsBase->execute()
#7/srv/mediawiki/php-1.47.0-wmf.4/includes/Api/ApiMain.php(2052)GlobalPreferences\ApiGlobalPreferences->execute()
#8/srv/mediawiki/php-1.47.0-wmf.4/includes/Api/ApiMain.php(950)MediaWiki\Api\ApiMain->executeAction()
#9/srv/mediawiki/php-1.47.0-wmf.4/includes/Api/ApiMain.php(921)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#10/srv/mediawiki/php-1.47.0-wmf.4/includes/Api/ApiEntryPoint.php(138)MediaWiki\Api\ApiMain->execute()
#11/srv/mediawiki/php-1.47.0-wmf.4/includes/MediaWikiEntryPoint.php(180)MediaWiki\Api\ApiEntryPoint->execute()
#12/srv/mediawiki/php-1.47.0-wmf.4/api.php(30)MediaWiki\MediaWikiEntryPoint->run()
#13/srv/mediawiki/w/api.php(3)require(string)
#14{main}
Impact
Notes

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
neriah triaged this task as Unbreak Now! priority.May 29 2026, 1:09 PM

I asked additional users and they said the problem exists for them as well.

kostajh renamed this task from Can not be enabled IP Auto-reveal to TypeError: MediaWiki\Extension\CheckUser\Logging\TemporaryAccountLogger::logAutoRevealAccessEnabled(): Argument #2 ($expiry) must be of type int, string given, called in /srv/mediawiki/php-1.47.0-wmf.4/extensions/CheckUser/src/.May 29 2026, 1:12 PM
kostajh updated the task description. (Show Details)
kostajh subscribed.

Change #1295462 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/CheckUser@master] GlobalPreferencesHandler: Cast auto-reveal expiry to int

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

Aklapper changed the subtype of this task from "Bug Report" to "Production Error".May 29 2026, 1:41 PM

Removing as 1.47.0-wmf.4 train blocker as the 1.47.0-wmf.4 train has already passed.

Change #1295466 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/CheckUser@wmf/1.47.0-wmf.4] GlobalPreferencesHandler: Cast auto-reveal expiry to int

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

Change #1295462 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] GlobalPreferencesHandler: Cast auto-reveal expiry to int

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

Change #1295466 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@wmf/1.47.0-wmf.4] GlobalPreferencesHandler: Cast auto-reveal expiry to int

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

Mentioned in SAL (#wikimedia-operations) [2026-05-29T14:07:45Z] <kharlan@deploy1003> Started scap sync-world: Backport for [[gerrit:1295466|GlobalPreferencesHandler: Cast auto-reveal expiry to int (T427625)]]

Mentioned in SAL (#wikimedia-operations) [2026-05-29T14:09:48Z] <kharlan@deploy1003> kharlan: Backport for [[gerrit:1295466|GlobalPreferencesHandler: Cast auto-reveal expiry to int (T427625)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Removing as 1.47.0-wmf.4 train blocker as the 1.47.0-wmf.4 train has already passed.

OK, sorry, I thought I had seen others do this in the past (track it as a subtask of the relevant train).

Mentioned in SAL (#wikimedia-operations) [2026-05-29T14:15:44Z] <kharlan@deploy1003> Finished scap sync-world: Backport for [[gerrit:1295466|GlobalPreferencesHandler: Cast auto-reveal expiry to int (T427625)]] (duration: 07m 58s)

Should be fixed now. Thank you for filing the task, @neriah