Plugin Support
AC
(@purplecodes)
Themeisle Support
Hello @nicolaottomano,
I checked the link you provided and it looks like the issue is resolved.
See here –>> https://prnt.sc/lv4dpb
Let us know if all is good.
Hello @purplecodes,
maybe there is a little misunderstanding. 🙂
I’m talking about the image shown by the plugin.
It uses the 1200x1200px one (I mean, the full size image, like the following: https://www.nicolaottomano.it/wp-content/uploads/2018/03/6112lmjkHIL._SL1200_.jpg ) instead of the thumbnail one (I mean, the following: https://www.nicolaottomano.it/wp-content/uploads/2018/03/6112lmjkHIL._SL1200_-150×150.jpg ).
It is an easily achievable task by calling the_post_thumbnail() function on wordpress: https://developer.wordpress.org/reference/functions/the_post_thumbnail/
This will reduce the download size, especially on 3G mobile devices, and increase the Google PageSpeed Rank.
Best regards,
Nicola
Hello Nicola,
The plugin is taking ‘thumbnail’ sized image automatically – http://prntscr.com/lvzbnk. It might be possible that this size is not available in your WordPress environment for that image or the plugin version is older.
Kindly try uploading the image again and having the latest version of the plugin.
Let us know how it goes.
Dear @vishakha,
the issue occurs on every page of my blog, the plugin version is the latest one (3.4.10).
I debugged your plugin step-by-step and found the root of the problem.
In …wp-product-review\includes\admin\models\class-wppr-review-model.php there is the get_image_id() function.
In order to get the image id, the plugin uses the following statement:
$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE guid=%s", <strong>$this->image</strong> ) );
$this->image returns the full url. In my case the URL is https://www. etc., while the guid into the wp_posts table is http:// (not https://).
I changed all the GUIDs replacing them with the HTTPS versions, but I think your programmers should consider that not all the people are tech savy to mess with the WordPress DB and, in this way, they could get the image ID in another way.
Best regards,
Nicola
Hello @nicolaottomano,
Thank you for your response.
When creating a review post, WPPR asks if you would like to add a product image, otherwise it will use the post’s featured image. The images you are referring to are the featured images of the post itself. I have tested this with IsleMag and when using a smaller picture (150×150) the featured image of the post (the one that appears on the blog page) is looking like this -> http://prntscr.com/lxgenz instead of using a large picture which will look like this -> http://prntscr.com/lxgeya
I believe this is a theme related feature. Could you please try using a smaller featured image for the post and see if the issue gets solved?