Open LoriWJ opened 2 years ago
@LoriWJ Hmm thats an odd one!
It looks like it's throwing an error when getting your File System. Are you using the same one locally as on production?
E.g. On production your not using Amazon S3, but locally using Local file system for example?
I'm using the local file system in both environments.
@LoriWJ Struggling to fix this one!
But I have just released 2.0.1 which refactored the way images are transformed then stored. Can you try installing this and letting me know if it fixes this issue.
A little side note also, you can now use .render()
with 2.0.1 e.g. {{ craft.pdfTransform.render(asset) }}
and this now outputs as a Asset element (Where as before you could only get the URL) so you can do things like {{ craft.pdfTransform.render(asset).filename }}
etc
Thank you for looking into this, I appreciate it. We’ve now had to launch without the plugin. I can’t spend any more of the client’s budgeted time on it but if I have some time outside of work I may do more testing.
@LoriWJ Thanks, yeah any feedback would be great.
For what it's worth, I was having this same issue and the problem turned out to be a low memory_limit (and perhaps max_execution_time as well) in my PHP settings.
The plugin works great on my local site but I get messages saying "Server error" when I upload a PDF on the stagings site and no PDF image is created.
The site is using Craft 4 with PHP 8.0 and imagick is enabled.
The log has this info but I can't work out what's wrong and the hosting provider has passed the buck: