Support » Plugin: Google XML Sitemaps » Bad link to pages with error message "it's not their fault"

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK well. I only thought that the Google XML Sitemap was causing the problem. It’s still here.

    I gotta get this fixed and if you only have an idea of someone who might be able to help, i’m not above groveling.
    thanks
    kerch

    Stuckster

    (@stuckster)

    Hi Kerch

    We were also suffering this issue. Think I found the cause.

    Take a look at your 404 template file. Someone at some point must have customized the code to send you a notification email each time a 404 registered on the site.

    See this page http://codex.wordpress.org/Creating_an_Error_404_Page

    I believe this is the offending code
    #setup a message to be sent to me
    $failuremess = “A user tried to go to $website”
    .$_SERVER[‘REQUEST_URI’].” and received a 404 error. “;
    $failuremess .= “They came from “.$_SERVER[‘HTTP_REFERER’];
    mail($adminemail, “Bad Link To “.$_SERVER[‘REQUEST_URI’],
    $failuremess, “From: $websitename <noreply@$website>”);

    Try commenting out each of these lines as follows (using #) and see if the emails stop.
    #setup a message to be sent to me
    #$failuremess = “A user tried to go to $website”
    #.$_SERVER[‘REQUEST_URI’].” and received a 404 error. “;
    #$failuremess .= “They came from “.$_SERVER[‘HTTP_REFERER’];
    #mail($adminemail, “Bad Link To “.$_SERVER[‘REQUEST_URI’],
    #$failuremess, “From: $websitename <noreply@$website>”);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bad link to pages with error message "it's not their fault"’ is closed to new replies.