Hello,
Thank you for contacting Rank Math support and sorry for the inconvenience.
It seems that you are experiencing a warning message related to the WP_Post_Type
class in WordPress. This is not an error, but a notice that indicates that something is not defined properly in your code or in one of your plugins.
One possible cause of this issue is a conflict with another plugin or theme that is using the WP_Post_Type
class in an incompatible way. To verify this, you can try disabling all other plugins except Rank Math and switching to a default theme, and then check if the warning message disappears. If it does, then you can enable them one by one until you find the culprit. You can follow this guide for more details: https://rankmath.com/kb/check-plugin-conflicts/
Another possible cause of this issue is that your WordPress version is outdated or corrupted. To fix this, you can try updating WordPress to the latest version or reinstalling it from the dashboard. You can also check if your PHP version is compatible with WordPress and Rank Math. We recommend having a PHP version of at least 8.0. You can check your PHP version from Rank Math > Status & Tools > System Status > Server
If none of these steps help, please let us know and we will investigate further. You can also share your WordPress login details in the Sensitive Data section of this ticket, so we can take a closer look at your settings.
We appreciate your patience and cooperation. Please let us know if you have any questions or feedback.
Best regards
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi there,
We appreciate your reply and your cooperation.
We would like to know if you have followed the steps we suggested to check for any plugin conflicts with Rank Math. You can find the guide we shared here: https://rankmath.com/kb/check-plugin-conflicts/
Please let us know if you have done this and if you have found any issues. Also, please tell us what PHP version you are using on your site. You can check this from Rank Math > Status & Tools > System Status > Server.
We also noticed that your /wp-admin and /wp-login.php pages are showing a SecuPress error (https://i.rankmath.com/i/rwyIkJ). This could be related to your security settings or a custom login page. If you are using a custom login page, please share the URL with us in the Sensitive Data section of this ticket.
We hope to hear from you soon and resolve this issue for you.
Thank you for trusting Rank Math.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I’m in PHP 8.1!
I deactivated all the extensions and reactivated them one by one.
The message appears when I activate my theme.
I’ve already had Rank Math with this theme though, I think, 1 or 2 years ago, so I don’t understand.
Hello,
This issue is caused by the fact that the object being loaded into the homepage doesn’t contain the information post_status
from the posts database table.
This happens when a theme or plugin is having full control over the details and content of the homepage and not using the default posts table to retrieve the object information.
We noticed that you have some theme/plugin doing that and if you dump the object data with the function get_queried_object()
you’ll see the missing entry we mentioned.
This would need to be resolved by the developers of the theme/plugin that is controlling the homepage.
Don’t hesitate to get in touch if you have any other questions.
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.