Page MenuHomePhabricator

UploadBase: Call to a member function getName() on a non-object
Closed, ResolvedPublic

Description

Fatal error: Call to a member function getName() on a non-object in /usr/local/apache/common-local/php-1.21wmf7/includes/upload/UploadBase.php on line 570

Will grab a stack trace


Version: 1.21.x
Severity: major

Details

Reference
bz43832

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:34 AM
bzimport set Reference to bz43832.
bzimport added a subscriber: Unknown Object (MLST).

Server: srv255
Method: POST
URL: http://commons.wikimedia.org/w/api.php
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf7/includes/upload/UploadBase.php(570): UploadBase::checkWarnings()
#1 /usr/local/apache/common-local/php-1.21wmf7/includes/api/ApiUpload.php(539): UploadBase->checkWarnings()
#2 /usr/local/apache/common-local/php-1.21wmf7/includes/api/ApiUpload.php(125): ApiUpload->getApiWarnings()
#3 /usr/local/apache/common-local/php-1.21wmf7/includes/api/ApiUpload.php(109): ApiUpload->getContextResult()
#4 /usr/local/apache/common-local/php-1.21wmf7/includes/api/ApiMain.php(825): ApiUpload->execute()
#5 /usr/local/apache/common-local/php-1.21wmf7/includes/api/ApiMain.php(372): ApiMain->executeAction()
#6 /usr/local/apache/common-local/php-1.21wmf7/includes/api/ApiMain.php(349): ApiMain->executeActionWithErrorHandling()
#7 /usr/local/apache/common-local/php-1.21wmf7/api.php(77): ApiMain->execute()
#8 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#9 {main}

		$localFile = $this->getLocalFile();
		$filename = $localFile->getName();

getLocalFile() may return null

Bryan.TongMinh wrote:

*** This bug has been marked as a duplicate of bug 38222 ***

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:25 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:21 AM