I’m building a password protected site in Drupal 5.9 with a homepage that currently has 4 images.
If I log out and look at the screen before I log in again, I can see the pre-login home page as it should be with all its images but, as soon as I log back in, those images disappear and I can only see their placeholders and the alt. text!
The images, however, will appear again if I click on the link to the Home Page in the Nav Bar; the page then refreshes and displays correctly.
Any ideas what the problem is and how I can fix this please?
Thank you
Tim
PS should I upgrade to Drupal version 5.10, or even version 6.4? (provided that v6.4 has the "Node Access" module which, I was told, might not be available just yet).

Comments

dreipunktnull’s picture

That sounds to me like you use relative paths to the images. Try to prepend base_path() to the image urls.

tmetford’s picture

Hi dreipunktnull
Thank you for your help but I need a more detailed explanation (I'm quite new to Drupal - sorry, should have said this before!).

You say: "That sounds to me like you use relative paths to the images."

The paths I use typically reads like this: Only local images are allowed. All my images (*.jpg) files are in a folder called "images" which is in the root directory.
Therefore I guess my paths are relative?

This being the case, would you give me an example of how to write the path in the manner you suggest please?
i.e. you say: "Try to prepend base_path() to the image urls."

Thank you once again, your help is much appreciated.
Tim

tmetford’s picture

Hi dreipunktnull
Thank you for your help but I need a more detailed explanation (I'm quite new to Drupal - sorry, should have said this before!).

You say: "That sounds to me like you use relative paths to the images."

The paths I use typically reads like this: Only local images are allowed. All my images (*.jpg) files are in a folder called "images" which is in the root directory.
Therefore I guess my paths are relative?

This being the case, would you give me an example of how to write the path in the manner you suggest please?
i.e. you say: "Try to prepend base_path() to the image urls."

Thank you once again, your help is much appreciated.
Tim