-
Hello,
We apologize for the issue you are facing with the Error 500 on the
/wp-json/rankmath/v1/dashboardWidget
endpoint. This error can occur due to various reasons, including server misconfigurations or conflicts with other plugins.Here are a few steps you can take to troubleshoot this issue:
-
Check Website Status: Ensure your website is returning a 200 status code. You can check the status of your website using this tool.
-
API Requests Blocked by Firewall: Sometimes, server security or firewall settings can block API requests. If this is the case, you may need to whitelist the IP
193.138.6.5
and the user-agentRankMathApi/2.0.2; https://rankmath.com
in your firewall settings. -
Check for Plugin Conflicts: Deactivate other plugins temporarily to see if the issue persists. If the error goes away, reactivate them one by one to identify the conflicting plugin.
-
Enable Debugging: You can enable debugging in WordPress to get more detailed error messages. Add the following lines to your
wp-config.php
file:define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
After enabling debugging, check the
debug.log
file in thewp-content
directory for any errors that might provide more insight.
If you continue to experience issues after trying these steps, please reply to this ticket with your site URL, and a human agent from our support team will assist you further.
Sources:
Why Am I Getting "API Error: HTTP 400" Error » Rank Math
Why Am I Getting "API Error: HTTP 400" Error » Rank MathOk i suspect its a bug with latest 1.0.247
PHP 8.2 FATAL ERROR
I have tryied uninstall + reinstall and with 1.0.246 worked, as soon i updated it stopped again…
Hello,
Our development team is already aware of this issue, and they are working on a fix for this.
For now, you may patch this by changing the file
seo-by-rank-math/includes/modules/analytics/class-analytics-common.php
lines339
and340
from:
$difference = isset( $item['difference'] ) ? abs( $item['difference'] ) : 0; $is_negative = isset( $item['difference'] ) && abs( $item['difference'] ) !== $item['difference'];
to:
$difference = isset( $item['difference'] ) && 'n/a' !== $item['difference'] ? abs( $item['difference'] ) : 0; $is_negative = isset( $item['difference'] ) && 'n/a' !== $item['difference'] && abs( $item['difference'] ) !== $item['difference'];
We apologize for any inconvenience that might have been caused as a result of this issue.
Thank you.
Ok cool, thank you for the feedback!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
Thank you guys ok i already gave my 5 star review time ago.
Hello,
Thank you so much for your time and we appreciate your review.
Don’t hesitate to get in touch with us if you have any other questions.
-
You must be logged in to reply to this ticket.