Page MenuHomePhabricator

Undefined property notice in querypages API
Closed, ResolvedPublic

Description

Notice: Undefined property: stdClass::$value in includes/api/ApiQueryQueryPage.php on line 118
Upon visiting api.php?action=query&list=querypage&qppage=BrokenRedirects with a non-empty result set


Version: 1.20.x
Severity: normal

Details

Reference
bz31759
ReferenceSource BranchDest BranchAuthorTitle
repos/security/wikimedia-code-health-check!1T337593-initial-repo-setupmainsbassettBasic python repo setup (will likely change, and that's fine)
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:52 PM
bzimport set Reference to bz31759.
bzimport added a subscriber: Unknown Object (MLST).

BrokenRedirects, DoubleRedirects and Listredirects all have the same issue, which is just them not setting anything for the value.

Which means the API isn't to blame...

Per the querypage documentation, the modules themselves are at fault

  • Note that the query itself should return the following three columns:
  • 'namespace', 'title', and 'value'. 'value' is used for sorting.
	 *