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 already released a fix in our beta version:
https://rankmath.com/changelog/beta/
We don’t have the estimated time for when it will be added to our latest update, but it will be rolled out soon to fix the error you shared.
Meanwhile, 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
We really appreciate your kind patience regarding this matter.
Looking forward to helping 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.