Ok. Fresh in the morning I tried to figure out what I’ve changed since the time it worked fine.
Since then I have 3 plugins included:
- Enhanced Toolbar Link Dialog from @gearsdigital
- Filesize > Rounds the Filesize to show in a Download-Icon
- Internal-link > To get the right internal link in my headless setup, i overwrite the link tag. I tried this with the help of this.
With only the 1. Plugin running, the Images get loaded as they should. No refresh necessary in the Panel or in the Frontend.
As soon as one of the other Plugins is running, the problem appears.
I never really used Plugins and since only the complete package from the 1. Plugin works, I think I did something wrong with implementing them? Still, I don’t get how this would be problematic for loading the Images (in the Panel and in the Frontend)?
This would be the filesize (site/plugins/filesize/index.php) example:
<?php
Kirby::plugin('mirkokokoko/filesize', [
'fileMethods' => [
'customSize' => function() {
// file mode
$size = (int) static::size($this->path());
// avoid errors for invalid sizes
if ($size <= 0) {
return '0 KB';
}
// the math magic
return round($size / pow(1024, ($i = floor(log($size, 1024)))), 1) . ' ' . F::$units[$i];
}
]
]);