Page MenuHomePhabricator

Catchable fatal error: Argument 1 passed to ApiQueryBase::__construct() must be an instance of ApiQuery, instance of ApiMain given
Closed, ResolvedPublic

Description

[2014-05-29 18:19:46] Catchable fatal error: Argument 1 passed to ApiQueryBase::construct() must be an instance of ApiQuery, instance of ApiMain given, called in /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiModuleManager.php on line 107 and defined at /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiQueryBase.php on line 43
Server: mw1125
Method: GET
URL: http://en.wikipedia.org/w/api.php
Backtrace:
#0 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiQueryBase.php(43): ApiQueryBase::
construct()
#1 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiModuleManager.php(107): ApiQueryBase->__construct(Object(ApiMain), 'liststudents')
#2 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiMain.php(1292): ApiModuleManager->getModule('liststudents')
#3 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiMain.php(1271): ApiMain->reallyMakeHelpMsg()
#4 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiMain.php(678): ApiMain->makeHelpMsg()
#5 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiMain.php(407): ApiMain->substituteResultWithError(Object(UsageException))
#6 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiMain.php(365): ApiMain->handleException(Object(UsageException))
#7 /usr/local/apache/common-local/php-1.24wmf6/includes/api/ApiMain.php(334): ApiMain->executeActionWithErrorHandling()
#8 /usr/local/apache/common-local/php-1.24wmf6/api.php(85): ApiMain->execute()
#9 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')
#10 {main}


Version: master
Severity: normal

Details

Reference
bz65906

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:15 AM
bzimport set Reference to bz65906.

Bug is in EducationProgram, same issue as was reported for SiteMatrix in bug 65537.

Gerrit change 136159 (already merged) should fix it.

Fix backported and confirmed.