Error
- mwversion: 1.39.0-wmf.1
- reqId: 810de6b3-b19d-4397-92a9-fe4fb0551b76
- Find reqId in Logstash
[{reqId}] {exception_url} PHP Warning: preg_match() expects parameter 2 to be string, array given
from /srv/mediawiki/php-1.39.0-wmf.1/includes/libs/ParamValidator/TypeDef/IntegerDef.php(26) #0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array) #1 /srv/mediawiki/php-1.39.0-wmf.1/includes/libs/ParamValidator/TypeDef/IntegerDef.php(26): preg_match(string, array) #2 /srv/mediawiki/php-1.39.0-wmf.1/includes/libs/ParamValidator/ParamValidator.php(597): Wikimedia\ParamValidator\TypeDef\IntegerDef->validate(string, array, array, array) #3 /srv/mediawiki/php-1.39.0-wmf.1/includes/libs/ParamValidator/ParamValidator.php(551): Wikimedia\ParamValidator\ParamValidator->validateValue(string, array, array, array) #4 /srv/mediawiki/php-1.39.0-wmf.1/includes/Rest/Validator/Validator.php(108): Wikimedia\ParamValidator\ParamValidator->getValue(string, array, array) #5 /srv/mediawiki/php-1.39.0-wmf.1/includes/Rest/Handler.php(184): MediaWiki\Rest\Validator\Validator->validateParams(array) #6 /srv/mediawiki/php-1.39.0-wmf.1/includes/Rest/Router.php(405): MediaWiki\Rest\Handler->validate(MediaWiki\Rest\Validator\Validator) #7 /srv/mediawiki/php-1.39.0-wmf.1/includes/Rest/Router.php(338): MediaWiki\Rest\Router->executeHandler(GrowthExperiments\Rest\Handler\MenteesHandler) #8 /srv/mediawiki/php-1.39.0-wmf.1/includes/Rest/EntryPoint.php(167): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals) #9 /srv/mediawiki/php-1.39.0-wmf.1/includes/Rest/EntryPoint.php(132): MediaWiki\Rest\EntryPoint->execute() #10 /srv/mediawiki/php-1.39.0-wmf.1/rest.php(31): MediaWiki\Rest\EntryPoint::main() #11 /srv/mediawiki/w/rest.php(3): require(string) #12 {main}
Impact
Moderate level of logspam during train deployment. Noticed during T300203: 🧪🚂 Trainsperiment Week: 1.39.0-wmf.1, 1.39.0-wmf.2, 1.39.0-wmf.3, 1.39.0-wmf.4 deployment blockers but not an immediate blocker.
Special:MentorDashboard's mentee overview module was not working, as it called the API endpoint with incorrect (and malformed) parameters, which didn't return the data required.
Notes
Seems to be related to bad client data. Noticed about the same time as T304349: PHP Notice: Undefined index: taskType - causes Argument 1 passed to GrowthExperiments\NewcomerTasks\NewcomerTasksChangeTagsManager::apply() must be of the type string, null given and could be related.