Empty 404 monitor with 404 template

#889544
  • Hi
    I’ve set a default 404 page for all not found pages using elementor page builder and woodmart theme setting.
    After this change, rank math 404 monitor is empty and doesn’t show any thing as 404 error.

    Let me know what is the problem and how to fix this?

    Thanks in advance

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

    We apologize for the issue you are facing with the Rank Math 404 Monitor being empty. When you set a custom 404 page using Elementor and your theme settings, it may prevent Rank Math from logging 404 errors because the server might not be recognizing those requests as 404 errors anymore.

    Here are a few steps you can take to troubleshoot and potentially resolve this issue:

    1. Check 404 Page Settings: Ensure that your custom 404 page is correctly set up and that it is indeed being triggered for non-existent pages. You can test this by trying to access a URL on your site that does not exist and see if the custom 404 page appears.

    2. Disable Custom 404 Page Temporarily: As a test, temporarily disable the custom 404 page setting in Elementor or your theme to see if Rank Math starts logging 404 errors again. If it does, then the issue is likely related to how the custom page is configured.

    3. Enable 404 Monitor Module: Make sure that the 404 Monitor module in Rank Math is enabled. You can do this by going to Rank Math SEO → Dashboard and checking if the 404 Monitor module is active.

    4. Check for Conflicts: Sometimes, other plugins or theme settings can conflict with Rank Math. Try deactivating other plugins one by one to see if any of them are causing the issue.

    5. Use Advanced Mode: If you haven’t already, consider switching to the Advanced mode in the 404 Monitor settings. This can provide more detailed logging of errors.

      • To activate it, go to Rank Math SEO → General Settings → 404 Monitor and select Advanced mode.

    If after trying these steps the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for raising this concern! We’re here to help you resolve it.

    Sources:
    How to Monitor 404 Errors with Rank Math SEO Plugin

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    This usually happens when you’re using a custom 404 page on your site.

    To fix this, please update this Rank Math file via FTP – /plugins/seo-by-rank-math/includes/modules/404-monitor/class-monitor.php

    Then in line 53, change this:
    $this->action( $this->get_hook(), 'capture_404' );

    To this:
    $this->action('template_redirect', 'capture_404' );

    Once done, check again the 404 Monitor and see if it’s already logging them.

    Please note that you may need to modify the code above each time you update Rank Math to detect your 404s.

    Let us know how this goes.

    It’s working now. Thank U
    Is there any available code snippet to add to functions.php that can always change this line?

    Hello,

    Unfortunately, we have no filter to update it as the code needs to be modified in the plugin files.

    Currently, there is no permanent fix for this. Our devs are working on this, and you can keep an eye on our changelog to get notified once an update with the fix for this is available: https://rankmath.com/changelog/

    For now, you will have to manually make changes to the plugin files after each update.

    Looking forward to helping you.

    Update v1.0.234:
    Added: New filter to change the hook used for monitoring the 404 page

    Hello,

    Thank you for getting in touch again.

    Yes, now you can use this filter code on your website instead of changing the code in the plugin file.

    Please don’t hesitate to let us know if you have any other questions.

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

You must be logged in to reply to this ticket.