Error
- service.version: 1.41.0-wmf.20
- trace.id: 87477e69-9e3a-47ac-9d81-9c4e7a76c56f
- Find trace.id in Logstash
[{reqId}] {exception_url} TypeError: Argument 2 passed to GrowthExperiments\MentorDashboard\PersonalizedPraise\PraiseworthyConditions::__construct() must be of the type int, string given, called in /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExper
from /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExperiments/includes/MentorDashboard/PersonalizedPraise/PraiseworthyConditions.php(28) #0 /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExperiments/includes/MentorDashboard/PersonalizedPraise/PersonalizedPraiseSettings.php(110): GrowthExperiments\MentorDashboard\PersonalizedPraise\PraiseworthyConditions->__construct(integer, string, integer) #1 /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExperiments/includes/MentorDashboard/PersonalizedPraise/PersonalizedPraiseSettings.php(81): GrowthExperiments\MentorDashboard\PersonalizedPraise\PersonalizedPraiseSettings->getPraiseworthyConditions(User) #2 /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExperiments/includes/MentorDashboard/Modules/PersonalizedPraise.php(145): GrowthExperiments\MentorDashboard\PersonalizedPraise\PersonalizedPraiseSettings->toArray(User) #3 /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExperiments/includes/DashboardModule/DashboardModule.php(181): GrowthExperiments\MentorDashboard\Modules\PersonalizedPraise->getJsConfigVars() #4 /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExperiments/includes/DashboardModule/DashboardModule.php(196): GrowthExperiments\DashboardModule\DashboardModule->outputDependencies() #5 /srv/mediawiki/php-1.41.0-wmf.20/extensions/GrowthExperiments/includes/Specials/SpecialMentorDashboard.php(196): GrowthExperiments\DashboardModule\DashboardModule->render(string) #6 /srv/mediawiki/php-1.41.0-wmf.20/includes/specialpage/SpecialPage.php(701): GrowthExperiments\Specials\SpecialMentorDashboard->execute(NULL) #7 /srv/mediawiki/php-1.41.0-wmf.20/includes/specialpage/SpecialPageFactory.php(1564): SpecialPage->run(NULL) #8 /srv/mediawiki/php-1.41.0-wmf.20/includes/MediaWiki.php(344): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext) #9 /srv/mediawiki/php-1.41.0-wmf.20/includes/MediaWiki.php(948): MediaWiki->performRequest() #10 /srv/mediawiki/php-1.41.0-wmf.20/includes/MediaWiki.php(597): MediaWiki->main() #11 /srv/mediawiki/php-1.41.0-wmf.20/index.php(50): MediaWiki->run() #12 /srv/mediawiki/php-1.41.0-wmf.20/index.php(46): wfIndexMain() #13 /srv/mediawiki/w/index.php(3): require(string) #14 {main}
Notes
This error can be triggered by saving an empty string under "Edits within a time frame" in the Personalized praise module settings (settings filled as on the screenshot below):
Mentor dashboard is fully inaccessible when this happens, but it doesn't happen assuming users fill in integers to the form :-).