i fail to load images from any page of the my website.
in the console i get a 500 error, and i see that kirby tries to load the file from the media folder but the folder is empty
in the php error log i read: Failed to write image to file: /path../cesar-rincon-xhvpwcr5grq-unsplash-1-1-900x.avif in /path/vendor/claviska/simpleimage/src/claviska/SimpleImage.php:508
when i access the panel i see all the files
and i’m using a public folder setup
i guess is a permission problem… any idea where to fix it?
Tested an .avif file in rc.2 and had no problems. Can you share your template/snippet where you load the image, because this error appears if the toFile function fails
the files in the screenshots were generated in my local environment where everything is working–i uploaded them by mistake.
when on the server it only generates .json file into the /.jobs folder
but even with the media folders from my local environment was not loading any file.
there is something wrong in how i load the images (but i can’t understand why only on the server?)
i use this template
yes, avif is supported – i’m running other websites with the same configuration
the only difference is that they are on kirby 3.9.8 the test i’m showing runs on kirby 4 rc.3
If I put everything together what has been written before, it seems that PHP could not write the file, because it is already there and has permissions which inhibits the server process from writing to the same file. This could happen if you upload a file with a different kind of access, lets say FTP or SSH and this process creates file with its own user, but this user is different from the PHP process user.
So, you need to check if the file which is already there, has got the correct permissions which the PHP process can overwrite.