Hey!
I am working on a commissioned website, initializing a one-pager formula, with multiple articles for content, including images.
I have encountered a problem related to the loading of the images, which I have previously seen being shared around on the forum, yet none of the answers were of any help in my case, unfortunately.
As I am accessing my panel and create images, they won’t upload and then are not pulled in by the site.
I am running the site from the plainkit on a local host (php -S localhost:8000), and have made one site called test.php along with test.yml.
I am a beginner in Kirby and overall PHP, so all the help is appreciated.
Thank you in advance!
Hi and welcome to the forum.
As I can see from your screenshot, the images are correctly uploaded but do not display the preview images. So that means that Kirby cannot create thumbnails. Please make sure that your PHP version has the gd library present and enabled, which is a requirement for Kirby’s thumb engine to work. See Requirements | Kirby CMS.
You can use phpinfo()
in a template to find out.
Thank you for the quick answer!
Besides the thumbnails the images themselves also cannot be accessed.
As you can see the slider on the left detects the amount of images, but refuses to load them.
Besides once an image is opened in the panel it displays an error:
The requested resource /panel/pages/test/files/dsf3712.jpg
was not found on this server.
The denied access is also visible in the terminal:
[::1]:64825 [404]: GET /panel/pages/test/files/dsf3712.jpg - No such file or directory
Just noticed that you are not starting the localhost server with the router, please see Choosing a local dev environment | Kirby CMS
It works now! Thank you so much!