Hello @tim-reeves,
Thank you for contacting Rank Math support.
This issue usually happens when the archive page is not able to fetch the image from the first post/product of that archive to set it as the og:image.
In this case, please make sure that all the custom post types on the website have a fallback thumbnail for Facebook under WordPress Dashboard > Rank Math > Titles & Meta settings and see if that works for you.
Let us know how that goes. Looking forward to helping you.
Thanks for your prompt help. I looked through ALL the settings under “Titles & Meta” and made sure that there was a default image set, and explicit images where an input field was available. However, the problem remains. I did notice the problem-causing request:
request: “GET /podcast/ HTTP/2.0”
Looking at the title and meta settings, there is Category (light grey background) of “Post + Podcast”, with the available categories Keywords and Podcasts, but neither of these offer an image setting, only Archive Title and Archive Description.
So I’m a bit stumped…
Could you not simply protect class-image.php from causing the warning?
Hello @tim-reeves,
Let’s try using the following filter code to disable the fallback image functionality:
add_filter( 'rank_math/opengraph/pre_set_content_image', '__return_true' );
You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/
If that doesn’t work, head over to your WP Dashboard > Rank Math > Status & Tools > System Status and click the “Copy System Info to Clipboard” button, and paste it here so we can further analyze the issue.
Looking forward to helping you.