flokosiol / kirby-focus

Better image cropping for Kirby CMS
184 stars 14 forks source link

Does not create cropped images on server #56

Closed trych closed 4 years ago

trych commented 4 years ago

Hi there, I have the issue that locally my cropped images are created just fine, but when I transfer the site to my server (uberspace.de, CentOS 7, PHP 7.4), the cropped images do not get created and therefore seem to be missing from the page:

20201005-142818_Screenshot_GoogleChrome

It does create corresponding entries in the .jobs folder though: 20201005-143211_Screenshot_ForkLift

So I am not quite sure what is going wrong. Any idea what is wrong and/or how I could debug this?

Thanks!

Edit: I just switched to regular crop for testing and figured out, that does not work either. So this might be a Kirby issue rather than an issue with the plugin. Will investigate further and close the issue in case I find out it is indeed Kirby's fault.

flokosiol commented 4 years ago

As you mentioned in your edit – I'm not sure if this is Focus related!? Converting the .job files to real image should be done by Kirby itself.

Maybe the folder permissions aren't set correctly?!

trych commented 4 years ago

Don't think it could have anything to do with folder permissions, as resized (non-cropped) images are created just fine and written to the folder.

Yes, the more I am trying around, the more it seems like it is not Focus related. Will close this for now. Thanks for the reply and sorry for the fuss!

flokosiol commented 4 years ago

Thanks for the feedback. Would be awesome if you could let me know what your solution was once the issue is fixed. I'll be switching from U6 to U7, too. Maybe it's helpful for me or for others! Thanks.

trych commented 4 years ago

Sorry, back to the previous state.

Turns out I messed up with my git syncing and I still had focusCrop() method in use in my code. When I sorted this out and switched to Kirby's regular crop it did work again.

Unfortunately this means that the Focus crop is broken for me somehow. Any ideas how I could go about debugging this? I double checked gd and it is enabled and working fine for the normal crop.

Edit: Wait a second, still sorting this mess out. Will update as soon as I figured out what actually works and what doesn't sorry.

trych commented 4 years ago

Ok, it works now, also with the Focus crop. I have no idea what went wrong, I spent like half the day yesterday double checking that everything is correct on my side, but apparently I missed something. I did a clean git clone now onto the server and now when it generates the images, everything seems to work. Sorry again for the confusion. Hope this issue will be closed forever now. 😄