Getting a notice when editing custom post type without category support

#83708
  • Resolved Alexander Stulnikov
    Rank Math free

    Created a custom post type without any taxonomy.
    And seeing this notice every time while editing this post type in admin panel:

    ( ! ) Notice: Trying to get property 'labels' of non-object in .../wp-content/plugins/seo-by-rank-math/includes/admin/metabox/class-post-screen.php on line 421

Viewing 3 replies - 1 through 3 (of 3 total)
  • Alberto
    Rank Math business

    Hello,

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

    “Notices” are just messages for developers to know how the code is performing, they are not even warning nor issues so you shouldn’t worry about it.

    But if you are seeing it, you might have the debug mode enabled, and if you are not developing, it is recommended to don’t have it enabled. Here is a guide about how to disable it: https://vdeck.ehost.com/help/article/wordpress-how-to-enable-or-disable-wp-debug

    Looking forward to helping you. Thank you.

    ​​​​​​​

    I’m a developer and I know what “Notice” is.

    β€œNotices” are just messages for developers to know how the code is performing

    This is not quite correct. In general “Notice” means “You probably shouldn’t be doing what you’re doing, but I’ll let you do it anyway”.

    And this notice makes debug logs “dirty” and harder to find any other issues.

    So please cleanup your code and do a proper variable checks.
    I really hope that you will heed my request.
    Thank you.

    Hello,

    We might have to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Getting a notice when editing custom post type without category support’ is closed to new replies.