paubou
1
Hi,
I’m facing an error when uploading a file on kirby@5.2.2 & php@8.5.1
When uploading a file with this blueprint:
title: Image
accept:
extension: jpg, png, jpeg, gif, mp4
maxsize: 9500000
create:
width: 2560
I’m facing this issue in the dialog box:
Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0
The file is uploaded but not resized.
I don’t have this error on php@8.4.17
Thanks
Hm, I wonder if that was overlooked when SimpleImage was updated. Do you still get the message if you disable debugging?
I am getting this error when generating thumbs (which is a hit and miss experience).
Setup:
Local site using Laravel Herd + PHP 8.4 + Kirby 5.3.1.
Herd’s nginx-error.log:
2026/02/24 10:32:56 [error] 5099#32610: *593 FastCGI sent in stderr: "PHP message: Whoops\Exception\ErrorException: Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0 in /Users/xx/Documents/Sites/kirby/rdgdc/vendor/claviska/simpleimage/src/claviska/SimpleImage.php:140
Stack trace:
#0 /Users/xx/Documents/Sites/kirby/rdgdc/vendor/claviska/simpleimage/src/claviska/SimpleImage.php(140): Whoops\Run->handleError(8192, 'Function imaged...', '/Users/xx/Docu...', 140)
#1 /Users/xx/Documents/Sites/kirby/rdgdc/vendor/claviska/simpleimage/src/claviska/SimpleImage.php(119): claviska\SimpleImage->reset()
#2 /Users/xx/Documents/Sites/kirby/rdgdc/kirby/config/components.php(365): claviska\SimpleImage->__destruct()
#3 /Users/xx/Documents/Sites/kirby/rdgdc/kirby/src/Cms/App.php(1659): Kirby\Cms\Core->{closure:/Users/xx/Documents/Sites/kirby/rdgdc/kirby/config/components.php:351}(Object(Kirby\Cms\App), '/Users/xx/Docu...', '/Users/xx/Docu...', Array)
#4 /Users/xx/Documents/Sites/kirby/rdgdc/kirby/src/Cms/Media.php(151): Kirby\Cms\App->thumb('/" while reading response header from upstream, client: 127.0.0.1, server: rdgdc.test, request: "GET /media/pages/home/vejen-til-jylland/6832802bf8-1770839530/2025-07-31_vejentiljylland-1-200x.jpg HTTP/2.0", upstream: "fastcgi://unix:/Users/xx/Library/Application Support/Herd/herd85.sock:", host: "rdgdc.test", referrer: "https://rdgdc.test/?herd=preview"
My config.php
return [
'thumbs' => [
'driver' => 'imagick',
]
];
texnixe
4
I’m a bit surprised the error is shown despite imagick set as the thumbs driver. SimpleImage shouldn’t be used in that case.
Apart from that, have you tried disabling debug in the config to see if this error disappears.
SimpleImage is a third party library we are using and we probably have to wait for a fix from their side.
The error is not found in Herd’s log anymore, but I’ve been tinkering a bit, so I cannot entirely say what has caused it to disappear.