Image not visible in the panel

Hi all, Kirby CMS newbie here. I implemented the Blocks feature. I added the Images type. I was unable to see the image in the panel.

However, the image was visible in the folder structure.

In the console, I had this error: “The requested resource /media/pages/about/9efc54e08d-1747387341/classic-car-lights.jpg was not found on this server.”

So I added the image manually:


The immediate problem was solved.

My question is: Why does the Blocks image upload not work?

Some context:
I am using PlainKit.
Kirby Version: 4
Environment: Windows 10 + XAMPP
Plugins added: None
PHP version: 8.2.12

Thanks.

Welcome to Kirby. The problem is not that the upload is not working, because the file was actually uploaded to the contents folder. But for some reason, the file was not published to the media folder.

Could you check your PHP error logs, and/or enable debugging.

Hi thanks for responding.

  1. Turn-on debugging
    Did you mean in Kirby?
    In /site/config/config.php I added this code as per the documentation:
<?php
return [
    'debug' => true
];

I also set-up PHP error logging in XAMPP.

2.Results
Here is an example for another image:

Here is a screenshot of some errors from the Visual Studio Code terminal:

Here is a screenshot of some errors in the browser console:

Note that the file name is modified. Instead of:
classic-steering-wheel.jpg
it is instead…
classic-steering-wheel-76x.jpg
I don’t know if this is normal behaviour

There are other error messages in the console, e.g.

Does this help identify the problem? Do you need any further info?
Tony

Note this is happening only on the local version. I’ve checked on web hosting and there are no problems with image uploads. It would just be great to have the local version running well, so that I can use GitHub.

Those files with the suffixes are thumbs automatically created by the panel. You need to have the gd library extension installed and active for thumbs to work, see requirements in guide