Change 1000+ of WordPress Featured Images in 5 Minutes! › Forums › Questions and Answers › Pro version not picking up first image
February 25, 2018 at 1:07 pm #12886
I’ve just purchased the plugin to replace featured images with the first image of the post. First, the plugin throws many PHP warnings like this:
Warning: Illegal offset type in isset or empty in /wp-content/plugins/quick-featured-images-pro/admin/class-quick-featured-images-pro-tools.php on line 2705
WP debug is off. Server is running PHP 5.6, WP 4.9.4. While PHP warnings are usually not really a problem, they shouldn’t be visible, should they?
Now to the more important issue. It seems that the plugin does not do a better job compared to the 4 years outdated free plugin in the plugin repository. For example:
(Actually, I’m running the plugin in a test installation, but this is the orignal post. The test installation is restricted.)
QFIP picks the second image, not the first one. This is exactly, what the free plugin did. This is the reason why I purchased QFIP.
I regenerated the thumbnails and cleared the browser cache. No luck. All images are in the WP media library. Do I miss anything?February 25, 2018 at 1:20 pm #12887
There seems to be pattern. Same here:February 25, 2018 at 4:56 pm #12890
Even with WP_DEBUG on I get no warnings. Maybe an upgrade to PHP 7.x would help.
I am trying to figure out what the reason might be.February 25, 2018 at 8:03 pm #12901
Changed to PHP 7.0, the warnings remain the same. Anyhow, this is really not important. The much more severe issue: Why does the plugin pick the second image sometime? As far as I can see: QFIP is not more succesful compared to the free plugin (https://wordpress.org/plugins/set-all-first-images-as-featured/).
Thanks.February 26, 2018 at 9:11 am #12912
The reasons for that behaviour are not obvious so I have to guess.
It is unusual that a direct call of an image like https://manndat.de/?attachment_id=14603 redirects to the post which contains that image. It should lead to an attachment page. But I am thinking that is not the reason for your issue.
I am seeing two approaches to try: using the option “Take the first thumbnail of the embedded remote content” and “Take the first attached image”. Did you try them out?February 26, 2018 at 9:42 am #12914
We don’t link to attached images, and we don’t use remote content. We simply embed the images in the body text using the standard editor workflow. We tried the ” Setze das erste Bild als Beitragsbild.” option, which seems to be the right choice. I checked the first example. The image is attached to the post. However, it is not picked as featured image. Instead, the second image in the post is picked. This occurs with a lost of posts. I have no idea why. Both images use the caption shortcode for some description. I can’t really see any difference. Here’s the HTML code:
[caption id="attachment_13707" align="aligncenter" width="718"]<img class="wp-image-13707 size-large" src="https://temp.manndat.at/wp-content/uploads/2016/11/101970949_fotolia-com_luckyimages_718-718x516.jpg" alt="" width="718" height="516" /> <strong>fotolia.com, ©LuckyImages</strong><br /> Wer kümmert sich um die Jungen im Bildungssystem?[/caption]
February 26, 2018 at 12:42 pm #12916
- This reply was modified 2 years, 9 months ago by mkjjj.
temp.manndat.atin the image path is not the same as the server’s domain
So it makes sense to use the option ‘Übernehme das erste externe Bild’. This will work as the free plugin you mentioned above.February 26, 2018 at 1:12 pm #12918
As I said in my previous post: The plugin is registered on the temp.mannat.at domain for test purposes. The domain is restricted. This is why I posted the manndat.de URLs. You wouldn’t see the frontend of the temp domain. It’s an exact mirror of the live site. I will gladly send you credentials for the temp. domain. I just can’t test the plugin on the live site. All images are on the temp domain. The are not linked to the live site. The file system is a full copy of the live site.February 26, 2018 at 1:30 pm #12919
If you would send me the login credentials to firstname.lastname@example.org I would take a look at that.February 27, 2018 at 12:32 pm #12924
Thank you for the login credentials. After some testings I could find the bug in the code. I will publish a fix as soon as possible. If you see in the backend the notice about a new version of QFIP please upgrade it. After the upgrading the PHP warnings will not appear again. And the first image should be picked up correctly.February 27, 2018 at 3:32 pm #12931
Thank you very much. I think, that did the trick! Awesome support, great plugin. Worth every penny! Keep up the good work!
- You must be logged in to reply to this topic.