/ undefined appears a lot of time in my 404 error log

Mostly in my error log I see a lot:

mysite.com/undefined (with referer coming from random pages of the website)

User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

(and some other user agent)

Of course, I checked the HTML or DOM for links with /undefinedor something like that, and there is nothing. I checked the network tab with the developer tools and nothing is requested on this page /undefined(with my chrome).

Then I installed javascript logger to save the error that occurred. And in the magazine there is nothing that throws undefined or something like that ...

It drives me crazy. Of course, if I go to the tihs page with my chrome, javascript doesn't print any errors

Note: I read everything here.

Edit

2: javascript eventlistener ( )

$("body").on("click", "a[href$='undefined']", function() {
    window.onerror('Bad link: ' + $(this).html()); //alert home base
});

. ( manual/ undefined )

google. - , .

, , .

+5
3

Google Group, . / , , -, :

"undefidend", :

<script type="text/javascript">
     window.suggestmeyes_loaded = true;
</script>
+3

, window.onerror .

javascript (, , iframe, javascript , , ), window.onerror . - , ( url) undefined,

+5

It seems that most likely the ajax request using "/" + variableand variableturns out to be undefined, not user. Do you use the library for AJAX calls? perhaps you can also try to catch the wrong url.

0
source

All Articles