Page MenuHomePhabricator

PHP Fatal error: Call to a member function getCanonicalServer() on a non-object
Closed, ResolvedPublic

Description

Tests seem to be broken...

17:24:33 ............................................................PHP Fatal error:  Call to a member function getCanonicalServer() on a non-object in /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/extensions/MassMessage/includes/MassMessage.php on line 88
17:24:33 PHP Stack trace:
17:24:33 PHP   1. {main}() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/tests/phpunit/phpunit.php:0
17:24:33 PHP   2. PHPUnit_TextUI_Command::main() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/tests/phpunit/phpunit.php:274
17:24:33 PHP   3. PHPUnit_TextUI_Command->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/TextUI/Command.php:100
17:24:33 PHP   4. PHPUnit_TextUI_TestRunner->doRun() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/TextUI/Command.php:149
17:24:33 PHP   5. PHPUnit_Framework_TestSuite->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:440
17:24:33 PHP   6. PHPUnit_Framework_TestSuite->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestSuite.php:747
17:24:33 PHP   7. PHPUnit_Framework_TestSuite->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestSuite.php:747
17:24:33 PHP   8. PHPUnit_Framework_TestSuite->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestSuite.php:747
17:24:33 PHP   9. PHPUnit_Framework_TestSuite->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestSuite.php:747
17:24:33 PHP  10. MediaWikiTestCase->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestSuite.php:747
17:24:33 PHP  11. PHPUnit_Framework_TestCase->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/tests/phpunit/MediaWikiTestCase.php:389
17:24:33 PHP  12. PHPUnit_Framework_TestResult->run() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestCase.php:724
17:24:33 PHP  13. PHPUnit_Framework_TestCase->runBare() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestResult.php:612
17:24:33 PHP  14. PHPUnit_Framework_TestCase->runTest() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestCase.php:768
17:24:33 PHP  15. ReflectionMethod->invokeArgs() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestCase.php:909
17:24:33 PHP  16. MassMessageTargetsTest->testGetParserFunctionTargets() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/vendor/phpunit/phpunit/src/Framework/TestCase.php:909
17:24:33 PHP  17. MassMessageTestCase::updatePage() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/extensions/MassMessage/tests/phpunit/MassMessageTargetsTest.php:61
17:24:33 PHP  18. WikiPage->doEditContent() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/extensions/MassMessage/tests/phpunit/MassMessageTestCase.php:47
17:24:33 PHP  19. WikiPage->prepareContentForEdit() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/page/WikiPage.php:1641
17:24:33 PHP  20. AbstractContent->getParserOutput() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/page/WikiPage.php:2124
17:24:33 PHP  21. WikitextContent->fillParserOutput() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/content/AbstractContent.php:497
17:24:33 PHP  22. Parser->parse() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/content/WikitextContent.php:331
17:24:33 PHP  23. Parser->internalParse() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/parser/Parser.php:439
17:24:33 PHP  24. Parser->replaceVariables() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/parser/Parser.php:1245
17:24:33 PHP  25. PPFrame_DOM->expand() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/parser/Parser.php:2885
17:24:33 PHP  26. Parser->braceSubstitution() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/parser/Preprocessor_DOM.php:1175
17:24:33 PHP  27. Parser->callParserFunction() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/parser/Parser.php:3071
17:24:33 PHP  28. call_user_func_array() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/parser/Parser.php:3344
17:24:33 PHP  29. MassMessageHooks::outputParserFunction() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/includes/parser/Parser.php:3344
17:24:33 PHP  30. MassMessage::processPFData() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/extensions/MassMessage/MassMessage.hooks.php:33
17:24:33 PHP  31. MassMessage::getDBName() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/extensions/MassMessage/includes/MassMessage.php:135
17:24:33 PHP  32. MassMessage::getDatabases() /mnt/jenkins-workspace/workspace/mwext-testextension-php55/src/extensions/MassMessage/includes/MassMessage.php:107

Seen on https://gerrit.wikimedia.org/r/#/c/303201/

Event Timeline

Reedy created this task.Aug 5 2016, 5:26 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 5 2016, 5:26 PM

Change 305437 had a related patch set uploaded (by Legoktm):
Don't fatal if a wiki is not in WikiMap

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

Change 305437 merged by jenkins-bot:
Update bootstrapping of $wgConf in unit tests

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

Legoktm closed this task as Resolved.Aug 18 2016, 9:53 AM