Open mhennessie opened 7 years ago
So it appears something on my server is causing it not to work. I spun up a new instance and it works fine there. Wish I could figure out what is causing the problems.
I have narrowed this down to a conflict with the theme. What that conflict is, I have no idea. This is a widely used Wordpress theme that I use as a starting point a lot so I need to figure this out.
I have the same issue - thumbnails work fine with S3-Uploads deactivated, but with it on only the fullsize image gets uploaded.
Turns out it needed both GD enabled AND Imagick disabled in order for the thumbnails to be created and uploaded. Not sure if this counts a bug or not? But I guess so, as the thumbnail creation with Imagick worked when the plugin was deactivated.
(It's a great plugin otherwise though!)
I will have to try installing both. I tried it with each of them installed individually but never together. Id love to be able to use this plugin.
The only way that worked for me was when phpinfo showed GD enabled but Imagick disabled. I guess it's some conflict with Imagick, or a specific version of it.
If you're using Docker, this image worked for me (after adding php7-mysqli to the list of extensions).
We dug into this to see if there was anything obvious; the only thing we could see was getimagesize
being used, but as PHP's docs note, this is available even without GD. We can probably dig into whether GD is actually required, but in the meantime, it might just be better to install GD to solve the problems. :)
For me, I tried both ImageMagick and GD, not together though, and the result was the same with the theme I was using. As soon as I switched to one of the default Wordpress themes then the plugin started working as it should with either ImageMagick or GD.
@mike-low I've tried to use the image you referenced a few days ago:
If you're using Docker, this image worked for me (after adding php7-mysqli to the list of extensions).
However when you go into wp-admin, WordPress complains that it is unable contact wordpress.org for updates. I tried to perform a simple Curl request to google.com, wordpress.org etc in a separate script and PHP Curl threw an error saying that the 'name lookup timed out'.
It has something to do with the way Musl Libc screws up DNS name lookups. Are you aware of a fix for this?
Your theme does need to have add_theme_support( 'post-thumbnails' );
which I believe is best called in the after_setup_theme
hook.
after_theme_setup
I think the hook is after_setup_theme
and not after_theme_setup
Update: After installing php73-pecl-imagick-im7-3.4.3_5, the thumbnails are created successfully. That's the solution for me.
I had same issue with Wordpress theme "Twenty Eleven"
Steps to reproduce:
This makes the image management really difficult without the previewing of the thumbnails. Is there a solution?
Thanks
I am running WordPress on an EC2 instance with PHP 7 and Wordpress works fine until I activate the plugin. Then it stops producing the various size images like it normally does (thumb, med, large). I am positive that image magick is installed so that is not the issue. When I disable the plugin, Wordpress uploads then function normally and generate the different size images. Any help is appreciated.