• Resolved Mitchell D. Miller

    (@brainiac)


    Hello Yoast:
    Using: Plugin Version 15.2.1 + WordPress 5.5.3

    Got this message on one site:

    Because of a change in your home URL setting, some of your SEO data needs to be reprocessed.

    NOTE: home URL setting is defined: cannot change.

    Clicked: “Start SEO Data Optimization.”

    Results:

    1. POST /wp-json/yoast/v1/indexation/prepare = 301 result
    2. GET /wp-json/yoast/v1/indexation/prepare/ = 404 result

    Message:

    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.

    How can I fix this error?

    Best wishes,
    Mitchell

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

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

    (@devnihil)

    @brainiac We are sorry to hear that you’re having trouble with our plugin. We totally understand how that could be frustrating for you to see a false positive notice. We’ve identified several concerns in your message and responded to each below:

    Because of a change in your home URL setting, some of your SEO data needs to be reprocessed.

    From release v15.1, Yoast SEO can now detect the home URL or permalink structure changes and if there has been a significant change, Yoast SEO needs to run the SEO data optimization again. However, we understand that you haven’t changed anything related to the notice but you are seeing the relevant notice.

    Can you please confirm whether you have performed the SEO data optimization located under the Yoast SEO>Tools page on your site’s dashboard? If not, can you please run the relevant analysis to see if that drops the relevant notice for you?

    However, if you have already performed the relevant analysis, can you please deactivate and reactivate the Yoast SEO plugin temporarily on your site to see if that drops the relevant notice for you?

    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.

    To troubleshoot the issue, can you please follow the steps below:

    ? Install & activate the Yoast Test Helper plugin
    ? Go to your WordPress admin dashboard go to Tools (sidebar) > Yoast Test
    ? Locate the Yoast SEO section and select the “Reset indexable tables & migrations” button
    ? After resetting, go to the WordPress admin dashboard, and then go to the SEO (sidebar) > Tools section
    ? Click the “Start SEO data optimization” button

    Could you please let us know if the issue is resolved?

    Thread Starter Mitchell D. Miller

    (@brainiac)

    Hello @devnihil :
    Thank you for fast reply.

    I backed up database, then performed all of your steps.

    I also disabled “REST API: Head endpoint” – before one test.

    Same result. From Javascript console:

    XHR GET /wp-json/yoast/v1/indexation/prepare/ [HTTP/2 404 Not Found 68ms]

    Best wishes,
    Mitchell

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    We understand you got this result when initially performing the SEO data optimization:

    POST /wp-json/yoast/v1/indexation/prepare = 301 result
    GET /wp-json/yoast/v1/indexation/prepare/ = 404 result

    The 404 URL corresponds to the WordPress REST API that our plugin uses to fetch information of your posts. After further inspection, we noticed that before the 404 error there’s a 301 redirect from a URL without trailing slash to a URL with a trailing slash: /wp-json/yoast/v1/indexation/prepare redirects to /wp-json/yoast/v1/indexation/prepare/ The latter URL doesn’t exist a 404 error is returned.

    We suspect the redirect is caused by a server rule in your .htaccess file. You may want to have a look at this forum thread here where a similar issue is described.

    If you are unsure what server rule is causing the redirect, we’d recommend you reach out to your hosting provider and bring this issue to their attention. They’ll be able to assist you further and hopefully review and remove any offending rules in your server that are causing that redirect. Once the redirect is fixed, we’d expect that the SEO data optimization would be completed without any further issues.

    Thread Starter Mitchell D. Miller

    (@brainiac)

    Hello @mikes41720 :
    Thank you for research and reply.

    I tried again, using Apache with log level “trace5.”

    Apache could not find wp-json/yoast/v1/indexation/prepare so it added slash.

    applying pattern '^(.*[^/])$' to uri 'wp-json/yoast/v1/indexation/prepare'

    Could this trailing slash mess up the SEO Data Optimization?

    Best wishes,
    Mitchell

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    While we don’t think the relevant trailing slash at the end of your site URL could possibly mess up with the SEO data optimization, we’d like to know what exactly happens when you tried with Apache with log level “trace5”. Did you find anything?

    If not, we’d like you to please perform a conflict check to see whether this shows anything. You can find the relevant conflict check guide here. https://yoast.com/help/how-to-check-for-plugin-conflicts/

    Thread Starter Mitchell D. Miller

    (@brainiac)

    Hello @mazedulislamkhan :
    Thank you for new suggestion. But I fixed it another way.

    I unblocked access to server, /wp-json, /wp-admin + set WP_DEBUG = true before installing Health Check plugin.

    Plugin could not connect with sftp. Error 500 – nothing in error log or display.

    I wondered – why am I doing this?
    So I clicked on “Learn more” – discovered wp yoast index.

    It worked.

    I appreciate all the suggestions and time that you and your colleagues provided to solve my uncommon problem.

    I gave plugin a 5 star review.

    Best wishes,
    Mitchell

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘SEO Data Optimization: 404 not found’ is closed to new replies.