Google XML Sitemaps
Bad link to pages with error message "it's not their fault" (3 posts)

  1. kerchmcc
    Posted 3 years ago #

    I am using WordPress 3.5.1 and Google XML Sitemaps 3.2.9
    Thesis theme 1.8.5

    Every day (until I deactivated the plugin) I get about 20 emails that appear to come from site admin (that's me)


    Bad Link To /what-pages-does-your-website-need/wp-login.php?action=register

    A user tried to go to http://www.wefixbrokenwebsites.com/what-pages-does-your-website-need/wp-login.php?action=register and received a 404 (page not found) error. It wasn't their fault, so try fixing it.
    They came from http://www.wefixbrokenwebsites.com/what-pages-does-your-website-need/wp-login.php?action=register

    The "user" got 404 errors on all kinds of pages they should not be accessing: script pages, and wordpress core files.

    I'd like to use this plugin but not if it keeps registering all these 404 errors.

    Is there some setting I've got not set right?


  2. kerchmcc
    Posted 3 years ago #

    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.

  3. Stuckster
    Posted 3 years ago #

    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>");

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google XML Sitemaps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic