Hello @mte90,
Thank you for contacting Rank Math support.
We have shared the solution with the development team for internal discussion. They will check and include it in an upcoming update. You can keep an eye on our changelog to get notified about the latest features and updates: https://rankmath.com/changelog/
Please do not hesitate to let us know if you need our assistance with anything else.
Hello @mte90,
Can you please share more details, including how to replicate the issue and trigger the error/warning, so our development team can investigate this further?
Looking forward to hearing back from you.
I don’t know how it is happening, I just got tons of those in my error log and this easy fix resolved the issue for me.
For me that code is used probably to generate page description but in this case as dodoes’find the post type is happening in pages where there is no post type.
Hello @mte90,
Thank you for sharing the details. The developers are checking this internally and we will let you know once there is an update.
Please do not hesitate to let us know if you need our assistance with anything else in the meantime.
I have found another error
Warning: Attempt to read property “ID” on null in /home/clients/0310c843a1e585ae6463b6df3093460e/sites/wp-content/plugins/seo-by-rank-math-pro/includes/modules/schema/class-display-conditions.php on line 171 in the tag editing.
I changed the line:
if ( ( is_singular() || is_admin() ) && isset( $all['singulars'] ) && get_post_type() !== false ) {
The code is wrong as it is executed also in taxonomies and not only in post type editing.
Hello @mte90,
Our developers want to check this further on your site since we can’t replicate the issue on our end. Can you please email our development team at support@rankmath.com so they can investigate this further?
Looking forward to helping you.