Uncaught Error: Class ‘WPSEO_OpenGraph_Image’ not found
-
Hello All!
Wondering if anyone else has encountered this issue – using both versions 9.6 and 9.7 of the core Yoast Plugin, we encountered an error message that reads:
Fatal error: Uncaught Error: Class ‘WPSEO_OpenGraph_Image’ not found in D:\home\site\wwwroot\wp-content\plugins\wordpress-seo\frontend\class-opengraph.php:566 blah blah blah…
I fixed this by adding this line of code to the \wordpress-seo\frontend\class-opengraph.php file, just above line 566:
require ‘class-opengraph-image.php’;
So I just manually grabbed the file where the “WPSEO_OpenGraph_Image” class resides. My question is, why is this not getting loaded on it’s own? The site is for a large client of ours and while this is a good fix for now, it’ll have to be maintained every time Yoast updates – so not a good long-term fix. I have attempted to troubleshoot this without any other plugins activated and it doesn’t seem to make any difference.
Thoughts anyone??
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Uncaught Error: Class ‘WPSEO_OpenGraph_Image’ not found’ is closed to new replies.