Forum Moderators: coopster

Message Too Old, No Replies

Dynamic Site - Image Issues

         

blaketar

2:18 pm on Sep 6, 2004 (gmt 0)

10+ Year Member



This may be Apache related but figured I would start here to find out if anyone has ever had this sort of problem.

I have a site built mostly with PHP on Apache. I use PHP to output the html tags and in most cases the html <img> tags to display the images associated with the dynamic content.

Now my problem, some people have reported that when browsing the site they see no images, none, throughout the entire site? What I find odd is these cases are very random. Image calls which are in some sense static (html is in a include file) are not even showing up.

Could this be related to outdated browser software on their part? These folks claim they can see other images on other big name sites, just not mine?

Any clues, others reporting this kind of problem in the past, any leads or areas to start checking first?

mincklerstraat

4:12 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd start out posting some sample HTML here from your site in the places where the images are called -- if you see your domain name in the url, replace it with 'mysite.com' -- also ask your users which browser they're using. If your image tags contain some kind of style declaration which is sorta strange, it might be an old browser issue. Check if there are any stylesheets included which do anything to the img tag - will appear as
img {
whatever;
}
Maybe you have some fancy javascript that's doing stuff to the image tags and it's crashing on some browsers. Maybe your server's doing weird stuff. Difficult to tell, start out with the HTML I'd say.

blaketar

4:23 pm on Sep 6, 2004 (gmt 0)

10+ Year Member



Thanks mincklerstraat:

- The HTML is very clean: <img src="http://www.domain.com/images/img.jpg">

- I just had another report from someone. What I find strange with this report is that he can see the .gif files / images, but all .jpg images are not displayed.

- Odder yet is the fact that instead of the typical box with red X, their is nothing, not even this placeholder.

- In one case someone sent me the HTML => View Source from one of the pages. Looking in the code the entire <img> tag was gone throughout the file, almost as though the browser in question didnt like the tag and completely stripped it from the code

-? I am perplexed. I have yet to hear what browser these folks are using which indicates to me they may not know how to check which could indicate that they are using very old software. But why just my pages?

encyclo

4:28 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



PHP is server-side, so your problem is with the end result (the HTML), not the code used to generate.

When I hear than there are no images showing for a selection of users, the suspicion often turns towards Norton Internet Security. Are all of your images called from one directory? If so, what is that directory called? Can you ask those who say that your images don't display whether they are running NIS?

[webmasterworld.com...]

encyclo

4:30 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Looking in the code the entire <img> tag was gone throughout the file, almost as though the browser in question didnt like the tag and completely stripped it from the code

I posted at the same time as you. I'll bet you this is the evil NIS! NIS also blocks images which are standard ad sizes, as well as all those in specified "banned" directories.

blaketar

4:37 pm on Sep 6, 2004 (gmt 0)

10+ Year Member



You have got to be kidding me! There it was, plain as day "adpics" this is the directory where the images "users items for sale!" are displayed.

Which elected official at NIS decided to play god with everyones method for displaying images?

Thank you very much! You have saved me days of hunting for answers, I can now focus on changing the code!

encyclo

4:46 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



blaketar, there are a lot of people here who are unhappy with Norton Internet Security, not for their adblocking in general, but their blunderbuss approach which causes a lot of grief and makes the product less than useful.

Use obscure names for your image directories, be careful about the image dimensions, and you should get through OK. Oh, and make sure your clients are made aware of the vandalism their program causes, usually without their knowledge.

For more information, try this search [google.com]!

Glad that we could solve your problem!

mincklerstraat

8:15 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



encyclo, have you got any idea what kind of directory inspires NIS imageblocking? Thx for this interesting piece of news btw, never heard of it

encyclo

8:28 pm on Sep 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



mincklerstraat, check the link in my message #4 of this thread - it gives a pretty comprehensive list of blocked directories.