Page MenuHomePhabricator

"Error: Call to a member function getContent() on null" passing bogus data to charts
Closed, ResolvedPublicPRODUCTION ERROR

Description

Currently seen at https://www.mediawiki.org/wiki/Talk:MediaWiki_Developer_Summit_2015/Lessons_learned because I'm in the process of migrating some templates from Graph to Chart and the migration is half-finished but I'll finish it soon so it won't repro there.

internal_api_error_Error: [3aa5649b-4f30-42ce-9c57-155046e7830c] Caught exception of type Error
Error
  • mwversion: 1.46.0-wmf.10
  • timestamp: 2026-01-08T02:38:03.987Z
  • phpversion: 8.3.29
  • reqId: 3aa5649b-4f30-42ce-9c57-155046e7830c
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   Error: Call to a member function getContent() on null
Impact
Notes

Details

MediaWiki Version
1.46.0-wmf.10
Request URL
https://commons.wikimedia.org/w/api.php?format=*
Related Changes in Gerrit:

Event Timeline

Restricted Application changed the subtype of this task from "Task" to "Production Error". · View Herald TranscriptJan 8 2026, 2:39 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Aklapper renamed this task from Passing bogus data to charts is a PROD error to "Error: Call to a member function getContent() on null" passing bogus data to charts.Jan 8 2026, 9:17 AM
Aklapper set Request URL to https://commons.wikimedia.org/w/api.php?format=*.
Aklapper updated the task description. (Show Details)
Aklapper added a project: JsonConfig.
Aklapper set Release Version to 1.46.0-wmf.10.

Change #1224676 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/extensions/JsonConfig@master] JCTransformApi: Check good status consistently

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

The error message looks OK on the central wiki (Commons). The client wiki will look like this when fixed, it may still be improved though.

central wiki errorclient wiki error
jc-a.png (1,110×662 px, 104 KB)
jc-b.png (1,104×718 px, 114 KB)
HSwan-WMF triaged this task as Medium priority.Jan 29 2026, 6:06 PM

Change #1224676 merged by jenkins-bot:

[mediawiki/extensions/JsonConfig@master] JCTransformApi: Check good status consistently

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

Has this been sufficiently dealt with (mitigated?) – or are we still seeing breakage in production here?

Pppery assigned this task to Ammarpad.