Last modified: 2013-12-24 17:52:46 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 T45832, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43832 - UploadBase: Call to a member function getName() on a non-object
UploadBase: Call to a member function getName() on a non-object
Status: RESOLVED DUPLICATE of bug 38222
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.21.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-10 18:18 UTC by Sam Reed (reedy)
Modified: 2013-12-24 17:52 UTC (History)
3 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-01-10 18:18:46 UTC
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
Comment 1 Sam Reed (reedy) 2013-01-10 18:21:37 UTC
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}
Comment 2 Sam Reed (reedy) 2013-01-10 18:22:12 UTC
		$localFile = $this->getLocalFile();
		$filename = $localFile->getName();

getLocalFile() may return null
Comment 3 Bryan Tong Minh 2013-12-24 17:52:46 UTC

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

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


Navigation
Links