404 Monitor not logging

#285316
  • Resolved Jan Meza
    Rank Math business

    Hello,

    I’m trying to figure it out why I don’t see any logs in my 404 monitor log. I’ve already tried Re-creating Missing Database Tables and I’m still without any entries.

    Could you please help me figure this out?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Jan Meza
    Rank Math business

    Forget to mention that Fallback Behavior is set to default 404.

    http://prntscr.com/1ya29ny

    Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Upon investigation, it seems that you’re using an Elementor 404 Template to generate the 404 pages, that’s why Rank Math was unable to log them in the 404 Monitor.

    To fix this, please edit this file on your website’s root directory:

    /wp-content/plugins/seo-by-rank-math/includes/modules/404-monitor/class-monitor.php

    And change this on line 42:
    $hook = defined( 'CT_VERSION' ) ? 'oxygen_enqueue_frontend_scripts' : 'get_header';

    To this:
    $hook = defined( 'CT_VERSION' ) ? 'oxygen_enqueue_frontend_scripts' : 'template_redirect';

    Once done, clear your website’s cache and check again if the 404s are already getting recorded in the 404 Monitor.

    I hope that helps.

    Thank you.

    Jan Meza
    Rank Math business

    It works. Thank you so much for fast and kind response.

    Regards,
    Jan

    Hello,

    You’re welcome.

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

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

    If you 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 4 replies - 1 through 4 (of 4 total)

The ticket ‘404 Monitor not logging’ is closed to new replies.