Page MenuHomePhabricator

Return value of class@anonymous::getTaskTypes() must be of the type array, null returned
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.37.0-wmf.1

message
Return value of class@anonymous::getTaskTypes() must be of the type array, null returned
/srv/mediawiki/multiversion/MWScript.php extensions/GrowthExperiments/maintenance/listTaskCounts.php --wiki=frwiktionary --tasktype link-recommendation --topictype ores --statsd --output none
trace
from /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/ConfigurationLoader/ConfigurationLoaderTrait.php(55)
#0 /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/maintenance/listTaskCounts.php(83): class@anonymous

Related errors:

PHP Warning: array_merge(): Argument #1 is not an array
from /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/OresTopicTrait.php(78)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/OresTopicTrait.php(78): array_merge(StatusValue, array)
#2 /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/ConfigurationLoader/ConfigurationLoaderTrait.php(49): class@anonymous
PHP Warning: array_map(): Argument #2 should be an array
from /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/ConfigurationLoader/ConfigurationLoaderTrait.php(55)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/ConfigurationLoader/ConfigurationLoaderTrait.php(55): array_map(Closure, NULL)
#2 /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/maintenance/listTaskCounts.php(83): class@anonymous
PHP Warning: array_combine() expects parameter 1 to be array, null given
from /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/ConfigurationLoader/ConfigurationLoaderTrait.php(55)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/includes/NewcomerTasks/ConfigurationLoader/ConfigurationLoaderTrait.php(55): array_combine(NULL, NULL)
#2 /srv/mediawiki/php-1.37.0-wmf.1/extensions/GrowthExperiments/maintenance/listTaskCounts.php(83): class@anonymous

Impact

Logspam

Notes

Newcomer tasks doesn't exist for frwiktionary, but we have code that assumes it could exist. We should clean that up.

Event Timeline

kostajh triaged this task as Medium priority.Apr 20 2021, 9:02 AM
kostajh created this task.

Change 681348 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/GrowthExperiments@master] listTaskCounts: Check if suggested edits is enabled

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

Change 681348 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] OresTopicTrait: Check loadTaskTypes result before using

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

Etonkovidova closed this task as Resolved.EditedApr 30 2021, 11:06 PM
Etonkovidova subscribed.

Checked in wmr.3 - there were no more such errors reported.