Images are not loaded Errorcode 500 after upload, local all works

I just uploaded my entire Kirby folder. The images are displayed in the panel, but not on the website.

The console shows: Failed to load resource: the server responded with a status of 500 ().
The avif file is not available.
GD support is enabled, as is AVIF support.

In the meantime I have deleted the media folder and also the cache and uploaded new images, but it still does not work, even for newly uploaded images the AVIF is not created

Locally everything works perfectly.

PHP 8.2.13 Kirby 4.1.2

Does anyone have an idea?

I guess you are talking about thumbs in avif format or do you convert when uploading?

How do you know that avif support is available? Have you checked with phpinfo()?

Yes i use thumbs to convert the pictures. i checked already avif support with phpinfo().

In phpinfp AVIF support is enabled, but in the first section “Configure Command” of the phpinfo I found the following: ‘–disable-gd’.

Maybe it is disabled after all?

Since thumbs seem to be working in general (please double-check if the images created for the panel are really resized in the media folder or if they have the original size).

If gd is not present at all, you cannot enable it, I guess. But usually, gd is available on shared hosting, unless you have a very obscure provider.

in the media folder i have only one folder “panel”, but there are no images, just a subfolder with tree folders js css img.

Hm, but didn’t you write above that you see images in the Panel?

Yes, i see the picture in the panel and the url is /home/dscf1340.jpg

Strange. Do you use any custom code that loads images from the content folder instead of from the media folder?

i just made the setup like described in the cookbook for Thumbs. There is no custom code for the upload.

I installed now the starterkit-main on the same server and uploaded a image. This works well, but i can’t find the uploaded image in the media/… folder, but it’s shown on the website:
https://brut.marcrenegeiser.ch/media/pages/photography/trees/e55b34e528-1710188566/dscf1341-800x.jpg

In the folder is still only the picture i uploaded (without the -800x suffix)

Hm, but when I download the image, it is properly resized, so all good. What sort of view are you showing there in your screenshot? Have you refreshed it after loading the page? Thumbs are created on the fly when the page is loaded.

Oh, you are still here :slight_smile: Thank you for your support.

It’s a screenshot from winscp and i have it refreshed. Here is another screenshot, on the left my local folder on the rigth the webserver.

i used your recipe for responsive images and like to use the images as AVIF.
It seems there are no AVIF Pictures on the webserver (even in starterkit-main).
On the local XAMMP-Environment it works. Maybe there is a problem with server? it’a a LiteSpeed-Server with php 8.2.13

After uploading a new picture i get this error-Log
(the jpgs ,original and two resized ones, are properly written in this folder)

[11-Mar-2024 22:13:32 Europe/Zurich] Exception: Failed to write image to file: /home/marcrene/public_html/marcrenegeiser/media/pages/portfolio/creative-coding/big-curves-big-dots/e3c5d2cbb6-1710191598/testupload-300x.avif in /home/marcrene/public_html/marcrenegeiser/kirby/vendor/claviska/simpleimage/src/claviska/SimpleImage.php:508

Stack trace:

#0 /home/marcrene/public_html/marcrenegeiser/kirby/src/Image/Darkroom/GdLib.php(38): claviska\SimpleImage->toFile(‘/home/marcrene/…’, ‘image/avif’, Array)

#1 /home/marcrene/public_html/marcrenegeiser/kirby/config/components.php(343): Kirby\Image\Darkroom\GdLib->process(‘/home/marcrene/…’, Array)

#2 /home/marcrene/public_html/marcrenegeiser/kirby/src/Cms/App.php(1588): Kirby\Cms\Core->{closure}(Object(Kirby\Cms\App), ‘/home/marcrene/…’, ‘/home/marcrene/…’, Array)

#3 /home/marcrene/public_html/marcrenegeiser/kirby/src/Cms/Media.php(131): Kirby\Cms\App->thumb(‘/home/marcrene/…’, ‘/home/marcrene/…’, Array)

#4 /home/marcrene/public_html/marcrenegeiser/kirby/src/Cms/Media.php(60): Kirby\Cms\Media::thumb(Object(Kirby\Cms\Page), ‘e3c5d2cbb6-1710…’, ‘testupload-300x…’)

#5 /home/marcrene/public_html/marcrenegeiser/kirby/config/routes.php(89): Kirby\Cms\Media::link(Object(Kirby\Cms\Page), ‘e3c5d2cbb6-1710…’, ‘testupload-300x…’)

#6 [internal function]: Kirby\Http\Route->{closure}(‘portfolio/creat…’, ‘e3c5d2cbb6-1710…’, ‘testupload-300x…’)

#7 /home/marcrene/public_html/marcrenegeiser/kirby/src/Http/Router.php(120): Closure->call(Object(Kirby\Http\Route), ‘portfolio/creat…’, ‘e3c5d2cbb6-1710…’, ‘testupload-300x…’)

#8 /home/marcrene/public_html/marcrenegeiser/kirby/src/Cms/App.php(337): Kirby\Http\Router->call(‘media/pages/por…’, ‘GET’)

#9 /home/marcrene/public_html/marcrenegeiser/kirby/src/Cms/App.php(1189): Kirby\Cms\App->call(‘media/pages/por…’, ‘GET’)

#10 /home/marcrene/public_html/marcrenegeiser/index.php(5): Kirby\Cms\App->render()

#11 {main}

Maybe you just don’t have avif support, I suggest you contact your provider. If jpegs work, but avif doesn’t…

yes, thank you texnixe. indeed my provider don’t support AVIF :frowning:

Doesn’t speak for the provider.

I’ve been very happy with my provider so far.
Thank you for your help and your patience.