Support » Plugin: Yoast SEO » E_parse error breaks the site.

  • Resolved WebMaster


    Hello, today out of a sudden (I wasn’t doing anything on the site for few days) an error occured and made the site break. (no page was accessable). The error I received in the mail was :

    An error of type E_PARSE was caused in line 3211 of the file /home/emredanisan/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php. Error message: syntax error, unexpected end of file, expecting ‘(‘

    So far I disabled the plugin to be able to make the site online again. But is there a fix for it? I am using the latest version 15.7 of the plugin.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support devnihil


    @emreselcuk We’re sorry to hear you are experiencing this issue on your site.

    If after ensuring that both WordPress, Yoast SEO, and your other plugins and themes are up to date the issue is still occurring, we’d next recommend performing a conflicting check to see whether another plugin or theme is interfering with the Yoast SEO Plugin. This will help us narrow down the exact cause and determine what the next steps are while saving you time.

    The fastest way to do this is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Nineteen. Test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin allows you to run a conflict check without affecting 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.

    Thread Starter WebMaster


    I used the Healt Check plugin you suggested, but it is unable to activate the yoast plugin in the troubleshoot mode.

    I tried to disable all the plugins and change my theme to twenty twenty and activate Yoast, but this time I get this error, and it does not activate:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected end of file, expecting ‘(‘ in /public_html/wp-content/plugins/wordpress-seo/src/generated/container.php on line 3211

    Plugin Support Priscilla Chapman


    Hi @emreselcuk,

    We haven’t received similar reports about this kind of error. Can you try reinstalling the latest version of Yoast SEO manually using SFTP / FTP and clearing any cache on your site? There’s a guide to reinstalling the plugin here: Just a note: deactivating or deleting the plugin does not delete any of your SEO settings or data from the database.

    If that doesn’t help, Sometimes the Health Check plugin isn’t able to activate/deactivate certain plugins, unfortunately. Have you considered setting up a separate staging site to do these tests?

    Some hosts have tools available to easily create and set up a copy of your site, so we recommend checking with your hosting provider. If not, you can always use one of the staging or backup/restore plugins on the plugin directory.

    We hope this helps.

    Plugin Support 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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘E_parse error breaks the site.’ is closed to new replies.