It took me a little while that it was a faulty JPG (invalid markers) that made the Panel crash (Kirby 2.5.7)
get_resource_type() expects parameter 1 to be resource, null given Whoops\Exception\ErrorException /vendor/getkirby/toolkit/vendors/abeautifulsite/SimpleImage.php:57 get_resource_type /vendor/getkirby/toolkit/vendors/abeautifulsite/SimpleImage.php:57 abeautifulsite\SimpleImage __destruct [internal]0
– this is the log in Debug mode. In non-Debug mode, the panel just freezes, so your’re unable to save / exit / delete the faulty files.
I am not sure if this qualifies as ‘bug’ (it’s the JPGs that are faulty after all), that’s why I am posting it here. But it would to be great – especially for clients – to get a warning, (e.g. “invalid file”), instead of the whole panel just crashing.