Ho ho ho,
interesting. Can you try regenerating your thumbnails with this nifty plugin: http://wordpress.org/plugins/regenerate-thumbnails/
Maybe then our plugin will pick them up.
If not, let us know and we’ll figure something out.
Best,
Rok
Hi Rok,
Thanks for the reply.
I have regenerated the thumbnails without luck. I have checked the server and the thumbnails exist as files so not sure what is wrong.
What conditions would result in the default images being displayed – maybe there is a setting/config in our environment which is causing the issues.
Thanks
Michael
Rok,
I did some further digging.
The issue seems to be in your function wp_rp_get_image_data as part of the thumbnailer.php.
The checks:
if (!$imagedata || !is_array($imagedata) || !isset($imagedata['sizes']) || !is_array($imagedata['sizes'])) {
return false;
}
Are failing, in particular the checks around $imagedata[‘sizes’]. I dumped out the $imagedata array and found that the image meta data is missing the sizes array, even after I regenerated the thumbnails. I also tried to remove the Featured Image and re-upload but still the Thumbnails would not work.
I suspect the issue might be environmental, or in the WordPress core… We have a test site where the plugin is working. The main difference between the two sites is one is an a shared hosting the other is an AWS instance.
Regards
Michael
Michael, thanks so much for your work!
I’ll make sure this gets in one of the next releases.
Best,
Rok
Just a follow up on this.
The meta data for images loaded into the Media Library were not being set.
If we do a:
print_r (wp_get_attachment_metadata(ID));
Where ID is the ID of the image from the Media Library.
All that is returned is:
Array ( [width] => 506 [height] => 339 [file] => 2013/08/122399110.jpg [image_meta] => Array ( [aperture] => 0 [credit] => Getty Images/Ingram Publishing [camera] => [caption] => Close-up of a cup of coffee near a newspaper pen and eyeglasses [created_timestamp] => 0 [copyright] => [focal_length] => 0 [iso] => 0 [shutter_speed] => 0 [title] => 122399110 ) )
On the test site all of the meta data was being displayed.
In looking further we found that we did not have GD or Imagick installed. Once they were installed and I regenerated the image Thumbnails – using Regenerate Thumbnails plugin the meta data was available. After about 30 seconds the images started to appear for the Related Posts plugin.
Hey Michael,
thanks for the follow up with good news and very useful intel.
We’re glad it’s working now.
If something else pops up… we’re here 🙂
Regards,
Mateja