-
Hello,
In the “Dashboard” section of the Rank Math plugin, the content and widgets were not loading — everything was blank.
While checking for the issue, I found the following warning in the debug.log file:
abs() expects parameter 1 to be numeric, string given
This error appears around line 339 in the fileclass-analytics.php
.As a temporary fix, I modified the line to:
abs((float)$value1 - (float)$value2);
After this change, the dashboard content started to display correctly again.
However, I don’t know why this issue occurred. Is it because Google Analytics data is missing or is there a problem with how the data is handled?
Here’s what I’d like to ask:
1. Can you explain the root cause of this issue?
2. Will there be a permanent fix in a future update?
3. What is the best way to avoid such errors going forward?Both Rank Math and WordPress are up to date.
Thank you.
Screenshot: https://imgur.com/a/JPjLLhs
The ticket ‘Rank Math Dashboard not showing content – abs() error’ is closed to new replies.