PHP Notice errors

#360741
  • Resolved User Growth
    Rank Math pro

    Just saw a bunch of notice errors popping up from Rank Math on a staging website of mine:

    Notice: Trying to get property ‘labels’ of non-object in /staging.evergreencontentposter.io/wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 421

    Notice: Trying to get property ‘singular_name’ of non-object in /staging.evergreencontentposter.io/wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 421

    Notice: Trying to get property ‘name’ of non-object in /staging.evergreencontentposter.io/wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 422

    Notice: Trying to get property ‘labels’ of non-object in /staging.evergreencontentposter.io/wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 423

    Notice: Trying to get property ‘singular_name’ of non-object in /staging.evergreencontentposter.io/wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 423

    Notice: Trying to get property ‘rest_base’ of non-object in /staging.evergreencontentposter.io/wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 424

    Notice: Trying to get property ‘name’ of non-object in /staging.evergreencontentposter.io/wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 424

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Those errors are related to the taxonomies on your website and it seems that our plugin is not able to retrieve at least one of the taxonomies created.

    ​​​​​​​Please check if you have one taxonomy set as primary for any post type that no longer exists and could cause issues.

    Don’t hesitate to get in touch if you have any other questions.

    It happens on content created by the Betterdocs plugin, how can I make sure that Rank Math is able to access those taxonomies?

    Oh wait I need to check this checkmark in RankMath:

    Add SEO Controls
    Add the SEO Controls for the term editor screen to customize SEO options for individual terms in this taxonomy.

    Still, there should be a check, in the code of RankMath, if that checkbox is not checked to not execute the code there. The error comes, because you don’t want to have the SEO controls there, but saying you don’t want the controls should not result in PHP errors on the page you don’t want controls, right?

    Seems like a fairly simple bug to fix this in your end that RankMath doesn’t throw an error anymore when it is not allowed to show itself on a page.

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look 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.

Viewing 4 replies - 1 through 4 (of 4 total)

The ticket ‘PHP Notice errors’ is closed to new replies.