404 monitor empty

#743857
  • Resolved Craft Up
    Rank Math free

    Hello,

    We used to change this code to the class-monitor.php file for the 404 monitor to work but since the latest version we get a fatal error. Can you help us with a solution?

    This was the code:
    “If that’s the case, 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’ );

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    We’ve tried the modified code in the file with the latest version of Rank Math, but we’re unable to replicate the issue.

    Could you please try to copy and paste this text exactly on that line to ensure the quotation marks are correct?

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

    If the issue persists, you must have received an email from WordPress with the details about the fatal error. Please share it with us here so we can check.

    If you haven’t received the email with the error code, you can follow this guide to enable debugging in WordPress
    https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, and they will help you locate the log file.

    Having an error log will help us determine what is causing the critical error on the 404 Monitor.

    Let us know how this goes.

    Hello, tried again now and it seems to work. I dont know what happened because I doubled checked it.
    Maybe it was another problem.

    Anyway, now the 404 monitor works.

    Thank you!
    I will mark the topic as resolved.

    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 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/#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 3 replies - 1 through 3 (of 3 total)

The ticket ‘404 monitor empty’ is closed to new replies.