I'm having trouble displaying images in a site on one host that work perfectly well in another site on a different host. On the site that is not working, only the alt text for the images is displaying (see links below).
The code I have in the page is identical - a simple 4x4 table lifted from Dreamweaver. I have looked for differences in the settings.php and .htaccess files but can't see anything significant. I've checked all the permissions for the enclosing folders and they all esm appropriate (755). I've even downloaded the images to verify that they are not corrupt. Where else can I look for possible causes of this problem?
(The Crucial Paradigm-hosted site has been working fine for many months. I have just recently started developing the second site hosted by Blue Host.)
Working (hosted by Crucial Paradigm):
http://ihelpulearn.com/content/test
Not working (hosted by BlueHost):
http://66.147.242.157/~lowellla/content/land-protection
If there's a better way to display a matrix of images (using a module, perhaps), please suggest one ... Thanks for any help and suggestions!
Comments
Make sure your images are on
Make sure your images are on the same path!
For example the image is pointing to:
/sites/default/files/land-prot/hawk-valley/hawkvalley.jpg
where it should be:
~lowellla/sites/default/files/land-prot/hawk-valley/hawkvalley.jpg
Yay!
Thank you, JoepH, for that tip -
I changed the links to:
/~lowellla/sites/default/files/land-prot/hawk-valley/hawkvalley.jpg
and that did the trick (including a leading "/", in fact).
I guess, when the site goes live and gains a permanent address, I'll have to remove the "/~lowellla".
Now I'm going to investigate some of the available Image modules ... While I can hack the html route, I'd rather not impose that on my client, who'll end up maintaining the site in the long run. - there's got to be a cleaner way ... any suggestions or recommendations, anyone?
Have a look at the image
Have a look at the image module.