It’s a really good practice to track down 404 errors. I found a bunch on my photography blog that were being caused by a unique problem. My WordPress theme was creating a link to older posts that didn’t exist. The problem with this is Google’s spiders will follow that link, only to find a 404 error page. It’ll kill you EVERY time!
Here’s the PHP that was there before the problem.