SEO data optimization does not complete successfully

Yoast SEO Premium comes with the functionality of internal linking suggestions. To get these internal linking suggestions, the plugin first needs to analyze your content, as described in this article on how to use the internal linking tool. We also have a text link counter that counts the internal links in and to your posts. We have combined these two features into the SEO data optimization analysis. In this article, we’ll discuss what you need to do when the SEO data optimization runs into some issues.

The analysis completed message is not saved

If the SEO data optimization has successfully completed you should see a confirmation message in the browser’s console window. In rare cases, the analysis completed message is not saved to your database and the button will reappear. If this happens, please run the analysis with a default theme and only Yoast SEO active to save the completed process to the database. Once the site-wide scan has successfully completed and saved to the database, you would not need to run it again in most setups.

Error: Oops Something Went Wrong

Sometimes the SEO Data button fails to run and it will show this notification. If you see this notification refresh the page and the SEO data button should reset. Most often this notification is output as a result of something blocking the REST API. We use the WordPress REST API in the backend to help run the tool and if it is blocked, this notification is outputted. To resolve it please do the following:

  1. Enable the browser’s console window using the steps here.

  2. Log in to your WordPress website.

    When you’re logged in, you will be in your ‘Dashboard’.

  3. Click on ‘SEO’.

    On the left-hand side, you will see a menu. In that menu, click on ‘SEO’.

  4. Click on ‘Tools’.

    The ‘SEO’ settings will expand providing you additional options. Click on ‘Tools’.

  5. Click on Start data optimization

  6. Look for errors in the ‘Console’ tab.

    – If the browser’s console window shows errors marked in red, please check for conflicts with other parts of your site.
    – If you see errors such as a 404 or a 403 or a 503 it is likely the result of the REST API being blocked. Please contact your host provider and have them verify that the file pathway mentioned is unblocked. Your host provider may need to make changes to permit Yoast to access the REST API. They may also need to make adjustments in the mod_security.
    – If you are using a security plugin, that may also generate an error. Please contact the security plugin authors for how to permit access.
    – If the site is using cache they may need to remove that file pathway from the cache. This is especially true if the site is using varnish.
    – Finally, some host providers may restrict the amount of REST API calls made. You may need to verify that no restrictions are in place.

  7. Switch to the ‘Network’ tab.

    If you see activity under the Network tab, the plugin is working behind the scenes. Please leave the window open until you receive the completed message or an error.

  8. If all of the above fail to resolve the issue, please send us an email to

No errors appear in the browser console

If the analysis fails to complete with a default theme and only Yoast SEO active, your server’s access and error logs should provide more insight as to why the issue happened. Please contact your webhost or server admin and request an audit of your server logs. If your webhost cannot pinpoint the cause, please provide our support team with a copy of both the error and access log for further investigation.