Page MenuHomePhabricator

PHP fatal error from action=templatedata API: Argument 1 passed to ApiResult::setIndexedTagName() must be an instance of array, null given
Closed, DuplicatePublic

Description

A GET request for https://en.wikipedia.org/w/api.php?action=templatedata&format=json&titles=Template%3AWikiProject%20India&redirects=1&doNotIgnoreMissingTitles=1 returns status 500. Loading the url in the browser shows a WMF error page with the following message:

PHP fatal error:
Argument 1 passed to ApiResult::setIndexedTagName() must be an instance of array, null given

Similar requests such as

work as expected, returning the result of the request.

The request is being made from my enwiki userscript User:Evad37/rater; I found this error while investigating an issue reported by another user.

Event Timeline

Evad37 created this task.Jan 20 2019, 2:55 AM
Restricted Application added a project: VisualEditor. · View Herald TranscriptJan 20 2019, 2:55 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Seems like T213953 to me

Yeah, looks like its probably another manifestation of the same error