Is there anything wrong there? Does the helper depend on anything special, like php extension that might be missing?
I’ve had strange issues before with case sensitivity, maybe ->mediaRoot() is returning something it doesn’t like. Everything is lowercase though, so i’m not convinced that is the issue. It’s not even rendering the tag, nothing is getting rendered at all, just the anchor tag.
Why? the helper needs a filename & path, but the images are stored in fields, so yes they are in the media folder, they were uploaded through the panel. Whats the better way to do it?
yes but can i DM you? I wont want to publicise the site. The dump is returning the right path and file name, but it is a full path from the server root, rather then from the web root. Maybe it doesn’t like that. I guess it cant start outside of the site folder for permissions reasons.
Hm, it shouldn’t be a permissions problem, because PHP should be able to access parts outside the web root (otherwise this whole thing about putting stuff outside the web root wouldn’t work). If you don’t use the helper but do a simple
I’m not sure how to fix that really, the files have the correct user:group etc. My other site does that. I know the media is writable because I exclude it from my rsync, and Kirby is generating images in the media folder, it just cant seem store the panel assets there.
As for this error, I just jumped on the server and deleted the media folder. Then i hit some pages, and kirby recreated the media folder and stored images in it. However, if i try hit the panel, i get the error above, its refusing to store the panel assets.
My site (https://hashandsalt.com) and this site im working are the only K3 sites on the box. To be honest, i work locally and push up, i never work on the panel on the live site, so its not a huge deal. But i kind of feel the need to know why its not working. Both sites do it.