Page MenuHomePhabricator

Special:NewcomerTasksInfo: Error: Call to undefined method Status::getTotalCount()
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   Error: Call to undefined method Status::getTotalCount()
exception.trace
from /srv/mediawiki/php-1.36.0-wmf.37/extensions/GrowthExperiments/includes/NewcomerTasks/SuggestionsInfo.php(75)
#0 /srv/mediawiki/php-1.36.0-wmf.37/extensions/GrowthExperiments/includes/Specials/SpecialNewcomerTasksInfo.php(36): GrowthExperiments\NewcomerTasks\SuggestionsInfo->getInfo()
#1 /srv/mediawiki/php-1.36.0-wmf.37/includes/libs/objectcache/wancache/WANObjectCache.php(1604): GrowthExperiments\Specials\SpecialNewcomerTasksInfo->GrowthExperiments\Specials\{closure}(boolean, integer, array, NULL, array)
#2 /srv/mediawiki/php-1.36.0-wmf.37/includes/libs/objectcache/wancache/WANObjectCache.php(1432): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#3 /srv/mediawiki/php-1.36.0-wmf.37/extensions/GrowthExperiments/includes/Specials/SpecialNewcomerTasksInfo.php(41): WANObjectCache->getWithSetCallback(string, integer, Closure)
#4 /srv/mediawiki/php-1.36.0-wmf.37/includes/specialpage/SpecialPage.php(646): GrowthExperiments\Specials\SpecialNewcomerTasksInfo->execute(NULL)
#5 /srv/mediawiki/php-1.36.0-wmf.37/includes/specialpage/SpecialPageFactory.php(1382): SpecialPage->run(NULL)
#6 /srv/mediawiki/php-1.36.0-wmf.37/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#7 /srv/mediawiki/php-1.36.0-wmf.37/includes/MediaWiki.php(913): MediaWiki->performRequest()
#8 /srv/mediawiki/php-1.36.0-wmf.37/includes/MediaWiki.php(546): MediaWiki->main()
#9 /srv/mediawiki/php-1.36.0-wmf.37/index.php(53): MediaWiki->run()
#10 /srv/mediawiki/php-1.36.0-wmf.37/index.php(46): wfIndexMain()
#11 /srv/mediawiki/w/index.php(3): require(string)
#12 {main}
Impact
Notes

Noticed while investigating T279646: Selecting "Expand short articles" with any other filter on Danish Wikipedia leads to zero result.

Special:NewcomerTasksInfo is broken when the search query is too long, while the maintenance script yields an understandable error in that case:

[urbanecm@mwmaint1002 ~]$ mwscript extensions/GrowthExperiments/maintenance/listTaskCounts.php --wiki=dawiki
Search request is longer than the maximum allowed length. (Actual: 465, allowed: 300, not counting articletopic)

Details

Request ID
70f9d3d5-66b0-4386-b654-1116b298334d
Request URL
https://da.wikipedia.org/wiki/Speciel:NewcomerTasksInfo

Event Timeline

Krinkle triaged this task as High priority.Apr 14 2021, 7:15 PM
Krinkle updated the task description. (Show Details)
Krinkle edited Stack Trace. (Show Details)
Krinkle moved this task from Untriaged to Apr 2021 on the Wikimedia-production-error board.
Krinkle added a project: GrowthExperiments.

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

[mediawiki/extensions/GrowthExperiments@master] SuggestionsInfo: Basic error handling

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

Change 681347 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] SuggestionsInfo: Basic error handling

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

kostajh added a subscriber: Etonkovidova.

@Etonkovidova for QA I think you could reproduce this by using a large number of templates on a beta wiki's MediaWiki:NewcomerTasks.json to try to reproduce the error from T279646: Selecting "Expand short articles" with any other filter on Danish Wikipedia leads to zero result, and then visiting Special:NewcomerTasksInfo should show -1 for task counts where search has failed, instead of the error message from this task's description.