Title: Start SEO data optimization error
Last modified: March 10, 2021

---

# Start SEO data optimization error

 *  Resolved [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * (@hassanzafar107)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/)
 * Every time I start SEO data optimization it just ends up showing error in console“/
   wp-json/yoast/v1/indexing/posts:1 Failed to load resource: the server responded
   with a status of 500 ()”
    this folder wp-json doesn’t exist in my root wordpress
   directory. I have also tried yoast tesgt helper but it was of no use. Anyone 
   please guide how can I optimize seo data.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstart-seo-data-optimization-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  [Rumejan](https://wordpress.org/support/users/onlyincebu/)
 * (@onlyincebu)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14161201)
 * Hello!
 * Sorry for the trouble. Did you reset the Internal link counter, Prominent words
   calculation, and Indexables tables & migrations? If not, please do so first. 
   You may follow these steps:
 * 1. Go to Tools -> Yoast Test
    2. Locate the Yoast SEO section and select the ‘
   Reset Internal link counter,’ ‘Reset Prominent words calculation,’ and ‘Reset
   Indexables tables & migrations’ buttons 3. Once done, perform the data optimization
   again under SEO -> Tools.
 * Does that resolve the issue?
 *  Thread Starter [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * (@hassanzafar107)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14164692)
 * I have done it twice but still I’m getting same error 500 at file “/plugins/wordpress-
   seo/js/dist/indexation-1591.js” making a request to “[https://mysite.com/wp-json/yoast/v1/indexing/posts](https://mysite.com/wp-json/yoast/v1/indexing/posts)
   500”.
    I have check my root directory and the above mentioned wp-json folder 
   is not present. what should I do about it? My curent Version is 15.9.1.
 *  [Suwash Kunwar](https://wordpress.org/support/users/suascat_wp/)
 * (@suascat_wp)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14165071)
 * [@hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * Just to be sure, we would like to rule out any plugin or theme conflicts that
   may occur. The fastest way to do this is to **deactivate all non-Yoast plugins
   and switch to a standard theme** like [Twenty Nineteen](https://wordpress.org/themes/twentynineteen/).
 * Test this on your development or staging site, if you have one. If not, we recommend
   using the [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
   plugin. This plugin allows you to run a conflict check **without affecting normal
   visitors to your site**.
 * As we can imagine that 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](https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts/).
 * Let us know the results.
 *  Thread Starter [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * (@hassanzafar107)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14165930)
 * I have performed a conflict test but still the error remains “POST [https://www.toycycle.co/wp-json/yoast/v1/indexing/posts](https://www.toycycle.co/wp-json/yoast/v1/indexing/posts)
   500 indexation-1592.js:1”
    the wp-json folder is missing
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14166182)
 * We are sorry to hear that you’re still having trouble with SEO data optimization.
   The `/wp-json` isn’t a folder but the built-in WordPress Rest API that is located
   here [https://www.toycycle.co/wp-json](https://www.toycycle.co/wp-json).
 * The issue you’re currently experiencing is specific to the Rest Route Path that
   doesn’t exist which is odd. Something on your setup is modifying the relevant
   Rest API Path and as such, Yoast SEO data optimization isn’t getting any data
   when sending a `POST` request to the relevant route.
 * That said, can you please confirm whether you’re using Cloudflare on your site?
 * We look forward to hearing from you.
 *  Thread Starter [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * (@hassanzafar107)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14166862)
 * yes I’m using Cloudflare on my site
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14167041)
 * Thanks for your confirmation. Can you please try disabling the Cloudflare firewall
   or anything specific to security or disable Cloudflare completely (temporarily)
   on your website to see whether this resolves the issue for you?
 * If the issue persists, we recommend you contact your web host to check the `mod_security`
   settings that prevent our plugin from accessing the REST API. If there are no`
   mod_security` settings preventing access at the server, you may have a custom`.
   htaccess` rule or security plugin that limits access to the WordPress REST API.
   Please review any security restrictions and whitelist the Yoast plugin for accessing
   the feature.
 * If you have a Web Application Firewall (WAF), like Cloudflare, please verify 
   that it is not set up to strip the parameter from the Yoast REST API requests.
   Some users have reported that some WAF setups are too strict in the prevention
   of Blind SQL injection attacks. Your web host or server admin can help you if
   you’re not familiar with WAF settings on your site.
 *  Thread Starter [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * (@hassanzafar107)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14172191)
 * I have check and can confirm that the Web Application Firewall settings are disabled
   and Cloudflare is blocking no request.
    I have also disabled wordfence and now
   only wp-rocket is running for cache on my site. I’m also using a large variety
   of plugins none off the rest is causing any problem but Yoast SEO
    -  This reply was modified 5 years, 2 months ago by [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/).
    -  This reply was modified 5 years, 2 months ago by [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/).
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14173682)
 * [@hassanzafar107](https://wordpress.org/support/users/hassanzafar107/) Thanks
   for your reply.
 * Regarding the 500 status error, that type of error will be logged on the server
   along with a more specific reason for the error. You may not have access to the
   server error log where the details of the 500 error are located, but if you ask
   for this information from your hosting provider they should be able to provide
   it upon request.
 * We would recommend for you to check with your hosting provider and see whether
   they are able to review their log files for the server and provide more specific
   information for the 500 error. Could you please check with them and request this
   so we would better try to discern the cause of the error?
 *  Thread Starter [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * (@hassanzafar107)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14183499)
 * I have been using a wp-rocket can this be cache relayed issue and i have checked
   server log for apache but now the error is changing between “[https://www.toycycle.co/wp-json/yoast/v1/indexing/posts&#8221](https://www.toycycle.co/wp-json/yoast/v1/indexing/posts&#8221);
   and “[https://www.toycycle.co/wp-json/yoast/v1/link-indexing/posts&#8221](https://www.toycycle.co/wp-json/yoast/v1/link-indexing/posts&#8221);
   what can cause this ?
 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14183667)
 * Hi,
 * We are not sure what is causing the issue but its likely there is an issue with
   the server. While you may need to make a report with our developers we would 
   like some more information.
 * 1. When you did the conflict check did you run the SEO Data button when Yoast
   was the only plugin active and you were using a basic theme like 2020?
 * 2. Can you confirm your host provider is not blocking anything in this pathway:
   wp-json/yoast/v1/indexing/posts? If you are not sure, please contact them.
 * 3. If you were to contact your host provider and have them pull the server error
   logs are there any clues in the those logs which suggest the origin of the issue?
 * 4. Are all your non-Yoast plugins and themes also updated?
 *  Thread Starter [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * (@hassanzafar107)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14198801)
 * Yes I have tried everything and the problem was with wp-rocket then I turned 
   it off and optimization started but now the error is 500 on “[https://www.toycycle.co/wp-json/yoast/v1/link-indexing/posts&#8221](https://www.toycycle.co/wp-json/yoast/v1/link-indexing/posts&#8221);.
   
   1. Yes conflict was their 2. Yes my host is not blocking any requests 3. There
   is no error related to yoast and nothing mentions the above mentioned “Post request
   to url [https://www.toycycle.co/wp-json/yoast/v1/link-indexing/posts&#8221](https://www.toycycle.co/wp-json/yoast/v1/link-indexing/posts&#8221);.
   4. Yes all are updated. This all started when I had to change my permalinks structure.
    -  This reply was modified 5 years, 1 month ago by [hassanzafar107](https://wordpress.org/support/users/hassanzafar107/).
 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14200954)
 * [@hassanzafar107](https://wordpress.org/support/users/hassanzafar107/)
 * Ok! To clarify if you have WP Rocket cache turned off does the issue still happen?
 * We ask as we are not sure how to exactly interpret this statement: “I have tried
   everything and the problem was with wp-rocket then I turned it off and optimization
   started but now the error is 500”
 * If the issue still happens with WP-Rocket Cache we suggest two actions:
 * 1. Update to v16.0.2 of Yoast SEO and see if the issue happens.
 * 2. If the issue _still_ happens, based on the information you provided, we expect
   this to be a bug. We’re actively using the bug tracking on our GitHub repository
   so your best next step would be to create a new issue for our developers at [https://github.com/Yoast/wordpress-seo/issues/new](https://github.com/Yoast/wordpress-seo/issues/new).
   You will need an account to create a new issue. If this is your first bug report,
   please check out: [https://kb.yoast.com/kb/how-to-write-a-good-bug-report/](https://kb.yoast.com/kb/how-to-write-a-good-bug-report/).
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14228926)
 * 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 14 replies - 1 through 14 (of 14 total)

The topic ‘Start SEO data optimization error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 14 replies
 * 6 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/start-seo-data-optimization-error/#post-14228926)
 * Status: resolved