• Resolved Jake Evans

    (@forwardcreation)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jake Evans

    (@forwardcreation)

    Further info for troubleshooting – this site is running on PHP version 7.2.13. If I comment out line 75 in wp-seo-main.php, the site works. Looks like if we load autoload_52.php, instead of autoload.php, things get loaded & included correctly, and we don’t have any issue trying to instantiate WPSEO_OpenGraph_Image() on line 566 of the wordpress-seo\frontend\class-opengraph.php file.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We apologize for any inconvenience. If you remove the existing Yoast SEO plugin from your site and reinstall a fresh copy, does this resolve the issue?

    If the issue persists, we’d welcome you to submit a bug report here so our development team can investigate the issue further.

    Plugin Support Jerlyn

    (@jerparx)

    Closed due to inactivity.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught Error: Class ‘WPSEO_OpenGraph_Image’ not found’ is closed to new replies.