Page MenuHomePhabricator

BotQuery extension uses obsolete Image functions, PHP fatal error
Closed, ResolvedPublic


Some function in the BotQuery extension triggers PHP fatal errors when attempting to use Image methods which no longer exist:

Jun 4 15:01:06 srv139 httpd[21155]: PHP Fatal error: Call to undefined method Image::getcommonsdb() in /usr/local/apache/common-local/php-1.5/extensions/BotQuery/query.php on line 1452
Jun 4 15:01:07 srv51 httpd[31463]: PHP Fatal error: Call to undefined method Image::imageurl() in /usr/local/apache/common-local/php-1.5/extensions/BotQuery/query.php on line 1513

Version: unspecified
Severity: enhancement



Event Timeline

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

r22703 adds an imageUrl() compat function, but the use of getCommonsDb() kind of.... super-sucks.

As of r23819, the new API supports imageinfo requests. See for an example (pending server sync).

Is this bug still happening? It seems to be working on en, while also giving error of "no shared repository".

  • This bug has been marked as a duplicate of bug 10187 ***