33 replies [Last post]
sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

Images fail to load in both IE 6.0 and Firefox PR 1.0 when http://circadian.us is accessed via DSL through bctonline.com.

Works fine for me.

Anyone else missing the images? All suggestions greatly appreciated.

Thanks, sbd

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 6 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

images don't load

Hi sbd,
Have you tried using the full path to the image?
http://newharbor.us/circadian/glogo.gif
or adding a slash to the image path like: /glogo.gif

Hope that helps

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

Many thanks for the response, Tony. However, the problem remains.

I used browsercam.com to view pages in the latest versions of FF, IE, Opera, and Safari with the same result: images do not load in http://newharbor.us/circadian/index.html or http://newharbor.us/circadian/photos.html

But the images load Ok through my ISP.

Could my images be somehow defective?

Again, all suggestions greatly appreciated.

Thanks, sbd

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 1 day 6 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

images don't load

Hi sbd,
Then your problem may be the combination of the depreciated center tag and the XHTML doctype.

It's always a good idea to validate your site, it will pick up errors such as this.

Hope that helps

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

Thanks again, Tony.

I redid the markup for http://newharbor.us/circadian/ using borrowed HTML and CSS, and it validates as HTML 4.01 Transitional.

But again, I'm apparently the only one for whom the images load.

obsidian
Offline
Enthusiast
South Carolina
Last seen: 13 years 5 weeks ago
South Carolina
Joined: 2004-08-15
Posts: 136
Points: 0

images don't load

it looks almost like the properties on the images aren't set to be accessed. i know when i started using ssh to upload my sites, i had to set the default security setting to something like 644 to let everyone view them. the problem with it is that if your images are set with too much restriction for access, there won't be an error, it simply won't load (like now). also, just a thought, but you may want to try using a .jpg or .gif instead of .png just to see if it may be a format problem rather than a connection problem.

just a couple thoughts

You can't win, you can't lose, you can't break even. You can't even get out of the game!

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

sbd - If you want to trace your problem, you've got to do some testing of the basics and work from there. Load a simple, known-to-be-good JPG into the same directory as the main page and reference it by nothing more than its file name. Set the image height and width in the tag, and don't use the title attribute.

The methodology is to start from something simple and proven, and then rule out other things one by one. If you can't see the simple image then get rid of all your css and use a simple DOCTYPE. Go right back to the most basic scenario and when you can then see the image, start changing things until you can't. Move it's location and reference path. Change the tag properties (if you must). Change the file type. Change the DOCTYPE - anything, in stages, that will help you to single out the problem. Then, when you suddenly can't see the image (on the live site), you know you've isolated the cause Cool

Life's a b*tch and then you die!

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

obsidian wrote:
it looks almost like the properties on the images aren't set to be accessed.

The file can be seen if accessed directly, and in both cases the user will be www-data (or whatever), so that is unlikely to be the problem.

Life's a b*tch and then you die!

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

I've checked permissions and substituted a simpler gif image.

The image continues to load fine for me in FF and IE at http://newharbor.us/circadian/

The image loads independently as http://newharbor.us/circadian/logos1.gif

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

I've uploaded an ultra-simple test page: http://newharbor.us/circadian/test.html

How's this?

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

sbd wrote:
I've uploaded an ultra-simple test page: http://newharbor.us/circadian/test.html
How's this?

No good, but don't go too simple! Structure the page with a DOCTYPE and <head> info, and set the image dimensions in the img tag (not that any of that will probably make a difference!).

At this stage, I would be looking at the htaccess file, or the web server config file further up the chain. This smells like path manipulation to me. can you serve the page from a different vhost or server?

Life's a b*tch and then you die!

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

I've copied the files to a different server: http://lincoln.midcoast.com/~sbd/

This works for me.

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

Images don't load from other server either, except for me.

But how can it be that the images always loaded for me and nobody else? Could the HTML be linking to images on my computer? I don't think so.

I've put up a text-only page for now.

Many thanks to Tony, roytheboy, and obsidian.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

