Page MenuHomePhabricator

Warning: Invalid argument supplied for foreach() in /var/www/wiki/w/extensions/Flow/includes/Data/ObjectLocator.php on line 112
Open, Needs TriagePublic

Description

When running the phpunit tests locally, i get a notice and warning:

Flow\Tests\LinksTableTest::testGetReferencesAfterRevisionInsert with data set #3 ('{{Foo}}', array(array('createWikiReference', 'template', 'Template:Foo')))
This test printed output: Notice: Undefined index: enwiki-unittest_:flow_revision%3Adescendant:fcad9b7e0b5e090f379c60147bb0b900:4.8 in /var/www/wiki/w/extensions/Flow/includes/Data/Index/FeatureIndex.php on line 343
#0: /home/katie/src/SimpleErrorHandler/SimpleErrorHandler.php (45): reportError
#1: /home/katie/src/SimpleErrorHandler/SimpleErrorHandler.php (13): handleError
#2: /var/www/wiki/w/extensions/Flow/includes/Data/Index/FeatureIndex.php (343): error_handler
#3: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectLocator.php (89): findMulti
#4: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectLocator.php (64): findMulti
#5: /var/www/wiki/w/extensions/Flow/includes/Collection/AbstractCollection.php (143): find
#6: /var/www/wiki/w/extensions/Flow/includes/Collection/LocalCacheAbstractCollection.php (32): getAllRevisions
#7: /var/www/wiki/w/extensions/Flow/includes/Collection/LocalCacheAbstractCollection.php (120): getAllRevisions
#8: /var/www/wiki/w/extensions/Flow/includes/Model/PostRevision.php (342): getLastRevision
#9: /var/www/wiki/w/extensions/Flow/includes/Data/Index/PostRevisionTopicHistoryIndex.php (71): getRootPost
#10: /var/www/wiki/w/extensions/Flow/includes/Data/Index/PostRevisionTopicHistoryIndex.php (60): findTopicId
#11: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectManager.php (191): onAfterRemove
#12: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectManager.php (204): remove
#13: /var/www/wiki/w/extensions/Flow/includes/Data/ManagerGroup.php (97): multiRemove
#14: /var/www/wiki/w/extensions/Flow/includes/Data/ManagerGroup.php (114): multiMethod
#15: /var/www/wiki/w/extensions/Flow/tests/phpunit/PostRevisionTestCase.php (63): multiRemove
#16: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php (875): tearDown
#17: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php (648): runBare
#18: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php (783): run
#19: /var/www/wiki/w/tests/phpunit/MediaWikiTestCase.php (137): run
#20: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (779): run
#21: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (749): runTest
#22: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (709): run
#23: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (709): run
#24: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php (350): run
#25: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php (176): doRun
#26: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php (129): run
#27: /var/www/wiki/w/tests/phpunit/phpunit.php (301): main
Warning: Invalid argument supplied for foreach() in /var/www/wiki/w/extensions/Flow/includes/Data/ObjectLocator.php on line 112
#0: /home/katie/src/SimpleErrorHandler/SimpleErrorHandler.php (45): reportError
#1: /home/katie/src/SimpleErrorHandler/SimpleErrorHandler.php (13): handleError
#2: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectLocator.php (112): error_handler
#3: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectLocator.php (64): findMulti
#4: /var/www/wiki/w/extensions/Flow/includes/Collection/AbstractCollection.php (143): find
#5: /var/www/wiki/w/extensions/Flow/includes/Collection/LocalCacheAbstractCollection.php (32): getAllRevisions
#6: /var/www/wiki/w/extensions/Flow/includes/Collection/LocalCacheAbstractCollection.php (120): getAllRevisions
#7: /var/www/wiki/w/extensions/Flow/includes/Model/PostRevision.php (342): getLastRevision
#8: /var/www/wiki/w/extensions/Flow/includes/Data/Index/PostRevisionTopicHistoryIndex.php (71): getRootPost
#9: /var/www/wiki/w/extensions/Flow/includes/Data/Index/PostRevisionTopicHistoryIndex.php (60): findTopicId
#10: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectManager.php (191): onAfterRemove
#11: /var/www/wiki/w/extensions/Flow/includes/Data/ObjectManager.php (204): remove
#12: /var/www/wiki/w/extensions/Flow/includes/Data/ManagerGroup.php (97): multiRemove
#13: /var/www/wiki/w/extensions/Flow/includes/Data/ManagerGroup.php (114): multiMethod
#14: /var/www/wiki/w/extensions/Flow/tests/phpunit/PostRevisionTestCase.php (63): multiRemove
#15: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php (875): tearDown
#16: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php (648): runBare
#17: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php (783): run
#18: /var/www/wiki/w/tests/phpunit/MediaWikiTestCase.php (137): run
#19: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (779): run
#20: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (749): runTest
#21: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (709): run
#22: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php (709): run
#23: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php (350): run
#24: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php (176): doRun
#25: /var/www/wiki/w/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php (129): run
#26: /var/www/wiki/w/tests/phpunit/phpunit.php (301): main

for some tests, i get just a notice (T126601)

(could be something different or as expected in how I have Flow setup).