Hi,
Today i got aware of an issue between my wordpress website and facebook. A few months ago i posted some pages and posts from my website to facebook page. When i looked at these posts, the text which comes from wordpress is still intact, but the featured images wont show. The orginal image is replaced with a grey or black image. This happens to all the pages with featured image from my website .
i used facebook debugger to find the root of the problem and this is what is sayd:
The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
Provided og:image URL, https://commonshare.be/wp-content/uploads/2020/09/Common-Share.png could not be processed as an image because it has an invalid content type.
What i tried to solve it:
1. Because i lately comphressed the images twice, once with the plugin shmush it and afterwards with robin image optimizer, i changed the feature image with a fresh uploaded one thats hasnt been comphressed in a former post. Then i tried to repost it on facebook without succes.
2. I downloaded the comphressed featured image and tried to post it on facebook and that was no problem for facebook to discplay it.
3. I deactivated Autoptimize, WP Smush it, robin image optimizer, wp optimize, redis object cache, w3 total cache (turned off object cashing because i have redis for that), really simple sll, complainz, Accelerated Mobile Pages, Rank math SEO, real time& replace, redirection these plugins, used to w3 to cache last time before deactivating but no succes.
These things i changed a few days ago:
1. I deleted these plugins: Asset clean up, fast wp cache, Categorized tag cloud, manage/view post only, profile builder labels & place holders, simple custom css (leeg), titele remover, gutenberg, getwid , design, editor full width & gutenberg ultimate add ons verwijderd.
2. My hosting did install redis cache, they enabled GZIP and HTTP2 and pushed the PHP 7.2 to 7.4
Furthermore they edited the htacces file:
1. They limited revisions in the database; define( ‘WP_POST_REVISIONS’, 3 );
2. They disabled Cron; define(‘DISABLE_WP_CRON’, true);
3. Expire headers activation
4. disabled entity tags
5. # BEGIN IMAGE HOTLINKING
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?commonshare.be [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?google.com [NC]
RewriteRule .(jpg|jpeg|png|gif)$ – [NC,F,L]
# END IMAGE HOTLINKING
Can anyone help me solving this issue?
The page I need help with: [log in to see the link]