• Resolved one3rdnerd

    (@one3rdnerd)


    Hello,

    On a new install of WordPress using WP 6.0.2 I am getting the error Failed to Fetch when trying to run the Optimize SEO data tool.

    Oops, something has gone wrong and we couldn't complete the optimization of your SEO data. Please click the button again to re-start the process.
    
    Below are the technical details for the error. See this page for a more detailed explanation.
    
    Error details
    Error message
    Failed to fetch

    Is there a way I can hide this notification if the tool won’t work?

    I have tried re-installing WordPress.

    I have never seen this issue before and I am running the same plugins and theme on all sites.

    I turned on Troubelshooting mode so all plugins and the theme were turned off. But when I try and just activate Yoast SEO I get the following error:

    When enabling the plugin, wordpress-seo, a site failure occurred. Because of this the change was automatically reverted. Enable anyway

    So I click “enable anyway” and try again and I’m still getting the error:

    Oops, something has gone wrong and we couldn't complete the optimization of your SEO data. Please click the button again to re-start the process.
    
    Below are the technical details for the error. See this page for a more detailed explanation.
    
    Error details
    Error message
    Failed to fetch

    Please advise.

    Thanks

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

    (@devnihil)

    @one3rdnerd We’re sorry that you are experiencing problems with our plugin and know how frustrating it is to see the optimization failed to complete. We understand that you are getting the error below when trying to run the SEO data optimization.

    Oops, something has gone wrong and we couldn’t complete the optimization of your SEO data. Please click the button again to re-start the process.

    First, I want to assure you that not performing the optimization process will not affect your site negatively in search results. Additionally, the optimization process will run silently in the background as content on your site is created, modified, or removed. As the optimization process makes our plugin work more efficiently, let’s look into what might be causing this on your site. If you’d like to skip directly to the next steps, we have summarized our findings at the end of these instructions.

    We have seen this notice appear for sites where the previously optimized data is invalid or when there is a plugin or theme conflict. We’ll start with a reset of the optimization to make sure we’ve cleared out previously optimized data. You may be hesitant to reset data, but we can assure you that this does not undo any of the hard work you’ve done when it comes to the SEO of your content.

    To reset the data, please follow these steps:

      ? Install & activate the?Yoast Test Helper?plugin
      ? Go to your WordPress admin dashboard > Tools (sidebar) > Yoast Test
      ? Locate the Yoast SEO section and click on the ‘Reset indexables tables & migrations’, ‘Reset Prominent words calculation’, and ‘Reset Internal link counter’ buttons. After each click, the page will reload to confirm that each reset was successful.

    Now that we have removed any previously stored data, we’ll need to rerun the data optimization. You have a few options to run the SEO data migration:

      ? Inside the WordPress admin area:?This is the method where you saw the above error.
      ? Use the?WP-CLI commands:?This requires access to your server through a terminal service. Your web host may be able to help. If you have a large site, we highly recommend this method.

    If the optimization completes successfully after the reset, you are ready to start using Yoast SEO and its features.

    If the SEO data optimization doesn’t complete after the reset, we’ll need to gather some information from your browser to determine the next steps. Please open your browser’s console and check for any JavaScript errors. If you’re not familiar with your browser console, we have a guide that will help:?How to find JavaScript errors with your browser’s console.

    We have a list of known error codes?here?(step 6) with recommended solutions. If the error is not listed or you have questions about the error, please provide us with a screenshot of the error.

    Summary of findings

    The most common causes are invalid previously stored data or a conflict with a plugin or theme on your site. The next steps are:

    Can you please inform us of the results?

    Thread Starter one3rdnerd

    (@one3rdnerd)

    I tried all of this and it didn’t work but I found the solution when looking at the console I could see mixed content issues with http URLs being loaded.

    We changed the URL to https under Settings > General and that resolved it.

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Optimize SEO Data – Failed to fetch’ is closed to new replies.