I installed a very simple theme I found online that works very well for me. It looks perfect in Firefox but when I open it in IE or Safari and it has images missing. All of the images are in the folder that the theme points to and they all appear to valid images. The site is at http://www.denverdataman.com/drupal - any help with figuring this out would be appreciated.


Thanks,

Steve

Comments

Anonymous’s picture

Hi,

well some of the pictures are missing the "drupal" directory part in their URL. Checking the HTTP request all those images missing the drupal URL-part were 404 not found! Firefox suffers also from the missing images, but it does not show it.

Example:

Org: http://www.denverdataman.com/themes/sinatra/clear.gif -> HTTP 404
Revised: http://www.denverdataman.com/drupal/themes/sinatra/clear.gif

Please check your CSS files, block.tpl.php and image directory if the images are really there. Some path adjustments will fix your problem.

Recommendation: For debugging your Drupal website I reccommend at least these 4 Firefox extensions:

You con find even more here: https://addons.mozilla.org/en-US/firefox/browse/type:1

Mike

skessler’s picture

I cant believe I missed that - is there any way to set /drupal as the default location for all things and then I can remove that setting when i make the site live?

Thanks,
Steve

Steve Kessler
Denver DataMan -www.denverdataman.com

Steve Kessler

Anonymous’s picture

Hello Steve,

under normal conditions Drupal does all the path related work for you. It uses PHP functions to read the base path of your current installation lacation. So if don't you use hard coded absolute links or sources, there should be a problem.

To solve any path related problem use relative links. So you can change the directory structure from your local development server to your production maschine.

What to do now? Check your template for absolute links/sources and make them relative.

If you still got questions, hey you know how you contact me. :-)

Mike

skessler’s picture

I am putting this here so my question can benefit others as well.

The code appears to be relative.

Only local images are allowed.

I would think that would be coming from where ever some kind of master location variable is like in Mambo. Is there a place to set this?

Thank you very much for all your help!

Peace,
Steve

Steve Kessler
Denver DataMan -www.denverdataman.com

Steve Kessler