Forum Moderators: phranque

Message Too Old, No Replies

No Images displayed!

         

trapez

4:47 am on May 26, 2004 (gmt 0)

10+ Year Member



Is there any reason why my server can not display a simple image?

To narrow down my problem I created a simple html page that tries to
display two type of images - gif and jpg. All I get is the broken image.
Now this used to work for the last two years. I decided to upgrade to Apache 2.0.49
but still the same problem. However, I installed 2.0.49 on another machine for
backup and all is fine.

The log shows a successful HTTP 200

192.168.1.1 - - [25/May/2004:23:31:31 -0500] "GET /bgpic/sample.jpg HTTP/1.0" 200 22582
192.168.1.1 - - [25/May/2004:23:31:31 -0500] "GET /bgpic/RA2.gif HTTP/1.0" 200 14631

I am beginning to think this may be a WIN200 OS problem. … may be time for a reinstall?

thanks
joe

[edited by: jdMorgan at 1:35 pm (utc) on May 26, 2004]
[edit reason] Removed URL per WebmasterWorld TOS [/edit]

nancyb

5:14 am on May 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This may not be your problem, but if you have NIS installed the image width/height might be the problem. I was tearing my hair out trying to discover why some images I created and uploaded wouldn't show on the page. Finally, after contacting my hosting service (their problem, right ;) and several hours of recreating the image, the html file and searching every forum I had a bookmark for, I discovered the NIS problem.

There was a thread last week, I think, that listed some of the image sizes NIS prevents from showing because the sizes are the same as common banner and popup images.

Search WebmasterWorld for "NIS image" w/o quotes to find several threads about this.

jdMorgan

1:59 pm on May 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



trapez,

Interestingly, I got "partial images" when trying to view your test page.

sample.jog shows a loaded size of 2600 bytes, which is only part of the 22582 byte filesize.

The size of the image (on-screen and byte-count) varied across several attempts to load it.

Your test page's html is invalid (</head><body> is missing), but that does not seem to be affecting the results.

Check your Apache error log as well as your access log.

Test with know-good images that have never been modified or edited - This may be an image-file-format problem.

Jim

trapez

2:39 pm on May 26, 2004 (gmt 0)

10+ Year Member



JDMORGAN-
Whats interesting - the two pics I know are not in my cache here at work. Now, if I continue to hit the refresh button on the browser I can watch the images slowly appear... For a while there I though it was because of a cache related problem.

----
NANCYB-
The NIS Banner is interesting, surprise I didnt come across it it my search’s, but unfortunately I dont have it installed.

I still suspect the OS. As far as I can tell the Apache did its part right up to the end...HTTP 200.
Now, if it said HTTP 206 I would have something to look into.

This topic is not very popular, its next to impossible to find help or subjects on. I guess im going to have to bite the bullet this week.

gergoe

4:15 pm on May 26, 2004 (gmt 0)

10+ Year Member



Did you tried to get the page through the local loopback also? i.e. [localhost...]
Try to request the page using telnet, and see what's the response (does it interrupted before the whole fie would have been sent or anything suspicious, like incorrect content type, incorrect size and so on).
Or if you really think that it is related to the OS, for the begining it is easier and also quite efficien to uninstall the tcp/ip protocol, and renstall it.

trapez

9:32 pm on May 26, 2004 (gmt 0)

10+ Year Member



gergoe-
I always assume I was going through the loop-back regardless, but Ill try it.

The TCP/IP reinstall is an idea! Ill try that tonight.

You also brought to my attention the last program I installed just prior to the problems
I have now and have since forgotten and uninstalled.

I must have been the first fool on the block to try and figure it out. [snip - An e-mail tracking service]
After playing with it, sending a few free e-mails to myself, I found they imbed an html
image source in the body of the e-mail prior to my sending it. I assume when the e-mail is opened it tries to receive the image from their server where the image is the name of my ID at sign-up. After this the tracking of the mail opened is logged.

Now, I wonder how they placed hooks to intercept my e-mail being sent independent of my e-mail client.

joe

[edited by: jdMorgan at 9:35 pm (utc) on May 26, 2004]
[edit reason] Deleted specifics per TOS [/edit]

gergoe

10:42 pm on May 26, 2004 (gmt 0)

10+ Year Member



I don't know what sort of program is that, but likely there's a small executable running in the background, and your internet settings are changed a bit so mails coming in or going out can be tracked by this thing. On how this is really implemented I don't know, perhaps something with the windows interfaces; I guess the norton antivirus programs are using the same technique.

But if they do only this email tracking thing, then it should not be related to your problem with apache; but if they are nasty (or fool) enough, then it could be that they tweaked some of your networking files, and that's the reason why it is not working well. I don't recall how the repair function of win2k works, but you can give it a try; boot the machine from the win2k install cd, and choose repair on one of the first screens, which might help in this case.

So very likely this is not related to apache, you may need to look for help on other forums as well, which are much more related to the OS - or even better to this email tracking software.

Good luck

trapez

11:56 pm on May 26, 2004 (gmt 0)

10+ Year Member



Well, I did NOT uninstall the e-mail tracker!

All is fine now!

...thanks all.

joe

trapez

4:26 am on May 27, 2004 (gmt 0)

10+ Year Member



After reading my last post, I believe a summary recap is in order.

Summary Recap

Problem
Both version of the Apache server 2.0.48 and 2.0.49 would not display both gif & jpg images correctly within the browser i.e. the browser would display the broken red icon or display a partial image.

The pictures themselves were assumed not to be corrupt because the exact same development folder, including images, were copied to a different machine, backup server, which displayed the images correctly.
The access.log showed the GET was successful – HTTP 200.

Changes prior to problem:
Prior to the images not displaying a new e-mail tracker program was installed on the system. The purpose of the tracker is to notify the sender when the receiver opened the mail. To accomplish this, the body of the
e-mail is somehow modified prior to being sent with a 1x1 image source pixel. Apparently it tries to receive an image from a server using the <imgsrc=" [...”>...] with my assigned ID as a parameter issued at setup.

Fix:
After removing the e-mail tracker program all images displayed correctly.