I have a weird issue with the media folder and the michnhokn/kirby3-cookie-banner plugin by @michnhokn (but think it’s not the plugins fault). I use Kirby and the plugins with composer, no special config except that.
On my local machine everything works fine but once I go on the server I get the following error for all assets of it:
[Error] Failed to load resource: the server responded with a status of 403 () (cookie-modal.js, line 0)
I deleted the media folder already but it recreated and had the same problem again.
Does anyone here have an idea what to try/where to look at?
Thanks for any help/idea.
Is the symlink in the media folder actually created? Where does it point to? Is the location of the original file readable, i.e. what are the file permissions?
Thanks already for the suggestions, I checked it now.
Locally the alias exists and works, on remote it’s a bit hard to debug since I don’t have ssh access but only sftp. But the original file in site/plugin/… exists and has correct permissions (644) and the ones in media folder seem to have the same but they’re created automatically so don’t think I can influence that anyways.
Is that the only plugin you use that has frontend styles/scripts?
I’m using the same plugin in a project on shared hosting without any issues, so I assume the plugin is not at fault and if the files exist and the symlinks are created as expected, then it could either be a permission issue, a caching problem (have you tried to clear the browser cache?), or maybe some sort of browser add-on interfering (although in the latter case, I would expect issues also locally).
Well, this works exactly one time, when the media folder is deleted and then the files get cached.
The symlinks don´t point to the desired absolute after regeneration.