Last modified: 2014-09-26 20:25:57 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 T70713, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68713 - [InterwikiMagic] PHP Fatal error: Call to a member function fetch_array() on a non-object
[InterwikiMagic] PHP Fatal error: Call to a member function fetch_array() on...
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Jack Phoenix
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-28 07:39 UTC by Nemo
Modified: 2014-09-26 20:25 UTC (History)
0 users

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


Attachments

Description Nemo 2014-07-28 07:39:07 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
Comment 1 Gerrit Notification Bot 2014-07-31 10:35:33 UTC
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
Comment 2 Jack Phoenix 2014-07-31 10:39:27 UTC
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.
Comment 3 Nemo 2014-07-31 12:12:30 UTC
(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.
Comment 4 Andre Klapper 2014-09-01 13:46:38 UTC
(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?
Comment 5 Gerrit Notification Bot 2014-09-26 20:05:38 UTC
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
Comment 6 Jack Phoenix 2014-09-26 20:06:39 UTC
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.
Comment 7 Nemo 2014-09-26 20:25:57 UTC
(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.

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


Navigation
Links