Support » Plugin: Yoast SEO » Site Health has error 500 when Yoast Free is active

  • Resolved WebDeb

    (@sillymoney)


    Before and after updating WordPress to 5.8.1 Site Health is Error 500

    “Request Timeout
    This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase ‘Connection Timeout’.

    so I contacted the web host and they said it’s a problem with Yoast.

    Then I got an email from WordPress:

    “Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Yoast SEO.

    Sure enough. If I deactivate Yoast (version is Version 17.1), site health runs a-ok.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support suascat_wp

    (@suascat_wp)

    @sillymoney

    We’re sorry you’re having an issue with accessing Site Health, we expect few more information about your setup. This might help us replicate the issue on our end:

    1. Can you confirm you are using the most recent Yoast SEO, v17.1? If you update, does the issue resolve?

    2. Are all your non-Yoast plugins and themes also updated?

    3. Can you confirm you are using WordPress 5.8.1?

    4. Does your setup meet the plugin requirements?

    Another possible cause could be the conflict with another plugin or theme. The fastest way to rule out any conflict, is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.

    Please test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you do not feel comfortable to do this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    We look forward to hearing from you.

    Thread Starter WebDeb

    (@sillymoney)

    1. recent Yoast SEO, v17.1? ==> yes

    2. non-Yoast plugins and themes also updated? ==> yes

    3. WordPress 5.8.1? ==> yes

    4. setup meet the plugin requirements? ==> yes
    PHP 7.4.23, Maria DB 10.3.31, Curl 7.71.0

    As for plugin conflict testing… I know what you mean but will have to wait for another day.

    It sounds like it is an unique problem.

    Thread Starter WebDeb

    (@sillymoney)

    In case it is revealing, this was the error sent by wp

    Your Site is Experiencing a Technical Issue

    Error Details
    =============
    An error of type E_ERROR was caused in line 3603 of the file nt/plugins/wordpress-seo/src/generated/container.php. 
    Error message: Uncaught Error: Class 'Yoast\WP\SEO\Surfaces\Classes_Surface' not found in.../plugins/wordpress-seo/src/generated/container.php:3603
    
    Stack trace:
    #0 .../plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php(271): Yoast\WP\SEO\Generated\Cached_Container->getClassesSurfaceService()
    #1 .../plugins/wordpress-seo/lib/abstract-main.php(65): YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container->get('Yoast\\WP\\SEO\\Su...')
    #2 ...plugins/wordpress-seo/inc/health-check-links-table-not-accessible.php(30): Yoast\WP\Lib\Abstract_Main->__get('classes')
    #3 .../plugins/wordpress-seo/inc/health-check.php(142): WPSEO_Health_Check_Link_Table_Not_Accessible->run()
    #4 .../public_html/wp-admin/includes/class-wp-site-health.php(192): WPSEO_Health_Check->get_test_result()
    #5 .../public_html/wp-admin/incl
    Plugin Support suascat_wp

    (@suascat_wp)

    @sillymoney

    Thank you for providing us more information.

    Error log shows one of the Classes not found in the plugin file.

    Could you please remove the current Yoast SEO plugin and reinstall it? Existing SEO settings and information won’t get deleted upon deleting the plugin.

    We look forward to hearing from you.

    Thread Starter WebDeb

    (@sillymoney)

    I removed the plugin (deleted the folder) then reinstalled Yoast but error 500 still occurs which really surprised me.

    I changed from Enfold Theme to TwentyFifteen theme and Site Health ran ok.

    Summary:
    Enfold Theme with Yoast = error 500
    Enfold without Yoast = ok
    TwentyFifteen with Yoast = ok

    riveting…

    Plugin Support Michael Tina

    (@mikes41720)

    Hi @sillymoney

    When you got the 500 error again when switching to the Enfold theme, did it still have the same error details regarding the “Error message: Uncaught Error: Class ‘Yoast\WP\SEO\Surfaces\Classes_Surface’ not found in…/plugins/wordpress-seo/src/generated/container.php:3603”

    We understand that when performing a conflict check, it looks like everything is fine when you use a default WP theme and only Yoast SEO v17.1 as the plugin enabled, but encounter it when you switch to your preferred Enfold theme.

    Could you let us know which Enfold theme this is and if it is updated to the latest version?

    Thread Starter WebDeb

    (@sillymoney)

    Enfold is up to date v4.8.6.2. Theme link:
    https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990

    The Uncaught error message “Your Site is Experiencing a Technical Issue” was sent to admins by WordPress and so far has not sent another one and it was not in the error log.

    The error log remains empty. BackupBuddy has a way to test the error log so I performed the test and the BackupBuddy test error was recorded.

    Enfold has a Facebook group. I will ask if anyone else is having a similar experience.

    Thanks

    Plugin Support devnihil

    (@devnihil)

    @sillymoney Thanks for your reply.

    Can you please check whether the Enfold theme has any type of built in caching feature, and if so to try clearing it?

    Looking at the error details, we observe that a class that is no longer available in the plugin, although ‘Classes_Surface’ is still being referenced. This usually happens when the plugin files are cached and some old files are still used after updating the plugin. On occasions, this causes temporary errors that resolve themselves once the cache has been cleared.

    Also, can you please try clearing the cache from your other plugins, server and CDN (e.g. CloudFlare) before and after updating Yoast SEO? If you are not sure how to clear the cache from a theme or plugin please speak to those authors. If you want to clear cache from the server, please speak to your host provider.

    Thread Starter WebDeb

    (@sillymoney)

    Thanks for the response.

    Caching is not being used on this site via plugin or theme. No CDN in play.

    There was an Enfold theme option to “enable jquery migrate” ==> I turned it off

    There was an Enfold theme option to “Delete old CSS and JS files” ==> I deleted them.

    There was something in the child theme functions.php file that was no longer needed ==> I got rid of it functions.php from the child theme.

    There was no response on the Facebook group regarding having the same issue. It’s a pretty active group. No one responded that they had a similar issue.

    I have a test site that is not a clone of this one, but has an early copy of the site. I activated Enfold and made sure the theme’s performance settings were same, added Yoast without making settings ==> site health worked fine

    (Another site I look after that uses Enfold uses a different seo plugin and site health runs fine.)

    Again I turned off all plugins except Yoast 17.2 > ran site health > it stalls
    Deactivated Yoast > ran site health > it runs immediately.

    I guess at this point…
    When I want to run Site Health, I will deactivate Yoast before doing so.

    Plugin Support Michael Tina

    (@mikes41720)

    Hi,

    Thanks for getting back to us and for providing those details.

    Would it be possible for you to try and reproduce this on a fresh test site with a default WordPress install and only Yoast SEO and Enfold activated?

    It looks like this might be something we might need to investigate further, as it might be something specific to your set-up, which we can’t check over these public forums. You might want to consider Yoast SEO Premium so we can take a closer look at this.

    Otherwise, we’ll be keeping this forum thread open for a time so others can chime in and provide suggestions or feedback as well.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Site Health has error 500 when Yoast Free is active’ is closed to new replies.