For some reason, every second or third page that is appearing in my recent hits statistics page is 'Page not found'. However, when I'm browsing around the site I'm not seeing any 'Page not Found' messages.

4 Mar 2007 - 18:27	Page not found   /	
4 Mar 2007 - 18:27	Access log settings   admin/logs/settings	
4 Mar 2007 - 18:27	Access log settings   admin/logs/settings	
4 Mar 2007 - 18:25	Page not found   /	
4 Mar 2007 - 18:25	Top pages in the past 1 hour   admin/logs/pages	
4 Mar 2007 - 18:25	Page not found   /	
4 Mar 2007 - 18:25	Top referrers in the past 1 hour   admin/logs/referrers	
4 Mar 2007 - 18:25	Page not found   /	
4 Mar 2007 - 18:25	Top referrers in the past 1 hour   admin/logs/referrers	
4 Mar 2007 - 18:25	Page not found   /	
4 Mar 2007 - 18:25	Access log settings   admin/logs/settings
4 Mar 2007 - 18:25	Access log settings   admin/logs/settings	
4 Mar 2007 - 18:25	Page not found   /	
4 Mar 2007 - 18:25	Access log settings   admin/logs/settings	
4 Mar 2007 - 18:24	Page not found   /	

And on the 'top pages' statistics page, 'Page not found' is the most popular:

95	Page not found  /	313 ms	30 sec
10	Access control  admin/user/access	1238 ms	12 sec

Any ideas?

Comments

VM’s picture

could be a few different things. A bad link. An old link that is no longer available. A page from a website that was crawled by search bots and has now been moved.

some more investigation about where the page not founds are coming from would be in order.

the / seems to be the problem, and will take some double checking of links on your part to figure out just where the path is that is referring to /

baronmunchowsen’s picture

Thanks for the help. Here are few more details for you:

I'm positive that it's not search robots or anything like that as it's on a development server at present. I'm also the only person using the site.

I logged in as a user 'Dolly', and from the homepage, I clicked one of my primary links 'why_bother' and then back to the homepage. In another browser, where I was logged in as the administrator 'Olly' I checked the 'Recent Hits' log and got the following:

4 Mar 2007 - 19:33 Welcome  home Dolly details #step 3: back on the homepage
4 Mar 2007 - 19:33 Page not found  / Dolly details 
4 Mar 2007 - 19:33 Page not found  / Dolly details 
4 Mar 2007 - 19:33 Why Bother  why_bother Dolly details #step 2: on the why_bother page - from here I clicked the homepage link again
4 Mar 2007 - 19:33 Page not found  / Dolly details 
4 Mar 2007 - 19:33 Welcome  home Dolly details  #step 1: first page - from here I clicked the why_bother link

Thus it would seem that drupal is doing something inbetween me requesting pages which is generating the 'page not found' link, rather than somebody clicking a bad link?

Titus98usn’s picture

I have the exact same problem. Every link I click on my test site also returns a page not found with: http://www.mysite.com// as the page in question.

baronmunchowsen’s picture

It's always good to know that someone's in the same boat!

What version of drupal are you using? Mine is Drupal 5.1.

Have you found a solution? I'm still looking.

VM’s picture

I've not been able to reproduce this.

do either of you or both of you ? have a $base_url set in settings.php ?

baronmunchowsen’s picture

I have enabled one in my settings.php file and it has not resolved the issue.

I do have a number of domains pointing at the same site:

www.example.com
www.example.co.uk

etc.

Is this likely to make a difference? I can't see why it would, but hey - what do I know!

Thanks for your help.

luyendao’s picture

I'm glad to come across this thread, because a site i just launched has 'page not found' as the top hits. I noticed when i hit the homepage, this 'mysterious' page also increments by +1 in hits.

I can't offer much insight into the problem, except that an old live site running 4.6 also has the same problem, so somewhere along the lines - drupal is reading something as an error. Could it be something syntax related within the page structure or the phptemplate engine, that just throws a benign error and drupal has a generic catch all?

Willdex’s picture

Just to keep up with this discussion and not making a new one, I'm experiencing a similar if not the same problem. Here's what I get:

content 2007-03-26 10:49 blog: updated Members' emails.. Bill Dexter view 
 user 2007-03-26 10:48 Session opened for Bill Dexter. Bill Dexter  
 access denied 2007-03-26 08:41 node/37 Visitor  
 access denied 2007-03-26 08:35 node/35 Visitor  
 access denied 2007-03-26 08:35 node/36 Visitor  
 access denied 2007-03-26 08:09 node/39 Visitor  
 access denied 2007-03-26 08:02 node/24 Visitor  
 page not found 2007-03-26 07:31 tracker Visitor
 page not found 2007-03-25 19:49 taxonomy/term/5/all Visitor  
 page not found 2007-03-25 19:49 taxonomy/term/4 Visitor  
 page not found 2007-03-25 19:48 taxonomy/term/3 Visitor  
 page not found 2007-03-25 19:48 taxonomy/term/2/3 4 Visitor  
 access denied 2007-03-25 19:42 node/30 Visitor 

--
Billy | Major: Accounting | CityTech@CUNY | Student Block.

Willdex’s picture

I'd really appreciate any suggestion. Just wanted to update: I've installed the path_redirect module; thought that it'll redirect all the taxonomy/*/all to their proper pages- it didn't - instead it said that the page will be redirecting to itself [infinite loop], so now I'm lost.
--
Billy | Major: Accounting | CityTech@CUNY | Student Block.

tmj2k7’s picture

I'm experiencing a similar problem, except it's only this single slash thing:

Page not found
/

hovering over it, the link is: http:///

I have base_url set and this is the only issue.

Modern Jurist: A Site For Lawyers

tmj2k7’s picture

I figured out what was causing my errors....did you at one time run a different codebase other than drupal and have URLs starting with an underscore? Thats what was doing it for me...google was indexing trying to find old pages like mysite.com/_here/rhejk.html and was getting 404s. For some reason that borks Drupal and it doesnt log the actual url, just a slash.

Either way, here's how to figure it out. Check the IP of those page not founds, if it's google, sign up for their webmaster tools and wait a couple days and it will give you a list of the URLs causing 404s - I clicked them and the message showed up in the logs just like that Page not found /.

As long as the pages listed don't really exist then just dont worry about it, as it will eventually be dropped by the index.

Modern Jurist: A Site For Lawyers

divermac’s picture

I got the same symptom (Page Not Found error in my 'Recent Hits' log showed up almost every other entry). The page listed was just '/' and so it didn't provide any help. However, after looking at the 'Top Page Not Found errors' log I noticed the top message was "modules/location/location.css." Doing a search showed me that the location.css file does not exist in that location and the reference to the file should be removed. It is discussed in http://drupal.org/node/124314. Removing the reference fixed my problems.

Zoologico’s picture

Nice work.

I had the same problem seeing "/" and Page not found errors for it.

Thanks to your lead I checked on the TOp Page not found errors: "admin/logs/page-not-found" and mine was coming from a photoframe module I am not even using, so I disabled it.
No more 404 in my logs (at least not from this).
Thanks!

r00tk1ll’s picture

Same thing here, the top 404 errors helped me figure out that mine was coming from a missing favicon.ico..