• Resolved FmB

    (@fatihbasaran)


    Hello,

    I have a notice on my dashboard that says “e detected new post type(s) (section, highlight), and you would want to check the settings of Titles & Meta page and the Sitemap.” and i can’t get rid of it. Steps i followed;

    – Cleaned cache (all, including server side)
    – Disabled and re-enabled plugin
    – Cleaned transients
    – Clicked cross, closed the notice

    But the message still appears, still appears, still appears.

    What can be done?

    Thanks.

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author Rank Math

    (@rankmath)

    Hello @fatihbasaran

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

    That should not be happening.

    Can you please if you removed Rank Math’s transients or the entire site?
    https://i.rankmath.com/QyQtVG
    /wp-admin/admin.php?page=rank-math-status&view=tools

    Looking forward to helping you.

    Thread Starter FmB

    (@fatihbasaran)

    I did it already, i’d wrote above.

    Plugin Author Rank Math

    (@rankmath)

    Hello @fatihbasaran

    Thank you for confirming.

    It seems like that the AJAX request is not completing on your site.

    Can you please open the Chrome’s inspect tool >> then check the Network tab and then try clicking on the dismiss button and see if the admin-ajax shows 200 OK or if there is some error.

    Here is a screencast from my setup showing the dismiss working properly: https://i.rankmath.com/y80kqr

    Looking forward to helping you. Thank you.

    Thread Starter FmB

    (@fatihbasaran)

    Hello, it shows 200 and there’s no message with error. All green.

    Thank you

    Plugin Author Rank Math

    (@rankmath)

    Hello @fatihbasaran

    After taking a backup, can you please add the following notice to your theme’s functions.php file to remove the notification data from the Database? delete_option( 'rank_math_notifications' );

    Please remove the code immediately after reloading the page. Keeping the code will prevent Rank Math from showing any other notices.

    Hope that helps. Please let us know. Thank you.

    Thread Starter FmB

    (@fatihbasaran)

    Hello,

    I tried but unfortunately didn’t help. Oddly, in my website, the custom post types in the notice (highlight and section) are already not exists. Should i clear transients again after inserting the code?

    Thank you.

    Plugin Author Rank Math

    (@rankmath)

    Hello,

    Please share a few more details about the issue:

    1. Is there any other notice that “won’t go away” or is it just this one?
    2. Which post type is mentioned in the notice? And which theme/plugin is that post type related to?

    One more thing you could try is adding the following code to your theme’s functions.php file:

    update_option( 'rank_math_known_post_types', get_post_types( [ 'public' => true ] ) );

    Just like with the previous code, you should remove the code after reloading any page on your site.

    Let us know how that helps. Thank you.

    Thread Starter FmB

    (@fatihbasaran)

    Hello,

    There is not any other notice that won’t go away. It’s just this one.

    Mentioned post types are “section” and “highlight” types. I’d used “post type builder” addon before, but i don’t think it’s related to it. Because i’ve reinstalled post type builder plugin and there’s no sign about the post types i mentioned above.

    I put the code you given, but it didn’t change something.

    Also i’ve tried putting the code below to the functions.php;

    if( !function_exists( ‘prefix_unregister_post_type’ ) ) {
    function prefix_unregister_post_type() {
    unregister_post_type( ‘section’ );
    }
    }
    add_action(‘init’,’prefix_unregister_post_type’)

    but however it didn’t help as well. I’m using iThemes Parallax. It has a builder property but i didn’t use it so far.

    I’m about to go crazy, how a code could be such hard to clear?

    Thank you.

    Plugin Author Rank Math

    (@rankmath)

    Hello,

    The following code will suppress such notices:

    add_action( 'admin_init', function() {
    	if ( class_exists( 'RankMath' ) )
    		\RankMath\Helper::remove_notification( 'new_post_type' );
    }, 11, 1 );

    You can add it to the functions.php file of your theme or to a custom plugin. This one you will have to keep there, don’t remove it, otherwise the notice will show up again.

    We will investigate this issue and see if there’s anything we can do to prevent this from happening in the future. Keep an eye on our changelogs if you would like to stay updated.

    Hope that helps. If there’s any issue, please let us know. Thank you.

    Thread Starter FmB

    (@fatihbasaran)

    Thank you, now the notice’s gone away. I’ll be waiting for new updates.

    Best regards.

    Plugin Author Rank Math

    (@rankmath)

    Hello,

    Glad that helped.

    If there is anything else we can assist you with, please let us know. We are here to help.

    If it isn’t too much to ask for – would you mind leaving us a review here?
    https://www.ads-software.com/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us and would go a really long way.

    Thank you.??

    Hello, when I move products in woocommerce I get many notice like:
    SEO Notice: A previously published post has been moved to trash. You may redirect it

    But in setting set auto redirections.

    How to remove this notice ?

    Plugin Author Rank Math

    (@rankmath)

    Hello @luk911

    Firstly, this option should not be turned on:
    https://i.rankmath.com/GZWxLr
    /wp-admin/admin.php?page=rank-math-options-general#setting-panel-redirections

    Unless you want to create an advanced redirection and the type will be different than 301.

    WordPress automatically handles that.

    Secondly, the notice shows so you can define the URL to which you want to redirect the deleted post or set a redirection type.

    Hope that helps. Thank you.

    I can’t close this notice if I don’t want to redirect and this an issue.
    How to remove my +100 500 notice ?

    Plugin Author Rank Math

    (@rankmath)

    Hello,

    You can ignore those notices, they should disappear when you refresh the page or navigate to another page. Please let us know if that is not the case on your site.

    You can avoid the notices by first setting the posts (products) status to “Draft” and then deleting them.

    We will consider making it easier to hide these admin notices in the future.

    Hope that helps. Thank you.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Can’t get rid of persistent notice on dashboard’ is closed to new replies.