Page MenuHomePhabricator

PHP Notice: Undefined index: tasks
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Notice: Undefined index: tasks
exception.trace
from /srv/mediawiki/php-1.41.0-wmf.27/extensions/GrowthExperiments/maintenance/listTaskCounts.php(125)
#0 /srv/mediawiki/php-1.41.0-wmf.27/extensions/GrowthExperiments/maintenance/listTaskCounts.php(125): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.41.0-wmf.27/extensions/GrowthExperiments/maintenance/listTaskCounts.php(65): GrowthExperiments\Maintenance\ListTaskCounts->getStats(array, array)
#2 /srv/mediawiki/php-1.41.0-wmf.27/maintenance/includes/MaintenanceRunner.php(703): GrowthExperiments\Maintenance\ListTaskCounts->execute()
#3 /srv/mediawiki/php-1.41.0-wmf.27/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run()
#4 /srv/mediawiki/multiversion/MWScript.php(159): require_once(string)
#5 {main}
Impact
  • there are 174 errors in 1 day - link to the error in logstash
  • the Console also displays the error: task preview data unavailable: Invalid task type(s): initSuggestedTasks
  • there are quite few wikis where Suggested edit tasks are not available. A user with enabled Special:Homepage still sees the tasks filters (empty) and topic selections. This might confuse users - they can select some topics, but not task difficulty filters.

The screenshot from tywiki Special:Homrpage:

Screen Shot 2023-09-21 at 4.37.08 PM.png (1×1 px, 189 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Urbanecm_WMF triaged this task as High priority.
Urbanecm_WMF subscribed.

This happens very frequently. A recent fallout from a change to listTaskCounts.php...

Change 960032 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] listTaskCounts: Do not expect tasks key to be present

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

Change 960032 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] listTaskCounts: Do not expect tasks key to be present

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

Change 959987 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@wmf/1.41.0-wmf.27] listTaskCounts: Do not expect tasks key to be present

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

Change 959987 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.41.0-wmf.27] listTaskCounts: Do not expect tasks key to be present

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

Mentioned in SAL (#wikimedia-operations) [2023-09-25T13:26:03Z] <urbanecm@deploy2002> Started scap: Backport for [[gerrit:959987|listTaskCounts: Do not expect tasks key to be present (T347120)]], [[gerrit:959993|AddImageFeedbackHandler: Add missing parameters (T346277)]], [[gerrit:960552|Enable Parsoid support for Kartographer on enwikivoyage (T342871)]]

Mentioned in SAL (#wikimedia-operations) [2023-09-25T13:38:33Z] <urbanecm@deploy2002> urbanecm and ihurbain: Backport for [[gerrit:959987|listTaskCounts: Do not expect tasks key to be present (T347120)]], [[gerrit:959993|AddImageFeedbackHandler: Add missing parameters (T346277)]], [[gerrit:960552|Enable Parsoid support for Kartographer on enwikivoyage (T342871)]] synced to the testservers mwdebug1001.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug2002.codfw.wmnet, mwdebug1002.eqiad.w

Mentioned in SAL (#wikimedia-operations) [2023-09-25T14:04:38Z] <urbanecm@deploy2002> Finished scap: Backport for [[gerrit:959987|listTaskCounts: Do not expect tasks key to be present (T347120)]], [[gerrit:959993|AddImageFeedbackHandler: Add missing parameters (T346277)]], [[gerrit:960552|Enable Parsoid support for Kartographer on enwikivoyage (T342871)]] (duration: 38m 35s)

The errors have stopped after the fix was deployed logstash link.