Page MenuHomePhabricator

ApiGlobalBlock.php: Trying to get property 'gb_expiry' of non-object
Closed, DuplicatePublicPRODUCTION ERROR

Description

Error

Request URL: meta.wikimedia.org /w/api.php
Request ID: XTiAGQpAIDwAAIe1-vMAAAAJ

message
[{exception_id}] {exception_url}   ErrorException from line 52 of /srv/mediawiki/php-1.34.0-wmf.15/extensions/GlobalBlocking/includes/api/ApiGlobalBlock.php: PHP Notice: Trying to get property 'gb_expiry' of non-object
trace
 	#0 /srv/mediawiki/php-1.34.0-wmf.15/extensions/GlobalBlocking/includes/api/ApiGlobalBlock.php(52): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.34.0-wmf.15/includes/api/ApiMain.php(1583): ApiGlobalBlock->execute()
#2 /srv/mediawiki/php-1.34.0-wmf.15/includes/api/ApiMain.php(531): ApiMain->executeAction()
#3 /srv/mediawiki/php-1.34.0-wmf.15/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#4 /srv/mediawiki/php-1.34.0-wmf.15/api.php(86): ApiMain->execute()
#5 /srv/mediawiki/w/api.php(3): require(string)
#6 {main}

Impact

TBD

Notes

There are currently about ten instances of this error in logstash. I'm going to exercise my ignorant judgement and not treat this as a train blocker, but I assume there's a bug so reporting it anyway.

Event Timeline

Same request id also has

PHP Notice: Trying to get property 'gb_anon_only' of non-object

at

#0 /srv/mediawiki/php-1.34.0-wmf.15/extensions/GlobalBlocking/includes/api/ApiGlobalBlock.php(46): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.34.0-wmf.15/includes/api/ApiMain.php(1583): ApiGlobalBlock->execute()
#2 /srv/mediawiki/php-1.34.0-wmf.15/includes/api/ApiMain.php(531): ApiMain->executeAction()
#3 /srv/mediawiki/php-1.34.0-wmf.15/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling()
#4 /srv/mediawiki/php-1.34.0-wmf.15/api.php(86): ApiMain->execute()
#5 /srv/mediawiki/w/api.php(3): require(string)
#6 {main}
dmaza renamed this task from Block.php: Trying to get property 'gb_expiry' of non-object to ApiGlobalBlock.php: Trying to get property 'gb_expiry' of non-object.Jul 24 2019, 4:47 PM
mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:05 PM