422 (Unprocessable Content) in console. Empty page with “Invalid source image“ message and url like this: panel/pages/gallery+landscape/files/img_7049.jpg
BTW, I just set up a brand-new Kirby 5.0.4 on the same Hostinger hosting under a different domain and ran into the same issues. Can’t edit images or note covers in the Panel. The frontend still works perfectly though.
Error: Failed to load resource: the server responded with a status of 422 ()Understand this error
Message on top of a page: Invalid source image
In fact, I’m using the permanent domain name. If this were a Hostinger-only issue, we’d probably see hundreds of posts like mine. So what can I do? I have a licensed Kirby and can’t use it properly on my hosting?
I’ve double-checked phpinfo and Imagick is enabled on the server. Moreover, there are two WordPress websites running on the same server, which are obviously using Imagick to crop images.
Just a quick note for anyone trying to run Kirby on Hostinger and running into Panel issues (like not being able to edit image covers, posts, etc.):
This is not a Kirby problem — Kirby itself works perfectly. The issue comes from Hostinger’s setup. Once I made the right adjustments, everything ran great.
Here’s what you need to do on Hostinger:
Ask Hostinger Support to disable CDN image optimization for your domain (their built-in optimization conflicts with Kirby’s image handling).
Use GD as the thumbs driver in your config.php (Imagick doesn’t behave reliably on Hostinger).
Make sure PHP exec() is enabled on your hosting plan.
Once these are in place, the Panel works normally and Kirby is a joy to use
Kirby is awesome! The hiccup here is Hostinger’s defaults, not Kirby itself. If you’re on Hostinger, just ask support for these changes and you’re good to go.
Kirby does not use Imagick, but ImageMagick (a command line tool) for the im thumb driver. To use the im driver, ImageMagick needs to be installed on the server.
In my case on Hostinger, even though ImageMagick is technically installed and exec() enabled, it doesn’t behave properly with Kirby’s im thumb driver (probably due to their setup and restrictions). The Panel only started working correctly after:
switching to GD as the thumb driver,
asking Hostinger support to disable their CDN image optimization for my domain.
So yes, you’re right: exec() is only relevant if using the im driver. But since Hostinger’s ImageMagick setup is unreliable, the safer path (at least on their shared hosting) is to go with GD.
Kirby itself is rock-solid. It was 100% a Hostinger quirk.