Page MenuHomePhabricator

PHP Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated
FrameLocationCall
from/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/CampaignLog.php(38)
#0[internal function]MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/CampaignLog.php(38)json_decode(null, bool)
#2/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/CampaignLog.php(50)CampaignLog::{closure}(null)
#3/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/CampaignLog.php(61)CampaignLog->{closure}(string, Closure)
#4/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/Campaign.php(1777)CampaignLog->__construct(stdClass)
#5/srv/mediawiki/php-1.44.0-wmf.20/extensions/CentralNotice/includes/api/ApiCentralNoticeLogs.php(29)Campaign::campaignLogs(null, null, null, null, int, int)
#6/srv/mediawiki/php-1.44.0-wmf.20/includes/api/ApiQuery.php(728)ApiCentralNoticeLogs->execute()
#7/srv/mediawiki/php-1.44.0-wmf.20/includes/api/ApiMain.php(2005)MediaWiki\Api\ApiQuery->execute()
#8/srv/mediawiki/php-1.44.0-wmf.20/includes/api/ApiMain.php(947)MediaWiki\Api\ApiMain->executeAction()
#9/srv/mediawiki/php-1.44.0-wmf.20/includes/api/ApiMain.php(918)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#10/srv/mediawiki/php-1.44.0-wmf.20/includes/api/ApiEntryPoint.php(152)MediaWiki\Api\ApiMain->execute()
#11/srv/mediawiki/php-1.44.0-wmf.20/includes/MediaWikiEntryPoint.php(202)MediaWiki\Api\ApiEntryPoint->execute()
#12/srv/mediawiki/php-1.44.0-wmf.20/api.php(44)MediaWiki\MediaWikiEntryPoint->run()
#13/srv/mediawiki/w/api.php(3)require(string)
#14{main}
Impact
Notes

Details

Request URL
https://ar.wikipedia.org/w/api.php?action=query&format=*&list=*
Related Changes in Gerrit:

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Change #1128986 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/CentralNotice@master] CampaignLog: Don't run null through json_decode()

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

Change #1118475 had a related patch set uploaded (by Reedy; author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/CentralNotice@master] More compact code with the fn() callable syntax

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

Change #1128986 abandoned by Reedy:

[mediawiki/extensions/CentralNotice@master] CampaignLog: Don't run null through json_decode()

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

Reedy changed the task status from Open to In Progress.Mar 21 2025, 5:55 PM

Change #1118475 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@master] More compact code with the fn() callable syntax

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

Reedy claimed this task.