Ok, so what's happening here?

<code>
07/25/2004 - 02:58	404 error: 'themes/xtemplate/custom/logo-background1.jpg' not fo	Anonymous		view details
07/24/2004 - 04:14	404 error: 'existing/address/	Anonymous		view details
07/24/2004 - 03:08	404 error: 'node/view/modules/taxonomy_context/image.js' not fou	Anonymous		view details
07/24/2004 - 00:24	404 error: 'themes/xtemplate/custom/logo-background1.jpg' not fo	Anonymous		view details
07/22/2004 - 14:00	404 error: 'another-existing/page' not found	Anonymous		view details
07/22/2004 - 10:56	404 error: 'vocabularly-term/themes/xtemplate/custom/xtemplate.css' not fo	Anonymous		view details
07/22/2004 - 10:56	404 error: 'yet-another-vocab-term/modules/taxonomy_context/images/tab.gif' not 	Anonymous		view details

This just doesnt make sense, those pages exist and are accessible?

Much thanks...

Nick

Comments

Bèr Kessels’s picture

Please remember that a lot of templates use base url. Thus all paths will be made ralative to the root url you filled in in conf.php

[Ber | webschuur.com]

Steven’s picture

Check if your theme still outputs a <base> tag.

Dash’s picture

How do you check that?
I use a modified ADC theme and I get these logs too, thousands of 'em. My base url in conf.php is set correctly, there is nothing in adc.theme that outputs a 'base' tag, anything referring to a url is 'path_to_theme()' or it just uses relative urls. Like Nick W, all the files are there and the theme obviously uses them coz the site works!

Sorry if I'm being thick...

****************
Slave to the Music

Steven’s picture

Basically check the output of your site for a <base> tag near the beginning. Because Drupal uses clean URLs, browsers think that the path structure consists of real directories. The base tag explicitly says "nope they aren't", so without it, clean URLs stop working.

Alternatively, it's possible that your site was hit by a 'stupid' website crawler which does not use the <base> tag. Try to find out the originating IP, and set up your Apache config, or your robots.txt to block the crawler.

mivox@www.drupal.org’s picture

I also have the problem with existing, working pages showing up as 404s in my logs, but even more puzzling to me are these:

404 error: 'basic/themes/absak/themes/absak/themes/absak/themes/	Anonymous
404 error: 'alternative-energy/themes/absak/themes/absak/themes/	Anonymous
404 error: 'catalog/https://www.absak.com/js/themes/absak/themes	Anonymous

It's as though it gets caught in some kind of loop, and tacks on all sorts of (normally valid) directories and whatnot to the url... I've hunted through my ENTIRE site, looking for any links that might be creating these 'garbage' paths, but all my links appear to be working fine!

unicyclemichael’s picture

I had the same problem. I was creating my own theme and left

<base href="http://www.somesite.com/drupal/" />

out of

page.tpl.php

shane’s picture

I *frequently* see this type of munged URL links resulting in 404s - and the tag exists and is being output correctly as part of the theme.

This is an ongoing problem I've seen in 4.5.0, 4.5.1, 4.5.2, and also in 4.6.0 - which worries/bothers me that people are getting 404s. Example

2005/race/sprint/gorge/data/themes/wicked/favicon.ico

"2005/race/sprint/gorge/data" is valid and
"/themes/wicked/favicon.ico" is valid

but the two munged aren't...

TIA!

kbahey’s picture

This issue was reported here http://drupal.org/node/13148

There is a patch that makes things a bit better, but there was no final solution to be agreed upon by developers.

You may want to post your own finding in that issue above, so it gets more attention.
--
Consulting: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba