Last modified: 2014-07-30 15:21:48 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 T70697, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68697 - PHP Fatal error: Call to a member function getContentModel() on a non-object in /srv/vagrant/mediawiki/extensions/Wikibase/repo/Wikibase.hooks.php on line 1005
PHP Fatal error: Call to a member function getContentModel() on a non-object...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks: 67216
  Show dependency treegraph
 
Reported: 2014-07-27 23:33 UTC by Nemo
Modified: 2014-07-30 15:21 UTC (History)
2 users (show)

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


Attachments

Description Nemo 2014-07-27 23:33:59 UTC
Doing what in attachment 16052 [details], my unit tests for core are broken:

............................................................. 1464 / 6305 ( 23%)
............................PHP Fatal error:  Call to a member function getContentModel() on a non-object in /srv/vagrant/mediawiki/extensions/Wikibase/repo/Wikibase.hooks.php on line 1005
PHP Stack trace:
PHP   1. {main}() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:0
PHP   2. MediaWikiPHPUnitCommand::main() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
PHP   3. PHPUnit_TextUI_Command->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
PHP   4. PHPUnit_TextUI_TestRunner->doRun() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176
PHP   5. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:350
PHP   6. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
PHP   7. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
PHP   8. PHPUnit_Framework_TestSuite->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:749
PHP   9. MediaWikiTestCase->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:779
PHP  10. PHPUnit_Framework_TestCase->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
PHP  11. PHPUnit_Framework_TestResult->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
PHP  12. PHPUnit_Framework_TestCase->runBare() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
PHP  13. PHPUnit_Framework_TestCase->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:838
PHP  14. ReflectionMethod->invokeArgs() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988
PHP  15. LinkerTest->testFormatComment() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988
PHP  16. Linker::formatComment() /srv/vagrant/mediawiki/tests/phpunit/includes/LinkerTest.php:107
PHP  17. Linker::formatAutocomments() /srv/vagrant/mediawiki/includes/Linker.php:1313
PHP  18. preg_replace_callback() /srv/vagrant/mediawiki/includes/Linker.php:1384
PHP  19. Linker::{closure:/srv/vagrant/mediawiki/includes/Linker.php:1336-1382}() /srv/vagrant/mediawiki/includes/Linker.php:1384
PHP  20. wfRunHooks() /srv/vagrant/mediawiki/includes/Linker.php:1343
PHP  21. Hooks::run() /srv/vagrant/mediawiki/includes/GlobalFunctions.php:4031
PHP  22. call_user_func_array() /srv/vagrant/mediawiki/includes/Hooks.php:206
PHP  23. Wikibase\RepoHooks::onFormat() /srv/vagrant/mediawiki/includes/Hooks.php:206

Fatal error: Call to a member function getContentModel() on a non-object in /srv/vagrant/mediawiki/extensions/Wikibase/repo/Wikibase.hooks.php on line 1005

Call Stack:
    0.0005     253432   1. {main}() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:0
    0.6169   21180376   2. MediaWikiPHPUnitCommand::main() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
    0.6170   21192888   3. PHPUnit_TextUI_Command->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
   15.4408  105467136   4. PHPUnit_TextUI_TestRunner->doRun() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176
   15.4527  105782824   5. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:350
  137.2308  210832416   6. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
  138.3389  211054672   7. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
  140.1260  211371040   8. PHPUnit_Framework_TestSuite->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:749
  140.1260  211371040   9. MediaWikiTestCase->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:779
  140.1261  211371184  10. PHPUnit_Framework_TestCase->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
  140.1261  211371184  11. PHPUnit_Framework_TestResult->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
  140.1264  211372128  12. PHPUnit_Framework_TestCase->runBare() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
  140.2836  211442856  13. PHPUnit_Framework_TestCase->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:838
  140.2836  211443968  14. ReflectionMethod->invokeArgs() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988
  140.2836  211444008  15. LinkerTest->testFormatComment() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988
  140.2837  211444688  16. Linker::formatComment() /srv/vagrant/mediawiki/tests/phpunit/includes/LinkerTest.php:107
  140.2837  211444888  17. Linker::formatAutocomments() /srv/vagrant/mediawiki/includes/Linker.php:1313
  140.2837  211446032  18. preg_replace_callback() /srv/vagrant/mediawiki/includes/Linker.php:1384
  140.2837  211447440  19. Linker::{closure:/srv/vagrant/mediawiki/includes/Linker.php:1336-1382}() /srv/vagrant/mediawiki/includes/Linker.php:1384
  140.2838  211448368  20. wfRunHooks() /srv/vagrant/mediawiki/includes/Linker.php:1343
  140.2838  211448416  21. Hooks::run() /srv/vagrant/mediawiki/includes/GlobalFunctions.php:4031
  140.2838  211449912  22. call_user_func_array() /srv/vagrant/mediawiki/includes/Hooks.php:206
  140.2838  211450816  23. Wikibase\RepoHooks::onFormat() /srv/vagrant/mediawiki/includes/Hooks.php:206
Comment 1 Gerrit Notification Bot 2014-07-30 10:35:40 UTC
Change 150512 had a related patch set uploaded by Thiemo Mättig (WMDE):
wgTitle can be null in rare edge cases, e.g. in tests

https://gerrit.wikimedia.org/r/150512
Comment 2 Gerrit Notification Bot 2014-07-30 14:24:54 UTC
Change 150512 merged by Jeroen De Dauw:
wgTitle can be null in rare edge cases, e.g. in tests

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

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


Navigation
Links