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 to see the link]
-
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?
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 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.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.?
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.
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.
Let us know the results.
I have performed a conflict test but still the error remains “POST https://www.toycycle.co/wp-json/yoast/v1/indexing/posts 500 indexation-1592.js:1”
the wp-json folder is missingWe 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.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.
yes I’m using Cloudflare on my site
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 nomod_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.
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 3 years, 8 months ago by hassanzafar107.
- This reply was modified 3 years, 8 months ago by hassanzafar107.
@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?
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” and “https://www.toycycle.co/wp-json/yoast/v1/link-indexing/posts” what can cause this ?
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?
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”.
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”.
4. Yes all are updated.
This all started when I had to change my permalinks structure.- This reply was modified 3 years, 8 months ago by 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. 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/.
We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.
- The topic ‘Start SEO data optimization error’ is closed to new replies.