I had a problem with activating / deactivating plug-in modules

#3590
  • Resolved Signal Stavropol
    Rank Math free

    I had a problem with activating / deactivating plug-in modules. The animation is spinning, but there is no change in the status of the modules. The installation wizard shows that everything is fine with compatibility.

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

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

    The description of this issue suggests that there could be a plugin on your site that is not playing nicely with Rank Math, are there any errors reported on the JS console of your browser on this page?
    Would you mind running the following diagnostic steps to determine whether it is indeed a plugin conflict: https://community.mythemeshop.com/tutorials/article/52-confirming-a-plugin-conflict/

    Looking forward to helping you. Thank you.

    ​​​​​​​

    I found a problem. As known in WordPress 4.4, RESTAPI and the wp-json/oembed virtual directory appeared, which created unnecessary pages with search engine indexing. To fix this problem, I added code to the functions.php file. This code created a problem in the work of your plugin.
    I will write you an additional email and attach this code.
    Please tell me how today the problem is solved with unnecessary pages created in the wp-json/oembed virtual directory?
    Thank you very much!

    Hi there,

    Thanks for the follow up.

    I am glad that you managed to isolate the cause of the issue. We will be looking forward to your email.
    If there is a huge number of pages that are affecting indexing, you can fix this by navigating to Rank Math > Sitemap Settings > General and lower the number of links per sitemap page.

    I hope this info helps.

    I saw that the code can be added here, here it is:

    <?php
    // функция php сверху нужна для functions.php, её копировать не надо!
    
    // Отключение rss ленты
    function fb_disable_feed() {
    wp_redirect(get_option('siteurl'));
    }
    
    add_action('do_feed', 'fb_disable_feed', 1);
    add_action('do_feed_rdf', 'fb_disable_feed', 1);
    add_action('do_feed_rss', 'fb_disable_feed', 1);
    add_action('do_feed_rss2', 'fb_disable_feed', 1);
    add_action('do_feed_atom', 'fb_disable_feed', 1);
    
    remove_action( 'wp_head', 'feed_links_extra', 3 );
    remove_action( 'wp_head', 'feed_links', 2 );
    remove_action( 'wp_head', 'rsd_link' );
    
    // Отключаем сам REST API
    add_filter('rest_enabled', '__return_false');
    
    // Отключаем события REST API
    remove_action( 'init', 'rest_api_init' );
    remove_action( 'rest_api_init', 'rest_api_default_filters', 10, 1 );
    remove_action( 'parse_request', 'rest_api_loaded' );
    
    // Отключаем Embeds связанные с REST API
    remove_action( 'rest_api_init', 'wp_oembed_register_route' );
    remove_filter( 'rest_pre_serve_request', '_oembed_rest_pre_serve_request', 10, 4 );
    
    // Отключаем фильтры REST API
    remove_action( 'xmlrpc_rsd_apis', 'rest_output_rsd' );
    remove_action( 'wp_head', 'rest_output_link_wp_head', 10, 0 );
    remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
    remove_action( 'auth_cookie_malformed', 'rest_cookie_collect_status' );
    remove_action( 'auth_cookie_expired', 'rest_cookie_collect_status' );
    remove_action( 'auth_cookie_bad_username', 'rest_cookie_collect_status' );
    remove_action( 'auth_cookie_bad_hash', 'rest_cookie_collect_status' );
    remove_action( 'auth_cookie_valid', 'rest_cookie_collect_status' );
    remove_filter( 'rest_authentication_errors', 'rest_cookie_check_errors', 100 );
    
    //Отключаем type="application/json+oembed"
    remove_action( 'wp_head', 'wp_oembed_add_discovery_links' );
    remove_action( 'wp_head', 'rest_output_link_wp_head' );
    remove_action( 'template_redirect', 'rest_output_link_header', 11, 0 );
    
    // Отключаем wp-emoji
    remove_action('wp_head', 'print_emoji_detection_script', 7);
    remove_action('wp_print_styles', 'print_emoji_styles');

    Hi there,

    Thanks for this information.

    I have just passed this on to our dev team and we will be getting back to you in a short while.

    We appreciate your patience.

    Todd
    Rank Math free

    Which WP version are you currently using?

    Can you please share a few examples of such that you intend to noindex with the code you added and any reason why you didn’t make them noindex using robots.txt file?

    This issue is outside the scope of support we provide but we would still love to help you resolve this issue.

    I am using WordPress 5.1.1. I began to understand in depth the essence of the problem and realized that the WordPress Rest API should not be disabled, as I did with the code. Problems with the prohibition of indexing pages / wp-json / no, since these pages http-headers initially assigned to “X-Robots-Tag noindex”. I realized that everything is great and no improvements are needed, including the need to prohibit indexing pages / wp-json / in robots.txt.
    As a result, your plugin had no problem. Thank you so much for your great plugin and your help.

    Todd
    Rank Math free

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?filter=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘I had a problem with activating / deactivating plug-in modules’ is closed to new replies.