Error
- service.version: 1.46.0-wmf.19
- timestamp: 2026-03-17T13:19:42.770Z
- labels.phpversion: 8.3.30
- trace.id: b908aaec-4e6b-4765-8f77-32260409024e
- Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url} TypeError: substr(): Argument #1 ($string) must be of type string, array given| Frame | Location | Call |
|---|---|---|
| from | /srv/mediawiki/php-1.46.0-wmf.19/includes/FileRepo/ThumbnailEntryPoint.php(104) | |
| #0 | /srv/mediawiki/php-1.46.0-wmf.19/includes/FileRepo/ThumbnailEntryPoint.php(104) | substr(array, int) |
| #1 | /srv/mediawiki/php-1.46.0-wmf.19/includes/FileRepo/ThumbnailEntryPoint.php(73) | MediaWiki\FileRepo\ThumbnailEntryPoint->streamThumb(array) |
| #2 | /srv/mediawiki/php-1.46.0-wmf.19/includes/FileRepo/ThumbnailEntryPoint.php(63) | MediaWiki\FileRepo\ThumbnailEntryPoint->handleRequest() |
| #3 | /srv/mediawiki/php-1.46.0-wmf.19/includes/MediaWikiEntryPoint.php(180) | MediaWiki\FileRepo\ThumbnailEntryPoint->execute() |
| #4 | /srv/mediawiki/php-1.46.0-wmf.19/thumb.php(27) | MediaWiki\MediaWikiEntryPoint->run() |
| #5 | /srv/mediawiki/w/thumb.php(3) | require(string) |
| #6 | {main} | |
Impact
Low
Notes
This is GIGO as the related URLs were explicitly constructed like
https://commons.wikimedia.org/w/thumb.php?f=example.jpg&w[%24testing]=1
or
https://commons.wikimedia.org/w/thumb.php?f=example.jpg&w[]=180
See also very similar / dup T420461: PHP Warning: Array to string conversion (in PDFHandler)