Last modified: 2013-12-04 19:54:00 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 T58915, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56915 - Access to undeclared static property: <::$instance at on line 340
Access to undeclared static property: <::$instance at on line 340
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-11 22:57 UTC by Sam Reed (reedy)
Modified: 2013-12-04 19:54 UTC (History)
6 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-11-11 22:57:02 UTC
[11-Nov-2013 22:20:25] Fatal error: Access to undeclared static property: ::$instance at  on line 340
Server: mw1054
Method: GET
URL: http://commons.wikimedia.org/w/index.php?title=Special%3AListFiles&limit=500&user=&sort=img_size&asc=&desc=1&uselang=de
Backtrace:
#0 (340): ::()
#1 /usr/local/apache/common-local/php-1.23wmf3/includes/filebackend/FSFile.php(114): ::()
#2 /usr/local/apache/common-local/php-1.23wmf3/includes/filebackend/FileBackendStore.php(701): FSFile->getProps()
#3 /usr/local/apache/common-local/php-1.23wmf3/includes/filebackend/FileBackendMultiWrite.php(563): FileBackendStore->getFileProps(Array)
#4 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/FileRepo.php(1422): FileBackendMultiWrite->getFileProps(Array)
#5 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(282): FileRepo->getFileProps('mwrepo://local/...')
#6 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(515): LocalFile->loadFromFile()
#7 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(496): LocalFile->upgradeRow()
#8 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(455): LocalFile->maybeUpgradeRow()
#9 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(349): LocalFile->loadFromRow(Object(stdClass))
#10 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(465): LocalFile->loadFromDB()
#11 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(729): LocalFile->load()
#12 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/FileRepo.php(366): LocalFile->exists()
#13 tions/(0): FileRepo->findFile()
#14 /usr/local/apache/common-local/php-1.23wmf3/includes/Pager.php(1026): ->Special:Contributions/('thumb', 'Zentralbiblioth...')
#15 /usr/local/apache/common-local/php-1.23wmf3/includes/Pager.php(435): TablePager->formatRow(Object(stdClass))
#16 독일 마르크(16): IndexPager->getBody()
#17 /usr/local/apache/common-local/php-1.23wmf3/includes/SpecialPage.php(631): BGO->DDM(NULL)
#18 /usr/local/apache/common-local/php-1.23wmf3/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#19 /usr/local/apache/common-local/php-1.23wmf3/includes/Wiki.php(298): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#20 /usr/local/apache/common-local/php-1.23wmf3/includes/Wiki.php(596): MediaWiki->performRequest()
#21 /usr/local/apache/common-local/php-1.23wmf3/includes/Wiki.php(460): MediaWiki->main()
#22 /usr/local/apache/common-local/php-1.23wmf3/index.php(49): MediaWiki->run()
#23 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#24 {main}
--
[11-Nov-2013 22:48:18] Fatal error: Access to undeclared static property: <::$instance at  on line 340
Server: mw1030
Method: GET
URL: http://commons.wikimedia.org/w/index.php?title=Special%3AListFiles&limit=250&user=&offset=527888912&sort=img_size&asc=&desc=1&uselang=de
Backtrace:
#0 (340): <::()
#1 /usr/local/apache/common-local/php-1.23wmf3/includes/filebackend/FSFile.php(114): <::()
#2 /usr/local/apache/common-local/php-1.23wmf3/includes/filebackend/FileBackendStore.php(701): FSFile->getProps()
#3 /usr/local/apache/common-local/php-1.23wmf3/includes/filebackend/FileBackendMultiWrite.php(563): FileBackendStore->getFileProps(Array)
#4 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/FileRepo.php(1422): FileBackendMultiWrite->getFileProps(Array)
#5 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(282): FileRepo->getFileProps('mwrepo://local/...')
#6 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(515): LocalFile->loadFromFile()
#7 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(496): LocalFile->upgradeRow()
#8 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(455): LocalFile->maybeUpgradeRow()
#9 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(349): LocalFile->loadFromRow(Object(stdClass))
#10 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(465): LocalFile->loadFromDB()
#11 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/file/LocalFile.php(729): LocalFile->load()
#12 /usr/local/apache/common-local/php-1.23wmf3/includes/filerepo/FileRepo.php(366): LocalFile->exists()
#13(1973): FileRepo->findFile()
#14 /usr/local/apache/common-local/php-1.23wmf3/includes/Pager.php(1026): ->('thumb', 'Zentralbiblioth...')
#15 /usr/local/apache/common-local/php-1.23wmf3/includes/Pager.php(435): TablePager->formatRow(Object(stdClass))
#16 ▒(0): IndexPager->getBody()
#17 /usr/local/apache/common-local/php-1.23wmf3/includes/SpecialPage.php(631): ->▒▒▒(NULL)
#18 /usr/local/apache/common-local/php-1.23wmf3/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#19 /usr/local/apache/common-local/php-1.23wmf3/includes/Wiki.php(298): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#20 /usr/local/apache/common-local/php-1.23wmf3/includes/Wiki.php(596): MediaWiki->performRequest()
#21 /usr/local/apache/common-local/php-1.23wmf3/includes/Wiki.php(460): MediaWiki->main()
#22 /usr/local/apache/common-local/php-1.23wmf3/index.php(49): MediaWiki->run()
#23 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#24 {main}
Comment 1 Umherirrender 2013-11-12 16:35:58 UTC
That is MimeMagic::$instance which is a singleton and instanced in MimeMagic::singleton().
Depending on the line number the null check fails. Need php a static to be initialized before use in condition? New php version?
Comment 2 Gerrit Notification Bot 2013-11-23 00:49:44 UTC
Change 97164 had a related patch set uploaded by Aaron Schulz:
Clean up MimeMagic singleton handling

https://gerrit.wikimedia.org/r/97164
Comment 3 Gerrit Notification Bot 2013-11-26 20:15:14 UTC
Change 97164 merged by jenkins-bot:
Clean up MimeMagic singleton handling

https://gerrit.wikimedia.org/r/97164
Comment 4 db [inactive,noenotif] 2013-12-04 19:54:00 UTC
Clean up of code was merged, so hopefully this should not happen anymore.

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


Navigation
Links