Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
Our development team is already aware of the issue and working on a solution regarding the logs you have sent.
You can disable the notice by setting the WP_DEBUG_DISPLAY
and WP_DEBUG_LOG
constants to false in your wp-config.php file.
Alternatively, you can add the following filter to rank-math.php file to fix these warnings/notices:
add_filter( 'doing_it_wrong_trigger_error', '__return_false' );
Here is how to create the rank-math.php file: https://rankmath.com/kb/wordpress-hooks-actions-filters/#rank-math-php-file
Looking forward to helping you.
Hello,
As a follow-up:
We have released a Beta update that fixed the issue.

Please remove the filter and enable the Beta update by following this guide:
https://rankmath.com/kb/version-control/#beta-updates

If you are unable to see an update, please clear Rank Math’s transients from:
WP Dashboard > Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients

Please clear the caches, server, and WordPress after updating.
Let us know how it goes.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.