• Resolved JacobTheDev

    (@revxx14)


    I’m working on a theme which uses REST requests and I’ve hit a snag that appears to be related to this plugin. Every time I try to make a REST request, I’m getting a 500 error with the following text:

    Fatal error:  Uncaught Error: Class 'WPSEO_Configuration_Options_Adapter' not found in /var/www/[redacted]/public_html/wp-content/plugins/wordpress-seo/admin/config-ui/class-configuration-service.php:42
    Stack trace:
    #0 /var/www/[redacted]/public_html/wp-content/plugins/wordpress-seo/admin/config-ui/class-configuration-service.php(33): WPSEO_Configuration_Service->set_default_providers()
    #1 /var/www/[redacted]/public_html/wp-content/plugins/wordpress-seo/wp-seo-main.php(307): WPSEO_Configuration_Service->initialize()
    #2 /var/www/[redacted]/public_html/wp-includes/class-wp-hook.php(286): wpseo_init_rest_api(Object(WP_REST_Server))
    #3 /var/www/[redacted]/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #4 /var/www/[redacted]/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /var/www/[redacted]/public_html/wp-includes/rest-api.php(432): do_action('rest_api_init', Object(WP_RES in <b>/var/www/[redacted]/public_html/wp-content/plugins/wordpress-seo/admin/config-ui/class-configuration-service.php</b> on line <b>42</b><br />
    

    I’ve tried different themes and disabling all other plugins; it’s definitely something with Yoast SEO.

    REST requests work fine on the production server, but on my local server, this error keeps occurring. The live site is a standard WordPress install, while the local one is a multisite install (I’ll ultimately be replacing the live site with the local multisite version). I suspect that this is occurring due to it being a multisite.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Typically this error is related to either the version of Yoast or WordPress being out of date. Can you please confirm you are using the most recent Yoast v6.2? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-premium-plugin/

    Can you confirm you are using WordPress 4.9.2? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more:

    https://yoast.com/why-we-dont-support-old-wordpress-versions/

    ​If you update to the most current version of WordPress, does this resolve the error?

    Thread Starter JacobTheDev

    (@revxx14)

    Yes, everything’s up to date.

    Can you please confirm whether the issue persists while migrating the local site to a live server?

    Thread Starter JacobTheDev

    (@revxx14)

    I’m not sure how, but it’s working correctly now. I think I may have just neede to de-activate it and then re-activate it. I suspect it was an issue with downloading from a live site and then setting it up locally; like some setting didn’t transfer or something. All is good now, I appreciate the assistance!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Uncaught Error: Class ‘WPSEO_Configuration_Options_Adapter’ not found’ is closed to new replies.