Last modified: 2014-05-20 18:14:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67537, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65537 - fatal error hitting the API URL on beta labs
fatal error hitting the API URL on beta labs
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SiteMatrix (Other open bugs)
unspecified
All All
: Immediate major (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-20 16:38 UTC by Chris McMahon
Modified: 2014-05-20 18:14 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris McMahon 2014-05-20 16:38:23 UTC
go to http://en.wikipedia.beta.wmflabs.org/w/api.php

error is 

PHP fatal error in /srv/common-local/php-master/includes/api/ApiQueryBase.php line 43: 
Argument 1 passed to ApiQueryBase::__construct() must be an instance of ApiQuery, instance of ApiMain given, called in /srv/common-local/php-master/extensions/SiteMatrix/SiteMatrixApi.php on line 15 and defined
Comment 1 Brad Jorsch 2014-05-20 17:08:40 UTC
Reassigning to SiteMatrix, although I'll probably submit a patch for it myself in a few minutes.
Comment 2 Brad Jorsch 2014-05-20 17:11:50 UTC
Confirmed the bug is in SiteMatrix: ApiQuerySiteMatrix should not be extending ApiQueryBase if it's going to register itself in $wgAPIModules.
Comment 3 Gerrit Notification Bot 2014-05-20 17:26:44 UTC
Change 134390 had a related patch set uploaded by Anomie:
$wgAPIModules should extend ApiBase, not ApiQueryBase

https://gerrit.wikimedia.org/r/134390
Comment 4 Krinkle 2014-05-20 17:27:20 UTC
Presumably triggered as of change Ie6bf19150f1c9b619655a06a8e.
Comment 5 Gerrit Notification Bot 2014-05-20 18:08:20 UTC
Change 134390 merged by jenkins-bot:
$wgAPIModules should extend ApiBase, not ApiQueryBase

https://gerrit.wikimedia.org/r/134390
Comment 6 Brad Jorsch 2014-05-20 18:14:17 UTC
Should be in Labs momentarily. No need for a backport because Ie6bf1915 hasn't been deployed anywhere yet.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links