Page MenuHomePhabricator

PHP Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.47.0-wmf.12
  • timestamp: 2026-07-22T19:02:43.748Z
  • phpversion: 8.3.32
  • reqId: 518c2f6f-fa12-4b56-bc2e-0f5af527dbe4
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   PHP Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated
FrameLocationCall
from/srv/mediawiki/php-1.47.0-wmf.12/includes/Media/ThumbnailImage.php(76)
#0[internal function]MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.47.0-wmf.12/includes/Media/ThumbnailImage.php(76)round(null)
#2/srv/mediawiki/php-1.47.0-wmf.12/extensions/3D/src/ThreeDHandler.php(104)MediaWiki\Media\ThumbnailImage->__construct(MediaWiki\FileRepo\File\LocalFile, string, string, array)
#3/srv/mediawiki/php-1.47.0-wmf.12/includes/Media/MediaHandler.php(468)MediaWiki\Extension\ThreeD\ThreeDHandler->doTransform(MediaWiki\FileRepo\File\LocalFile, string, string, array, int)
#4/srv/mediawiki/php-1.47.0-wmf.12/includes/FileRepo/File/File.php(1298)MediaWiki\Media\MediaHandler->getTransform(MediaWiki\FileRepo\File\LocalFile, string, string, array)
#5/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiQueryImageInfo.php(648)MediaWiki\FileRepo\File\File->transform(array)
#6/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiQueryImageInfo.php(227)MediaWiki\Api\ApiQueryImageInfo::getInfo(MediaWiki\FileRepo\File\LocalFile, array, MediaWiki\Api\ApiResult, null, array)
#7/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiQuery.php(736)MediaWiki\Api\ApiQueryImageInfo->execute()
#8/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiMain.php(2049)MediaWiki\Api\ApiQuery->execute()
#9/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiMain.php(947)MediaWiki\Api\ApiMain->executeAction()
#10/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiMain.php(918)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#11/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiEntryPoint.php(138)MediaWiki\Api\ApiMain->execute()
#12/srv/mediawiki/php-1.47.0-wmf.12/includes/MediaWikiEntryPoint.php(180)MediaWiki\Api\ApiEntryPoint->execute()
#13/srv/mediawiki/php-1.47.0-wmf.12/api.php(30)MediaWiki\MediaWikiEntryPoint->run()
#14/srv/mediawiki/w/api.php(3)require(string)
#15{main}
Impact

154 hits in the last 15 minutes, making it the top error in my train monitoring dashboard.

Notes

Details

Request URL
https://commons.wikimedia.org/w/api.php?action=query&format=*&formatversion=*&iiextmetadatafilter=*&iiextmetadatalanguage=*&iiprop=*&maxage=*&prop=*&smaxage=*&titles=*&uselang=*
Related Changes in Gerrit:

Event Timeline

Associated

PHP Warning: Undefined array key "physicalHeight"
or
PHP Warning: Undefined array key "physicalWidth"

Error
  • mwversion: 1.47.0-wmf.12
  • timestamp: 2026-07-22T19:02:43.747Z
  • phpversion: 8.3.32
  • reqId: 518c2f6f-fa12-4b56-bc2e-0f5af527dbe4
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   PHP Warning: Undefined array key "physicalHeight"
FrameLocationCall
from/srv/mediawiki/php-1.47.0-wmf.12/includes/Media/ThumbnailImage.php(65)
#0/srv/mediawiki/php-1.47.0-wmf.12/includes/Media/ThumbnailImage.php(65)MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.47.0-wmf.12/extensions/3D/src/ThreeDHandler.php(104)MediaWiki\Media\ThumbnailImage->__construct(MediaWiki\FileRepo\File\LocalFile, string, string, array)
#2/srv/mediawiki/php-1.47.0-wmf.12/includes/Media/MediaHandler.php(468)MediaWiki\Extension\ThreeD\ThreeDHandler->doTransform(MediaWiki\FileRepo\File\LocalFile, string, string, array, int)
#3/srv/mediawiki/php-1.47.0-wmf.12/includes/FileRepo/File/File.php(1298)MediaWiki\Media\MediaHandler->getTransform(MediaWiki\FileRepo\File\LocalFile, string, string, array)
#4/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiQueryImageInfo.php(648)MediaWiki\FileRepo\File\File->transform(array)
#5/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiQueryImageInfo.php(227)MediaWiki\Api\ApiQueryImageInfo::getInfo(MediaWiki\FileRepo\File\LocalFile, array, MediaWiki\Api\ApiResult, null, array)
#6/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiQuery.php(736)MediaWiki\Api\ApiQueryImageInfo->execute()
#7/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiMain.php(2049)MediaWiki\Api\ApiQuery->execute()
#8/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiMain.php(947)MediaWiki\Api\ApiMain->executeAction()
#9/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiMain.php(918)MediaWiki\Api\ApiMain->executeActionWithErrorHandling()
#10/srv/mediawiki/php-1.47.0-wmf.12/includes/Api/ApiEntryPoint.php(138)MediaWiki\Api\ApiMain->execute()
#11/srv/mediawiki/php-1.47.0-wmf.12/includes/MediaWikiEntryPoint.php(180)MediaWiki\Api\ApiEntryPoint->execute()
#12/srv/mediawiki/php-1.47.0-wmf.12/api.php(30)MediaWiki\MediaWikiEntryPoint->run()
#13/srv/mediawiki/w/api.php(3)require(string)
#14{main}
Krinkle unsubscribed.

Thanks. Tagging the new Media Platform Team. I've updated mw:Maintainers accordingly.

Ah I see the previous comment now. Yeah, my patch probably caused that. Fixing!

Change #1314887 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/extensions/3D@master] Add missing normaliseParams() call to ThreeDHandler::doTransform

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

dancy triaged this task as Unbreak Now! priority.Thu, Jul 23, 6:45 PM

Thanks @Krinkle. I'm maxing out the priority now that I've rolled the train to group2 and the error rate is quite high now.

Change #1314887 merged by jenkins-bot:

[mediawiki/extensions/3D@master] Add missing normaliseParams() call to ThreeDHandler::doTransform

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

Change #1315130 had a related patch set uploaded (by Krinkle; author: Krinkle):

[mediawiki/extensions/3D@wmf/1.47.0-wmf.12] Add missing normaliseParams() call to ThreeDHandler::doTransform

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

Change #1315130 merged by jenkins-bot:

[mediawiki/extensions/3D@wmf/1.47.0-wmf.12] Add missing normaliseParams() call to ThreeDHandler::doTransform

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

Mentioned in SAL (#wikimedia-operations) [2026-07-24T13:53:12Z] <krinkle@deploy1003> Started scap sync-world: Backport for [[gerrit:1315130|Add missing normaliseParams() call to ThreeDHandler::doTransform (T432911)]]

Mentioned in SAL (#wikimedia-operations) [2026-07-24T13:55:19Z] <krinkle@deploy1003> krinkle: Backport for [[gerrit:1315130|Add missing normaliseParams() call to ThreeDHandler::doTransform (T432911)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-07-24T14:34:23Z] <krinkle@deploy1003> Finished scap sync-world: Backport for [[gerrit:1315130|Add missing normaliseParams() call to ThreeDHandler::doTransform (T432911)]] (duration: 41m 12s)