Error
- mwversion: 1.42.0-wmf.17
- reqId: 23a9f4a7-73c6-4f7c-93d9-18426a98756b
- Find reqId in Logstash
[{reqId}] {exception_url} InvalidArgumentException: Script must be a string or array
from /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceLoader.php(1425) #0 /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceLoader.php(1329): MediaWiki\ResourceLoader\ResourceLoader->addImplementScript(Wikimedia\Minify\IdentityMinifierState, string, string, boolean, array, NULL, array, NULL) #1 /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceLoader.php(1194): MediaWiki\ResourceLoader\ResourceLoader->addOneModuleResponse(MediaWiki\ResourceLoader\Context, Wikimedia\Minify\IdentityMinifierState, string, MediaWiki\ResourceLoader\UserModule, array) #2 /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceLoader.php(1118): MediaWiki\ResourceLoader\ResourceLoader->getOneModuleResponse(MediaWiki\ResourceLoader\Context, string, MediaWiki\ResourceLoader\UserModule) #3 /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceLoader.php(830): MediaWiki\ResourceLoader\ResourceLoader->makeModuleResponse(MediaWiki\ResourceLoader\Context, array, array) #4 /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceEntryPoint.php(52): MediaWiki\ResourceLoader\ResourceLoader->respond(MediaWiki\ResourceLoader\Context) #5 /srv/mediawiki/php-1.42.0-wmf.17/includes/MediaWikiEntryPoint.php(201): MediaWiki\ResourceLoader\ResourceEntryPoint->execute() #6 /srv/mediawiki/php-1.42.0-wmf.17/load.php(45): MediaWiki\MediaWikiEntryPoint->run() #7 /srv/mediawiki/w/load.php(3): require(string) #8 {main}
Impact
The requested module is not returned. Whether this breaks an extension or core feature is TBD.
Notes
One microsecond before the above exception is logged, ResourceLoader reports a diagnostic message to channel=ResourceLoader with a more detailed version of the same stack trace:
InvalidArgumentException: Script must be a string or array in /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceLoader.php:1425 Stack trace: #0 /srv/mediawiki/php-1.42.0-wmf.17/includes/ResourceLoader/ResourceLoader.php(1329): MediaWiki\ResourceLoader\ResourceLoader->addImplementScript(Object(Wikimedia\Minify\IdentityMinifierState), 'user', 'dzt6e', false, Array, NULL, Array, NULL)
The stack trace reveals which value is pased, namely false to addImplementScript() where for $scripts we expect the value of string or array.