Yay Tongue - I can see your header image on the page now ( http://lincoln.midcoast.com/~sbd/ ). Sorry I missed your post yesterday.

I don't know the answer to your question about linking. It could have something to do with caching, or like I said, something to do with path manipulation, or even some sort of failed attempt to stop others downloading the images on the site except for a certain IP block. The person to speak to is the sysadmin for your server.

Life's a b*tch and then you die!

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

Thanks, roytheboy. That clarifies things somewhat.

At the host, I have no .htaccess installed, hot-linking is permitted, and no IPs have been blocked. The OS is FreeBSD 4.8-RELEASE-p24.

I'll check with the sysadmin, but past experience is not encouraging. Probably time to seek another host.

Cheers!

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

An .htaccess file is just one of many places where the webserver can be configured, although changes made in this file will only affect the directory (and sub-directories) that the .htaccess file is in. However the sysadmin could still change the master webserver config file such that their changes only affect a specific vhost. This is usually how domain name aliases are mapped to virtual hosts.

When I mentioned 'a certain IP block', I was talking about allowing access from a range of IP addresses within a particular 'block' i.e. 123.123.123.xxx, not blocking a particular address (although I guess that kinda equates to the same thing!).

When I mentioned 'path manipulation' and 'a failed attempt to stop others downloading the images', what I was thinking about was a common webserver feature called 'mod_rewrite'. Used correctly, mod_rewrite allows sysadmins to change request paths on the fly, and even to do so according to who is making the request.

The fact that you have specifically said that hot-linking is permitted, makes me even more suspicious about the incorrect application of mod_rewrite rules being to blame here, as this is not the sort of thing that hosting service providers normally shout about. I'm clutching at straws because I simply don't know what your problem is, but if you ever find out, please post back here as I am now intrigued :-k

Life's a b*tch and then you die!

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

My apologies, roytheboy. I was sadly misguided. Hot-linking was disabled. Now it's enabled.

This link should now work: http://newharbor.us/circadian/sindex.html

How does disabling hot-linking prevent images from loading?

Do I need an .htaccess file in any case?

Thanks for all your suggestions.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

No, I'm afraid the image on this page does not work!

Hot-linking is where another server uses your images (and therefore bandwidth) on their website. To prevent it you need to use mod_rewrite. The very suggestion that someone has used mod_rewrite (they must have if you know that hot-linking can be disabled) indicates to me that you should be focusing your attention on this issue as a possible source of your problems; not that disabling hot-linking should stop us seeing your images, but that the incorrect attempt to do so might.

No you do not need an .htaccess file for normal website operation.

Google 'hot linking' for more info.

Life's a b*tch and then you die!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 45 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

images don't load

Having followed this thread I'm now intrigued, unfortunately the image will still not load but it doesn't strike me as a hot linking problem and I can definitely hot link the image but when you say that it was disabled makes me wonder as it is not usually disabled by default as Roy has said it is just a set of rules that you write in a file called .htaccess which lives in your directories and acts as a config file that the server will look for first to see if there are any special instructions to follow, a common one being to turn of directory listings to prevent the display of files in a directory; the hot linking rule basically just says that a certain file cannot be directly pulled of your site from an external source and again as Roy has said you don't require the file for normal operation.
If you do indeed have said file can you not copy the contents here for someone to have a look at?
This does look more and more like a caching/ path problem as after directly loading the image and then returning to the page it will display but I guess that this could still be caused by incorrect rules in .htaccess (would help to know the contents of it if it exists)
On a side note it may not help but you ought to state the image dimensions and have a rethink of the header rules as the Tantek hack is not really correct or needed and can probably be removed it looks like a hangover from the original Blue Robot CSS

Like roy I'm interested to hear what the solution is to this, and it will probably turn out to be something dead simple.
Hugo.

Oops sorry posted across Roy.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

Hugo wrote:
Oops sorry posted across Roy.

I was just editing my post to make it clear that disabling hot-linking is not in itself a problem, but that getting it wrong could be!

Life's a b*tch and then you die!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 45 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

images don't load

I was thinking originally that the referer line was incorrect but then thought that that would mean I couldn't link through the url to the image but I guess I could if the no referer line was correct as I would be directly requesting the img file , confusing myself now .
Need sight of the .htaccess file really to rule it out of the equation .

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

Hugo wrote:
Need sight of the .htaccess file really to rule it out of the equation.

...and the main config file.
...and any parent directory .htaccess files!

Or I might be barking up the wrong tree altogether. It's just that without knowing anything else, it smells like a badly written set of mod_rewrite rules to me!

Life's a b*tch and then you die!

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

Current situation:

I have no .htaccess file and hot-linking is enabled.

Image loads OK from a different server: http://lincoln.midcoast.com/~sbd/

I changed my domain name a few months ago, and it occurred to me that old DN residue could be involved.

The problem is going up the levels of tech support at my host. If they come up with a solution, you all will be the first to know; if not, I'll be getting a new host. I'll post the result in any case.

Many thanks to all who have replied as well as to the many silent checkers.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

sbd wrote:
I changed my domain name a few months ago, and it occurred to me that old DN residue could be involved.

In a word: No. Your domain name either resolves to the correct server from a given client machine, or it doesn't. There are no half measures. Broken recursive relays can cause DNS problems, but not selectively from file to file within the same domain.

Life's a b*tch and then you die!

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

When I changed my domain name and re-uploaded my files, the FTP client Filezilla showed that some directories were still owned by my old user name, as far as the host was concerned. This caused some path problems at the time. The ownership/group settings were easily corected with Filezilla.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

sbd wrote:
The ownership/group settings were easily corected with Filezilla.

...you mean you were able to change another user's directory ownership and group settings (allbeit that it was your old username) as the new user? ...something seems very wrong to me :?

Life's a b*tch and then you die!

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

My host, the highly rated iPowerWeb, who claim more than 240,000 members, just provided the following answer:

"The problem was that you had hotlinking turned off. This stops any other page from seeing that image. I took it off and it should work fine."

And nothing more. But, according to the control panel, hot-linking had been enabled.

I'd greatly appreciate a few more checks of http://newharbor.us/circadian/sindex.html before I cancel iPowerWeb.

Thanks.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

Yes, I can now see the image by following this link.

Obviously I am pleased that I was on the right lines in my diagnosis of your problem, but am upset for you that what should be a seamless and simple process of displaying a simple web page should cause so much aggro.

Something is still not right though, for even with hot-linking disabled, people should be able to see your website images in normal use, or what is the point in having a website at all!

This does not make your hosting company look too good does it!

Life's a b*tch and then you die!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 45 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

images don't load

Hm, Yes the image does load now and as Roy and myself suspected this has been a case of badly written rules in .htaccess although it's still slightly confusing and the response from your host still doesn't quite add up in my mind .
hotlinking by default is something that is always possible therefore in my cpanel options it is referred to as 'hotlink protection' and is disabled
if I wish to have it '"turned on " I set it to enabled the essential thing is that in cpanel you must specify your domain as being allowed to link to the images; basically three lines get written to the .htaccess file the first says that 'referers' are not allowed to link directly to an image the second should specify that your domain is an exception to this rule and the third is to allow a browser to directly link through to the image using the url path and has a 'no referer' status it does sound as though the second rule allowing your pages access was not written correctly if at all
Your hosts assertion that you had 'hotlinking' 'turned off' (enabled) does not explain the situation and would not engender any confidence in them from my point of view, as I used a site that tests to see if hotlinking is possible and it was as well as the fact I could type the path to the image and access it that way seems to suggest my assertion that the file was incorrectly written.

Two problems arise from this, who set up the file and why couldn't your host provide a fuller explanation of the problem; if you had inadvertently enabled hotlinking protection and it was an incomplete set of rules your host should have pointed this out to you especially as you may well require this protection rather than to just have it disabled by the host, which I would not be happy about
if you are sure you played no part in this why is your host playing with your .htaccess file . my host wouldn't!

I'm afraid that I would be running a mile from this host especially with a claimed 240,000 members that doesn't bode well for helpful support.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

Quote:
...you mean you were able to change another user's directory ownership and group settings (allbeit that it was your old username) as the new user? ...something seems very wrong to me

I was able to delete the old-username directories using Filezilla. When recreated, the directories were owned by my new username.

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

There is no .htaccess file that I can find. Hot-linking is putatively switched on and off from the control panel.

As I said, hot-linking had been enabled, as had been verified at http://www.htmlbasix.com/disablehotlinking.shtml.

Now seeking new host.

sbd
sbd's picture
Offline
Regular
New Harbor, Maine
Last seen: 15 years 3 weeks ago
New Harbor, Maine
Joined: 2004-10-30
Posts: 17
Points: 0

images don't load

I'm on a new host: http://smartconsumers.infinology.com/hs.htm

Please check http://circadian.us/photos.html to verify that the images load.

Many thanks to everyone!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 45 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

images don't load

Loading fast and smooth!

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 6 years 17 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

images don't load

Houston, you are go for launch Cool

Life's a b*tch and then you die!