Page MenuHomePhabricator

TypeError: Argument 3 passed to GrowthExperiments\NewcomerTasks\TemplateBasedTaskSubmissionHandler must be of the type integer
Closed, DuplicatePublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   TypeError: Argument 3 passed to GrowthExperiments\NewcomerTasks\TemplateBasedTaskSubmissionHandler::validate() must be of the type integer, null given, called in /srv/mediawiki/php-1.39.0-wmf.5/extensions/GrowthExperiments/incl
exception.trace
from /srv/mediawiki/php-1.39.0-wmf.5/extensions/GrowthExperiments/includes/NewcomerTasks/TemplateBasedTaskSubmissionHandler.php(19)
#0 /srv/mediawiki/php-1.39.0-wmf.5/extensions/GrowthExperiments/includes/VisualEditorHooks.php(88): GrowthExperiments\NewcomerTasks\TemplateBasedTaskSubmissionHandler->validate(MediaWiki\Page\PageIdentityValue, User, NULL, array)
#1 /srv/mediawiki/php-1.39.0-wmf.5/includes/HookContainer/HookContainer.php(160): GrowthExperiments\VisualEditorHooks->onVisualEditorApiVisualEditorEditPreSave(MediaWiki\Page\PageIdentityValue, User, string, array, array, array)
#2 /srv/mediawiki/php-1.39.0-wmf.5/extensions/VisualEditor/includes/VisualEditorHookRunner.php(54): MediaWiki\HookContainer\HookContainer->run(string, array, array)
#3 /srv/mediawiki/php-1.39.0-wmf.5/extensions/VisualEditor/includes/ApiVisualEditorEdit.php(444): MediaWiki\Extension\VisualEditor\VisualEditorHookRunner->onVisualEditorApiVisualEditorEditPreSave(MediaWiki\Page\PageIdentityValue, User, string, array, array, array)
#4 /srv/mediawiki/php-1.39.0-wmf.5/includes/api/ApiMain.php(1897): MediaWiki\Extension\VisualEditor\ApiVisualEditorEdit->execute()
#5 /srv/mediawiki/php-1.39.0-wmf.5/includes/api/ApiMain.php(871): ApiMain->executeAction()
#6 /srv/mediawiki/php-1.39.0-wmf.5/includes/api/ApiMain.php(842): ApiMain->executeActionWithErrorHandling()
#7 /srv/mediawiki/php-1.39.0-wmf.5/api.php(90): ApiMain->execute()
#8 /srv/mediawiki/php-1.39.0-wmf.5/api.php(45): wfApiMain()
#9 /srv/mediawiki/w/api.php(3): require(string)
#10 {main}
Impact

Two errors during 24 hours

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kostajh triaged this task as Medium priority.Apr 6 2022, 10:46 AM

Change 788434 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[mediawiki/extensions/GrowthExperiments@master] Pass fallback baseRevId to SubmissionHandler::handle and SubmissionHandler::validate

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

Change 788434 abandoned by MewOphaswongse:

[mediawiki/extensions/GrowthExperiments@master] Pass fallback baseRevId to SubmissionHandler::handle and SubmissionHandler::validate

Reason:

The error only occurred on Apr 6 and hasn't occurred since.

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

Declining as the error only occurred on April 6 and hasn't occurred since