I keep getting a undefined requests sent to one server. It doesn't happen on other sites following the same template, leading me to believe I have made an error somewhere in my PHP.
[Thu Mar 26 13:56:38 2009] [error] [client (removed)] File does not exist: (site path removed)/undefined
Sometimes it has a referer address and sometimes it doesn't. When trying to use my own error handler (works but doesn't hit the error handler for this)
This is the request from the access log. It usually exists after a page load, not always the root of the site.
(removed) - - [26/Mar/2009:13:56:38 -0500] "GET /undefined HTTP/1.1" 404 706 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 (.NET CLR 3.5.30729)"
Is there something I should be setting in PHP so I can see more about these requests? Maybe I need to set something in Apache? If it was a constant error it would be easier to find, but it's often different addresses and varying times.
Undefined requests and logging the error
Moderator: General Moderators
Re: Undefined requests and logging the error
"undefined" doesn't really come up in PHP but it does with JavaScript. You have any kind of AJAX working on your site?
Re: Undefined requests and logging the error
It likely is a javascript issue. With your suggestion I looked more at the legacy javascript code. It was apparently trying to preload an image that doesn't exist. I assume this will correct the issue by removing that line.