Last modified: 2014-09-26 20:25:57 UTC
PHP Fatal error: Call to a member function fetch_array() on a non-object in /srv/vagrant/mediawiki/includes/db/DatabaseMysqli.php on line 195 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. LinksUpdateTest->testUpdate_iwlinks() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988 PHP 16. Title::makeTitleSafe() /srv/vagrant/mediawiki/tests/phpunit/includes/LinksUpdateTest.php:143 PHP 17. Title->secureAndSplit() /srv/vagrant/mediawiki/includes/Title.php:501 PHP 18. MediaWikiTitleCodec->splitTitleString() /srv/vagrant/mediawiki/includes/Title.php:3284 PHP 19. Interwiki::isValidInterwiki() /srv/vagrant/mediawiki/includes/title/MediaWikiTitleCodec.php:271 PHP 20. Interwiki::fetch() /srv/vagrant/mediawiki/includes/interwiki/Interwiki.php:72 PHP 21. Interwiki::load() /srv/vagrant/mediawiki/includes/interwiki/Interwiki.php:99 PHP 22. wfRunHooks() /srv/vagrant/mediawiki/includes/interwiki/Interwiki.php:195 PHP 23. Hooks::run() /srv/vagrant/mediawiki/includes/GlobalFunctions.php:4031 PHP 24. call_user_func_array() /srv/vagrant/mediawiki/includes/Hooks.php:207 PHP 25. wfShoutWikiInterwikiMagic() /srv/vagrant/mediawiki/includes/Hooks.php:207 PHP 26. DatabaseMysqlBase->fetchRow() /srv/vagrant/mediawiki/extensions/InterwikiMagic/InterwikiMagic.php:57 PHP 27. DatabaseMysqli->mysqlFetchArray() /srv/vagrant/mediawiki/includes/db/DatabaseMysqlBase.php:247
Change 150782 had a related patch set uploaded by Jack Phoenix: Attempting to fix a PHP fatal under some special circumstances. https://gerrit.wikimedia.org/r/150782
Can you try out the linked patch and see if it fixes the issue? The stack trace has mentions of both PHPUnit and Vagrant, both of which I have very little experience with, so it's entirely possible that those have something to do with this. Furthermore, the extension assumes that $wgSharedDB is set to something valid; an assumption not necessarily sane in most normal environments, but InterwikiMagic was written for wiki farms that use shared tables and it doesn't really have any other possible use cases. Finally, you might also be interested in https://gerrit.wikimedia.org/r/#/c/147755/ , which, if and hopefully when merged, obsoletes InterwikiMagic by integrating its functionality in the Interwiki extension.
(In reply to Jack Phoenix from comment #2) > Can you try out the linked patch and see if it fixes the issue? I had to rebuild the instance and I'm not done yet, so it will take some days.
(In reply to Nemo from comment #3) > I had to rebuild the instance and I'm not done yet, so it will take some > days. Any news/updates?
Change 150782 abandoned by Jack Phoenix: Attempting to fix a PHP fatal under some special circumstances. Reason: The ShoutWiki Interwiki Magic extension is now obsolete, as it has been integrated into the Interwiki extension; see bug #68241 and Change-Id: I54c072c65f10dd0ad5f815c2649e7ce9ed1e7b58 https://gerrit.wikimedia.org/r/150782
The ShoutWiki Interwiki Magic extension is now obsolete, as it has been integrated into the Interwiki extension; see bug #68241 and Change-Id: I54c072c65f10dd0ad5f815c2649e7ce9ed1e7b58 If the problem still persists with the Interwiki extension, reopen this bug or file a new one under the Interwiki (extension) component.
(In reply to Jack Phoenix from comment #6) > The ShoutWiki Interwiki Magic extension is now obsolete, as it has been > integrated into the Interwiki extension Please empty the InterwikiMagic repo then. Thanks.