Page MenuHomePhabricator

showJobs.php broken
Closed, ResolvedPublic

Description

php maintenance/showJobs.php
PHP Fatal error: Call to a member function selectField() on a non-object in /var/www/mediawiki/includes/job/JobQueueDB.php on line 93


Version: 1.21.x
Severity: major

Details

Reference
bz43919

Event Timeline

bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz43919.
Reedy added a comment.Jan 13 2013, 4:16 PM

/**

  • @return Array (DatabaseBase, ScopedCallback)
	 */

protected function getSlaveDB() {

		return $this->getDB( DB_SLAVE );

}

...

		$dbr = $this->getSlaveDB();
		$size = (int)$dbr->selectField( 'job', 'COUNT(*)',
			array( 'job_cmd' => $this->type, 'job_token' => '' ),
			__METHOD__
		);

https://gerrit.wikimedia.org/r/43686

Reopening, since the change hasn't been merged yet.

Change-Id: I99afd66a3ad1700f1cdac4edea31edf740ec1656