No Images

B

Blinky the Shark

What the heck? I'm not getting any images rendered.

I'm getting ready to move blinkynet to a new host. I'm testing the new
location. I figured if anything, scripting would be the issue, but
PHP's working fine with just a config.php tweak for the new location.

Here's the address (I'm not live yet, thank God). :)

http://server19.01domain.net/~blinky/indexdowntowntest.html

No images. As I look at page source, img src is correct.

And here's Stumper 2 -- if I rightclick an alt display, say, the "Shark
Photo" image in the third paragraph, and select View Image, it displays fine
that way. But not in the page. That image is hard coded, not placed
into that position via a script; so, again, it's not a scripting issue.

What am I missing here?

Compare: Still live at Page-Zone http://blinkynet.net
 
B

Beauregard T. Shagnasty

Blinky said:
What the heck? I'm not getting any images rendered.

I'm getting ready to move blinkynet to a new host. I'm testing the new
location. I figured if anything, scripting would be the issue, but
PHP's working fine with just a config.php tweak for the new location.

Here's the address (I'm not live yet, thank God). :)

http://server19.01domain.net/~blinky/indexdowntowntest.html

No images. As I look at page source, img src is correct.

It appears to me that .jpg files are being served as "text/html"
Obviously a configuration issue on the server.

The .gif at the top is of type: "image/gif"
 
D

dorayme

Blinky the Shark said:
What the heck? I'm not getting any images rendered.

I'm getting ready to move blinkynet to a new host. I'm testing the new
location. I figured if anything, scripting would be the issue, but
PHP's working fine with just a config.php tweak for the new location.

Here's the address (I'm not live yet, thank God). :)

http://server19.01domain.net/~blinky/indexdowntowntest.html

No images. As I look at page source, img src is correct.

And here's Stumper 2 -- if I rightclick an alt display, say, the "Shark
Photo" image in the third paragraph, and select View Image, it displays fine
that way. But not in the page. That image is hard coded, not placed
into that position via a script; so, again, it's not a scripting issue.

What am I missing here?

Compare: Still live at Page-Zone http://blinkynet.net

It seems you might have path wrong, with dinner.jpg for example,
if you

http://server19.01domain.net/~blinky/images/dinner.jpg

you get it.

But you are telling the browsers to fetch from

http://server19.01domain.net/images/dinner.jpg

where it is not.
 
R

Rik

Beauregard T. Shagnasty said:
It appears to me that .jpg files are being served as "text/html"
Obviously a configuration issue on the server.

Hmmz, atm I get a simple 404 for
http://server19.01domain.net/images/dinner.jpg. And offcourse a 404
message is usually text/html.

All paths are from the root I see ('/etc...'). Blinky just forgot he's now
in /~blinky/. To make it work by this url you should prepend all paths
with /~blinky....
 
J

Jonathan N. Little

Blinky said:
What the heck? I'm not getting any images rendered.

I'm getting ready to move blinkynet to a new host. I'm testing the new
location. I figured if anything, scripting would be the issue, but
PHP's working fine with just a config.php tweak for the new location.

Here's the address (I'm not live yet, thank God). :)

http://server19.01domain.net/~blinky/indexdowntowntest.html

No images. As I look at page source, img src is correct.

Not it is not, root problem maybe:

From page above Shark Photo's src path is:

http://server19.01domain.net/images/dinner.jpg

But image's real path is:
http://server19.01domain.net/~blinky/images/dinner.jpg

Missing the *~blinky*!
 
J

Jonathan N. Little

Jonathan said:
Not it is not, root problem maybe:

From page above Shark Photo's src path is:

http://server19.01domain.net/images/dinner.jpg

But image's real path is:
http://server19.01domain.net/~blinky/images/dinner.jpg

Missing the *~blinky*!

"http://server19.01domain.net/~blinky" is not your document root, but
"http://server19.01domain.net" is.

so your markup:

<img class="bord00" src="/images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

needs to be either:
<img class="bord00" src="images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

or:
<img class="bord00" src="./images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

or change your document root.
 
K

Karl S

Blinky said:
Dosn't work.

I screwed around with this much of the afternoon, so I don't know what
attempt you may have seen. :)

Here. This page is in public_html, as is the test index page that's not
displaying images.

http://server19.01domain.net/~blinky/imagetest.html

Starting with the images subdirectory, I added the higher directories
one at a time, testing between each addition. Obviously, I ran out of
things to add. *None* of those paths - full or not full - display the
image.
One of the images (shark smoking a cigarette) on that page loads
correctly, two others don't because their paths include "/home/~blinky/"
rather than just "/~blinky/" following the "domain.net".
 
N

Neredbojias

"http://server19.01domain.net/~blinky" is not your document root, but
"http://server19.01domain.net" is.

so your markup:

<img class="bord00" src="/images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

needs to be either:
<img class="bord00" src="images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

or:
<img class="bord00" src="./images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

or change your document root.

I agree with most replies but why doesn't the absolute-addressed gif
(http://server19.01domain.net/~blinky/images/bnetlogo1bl.gif) load?
 
B

Blinky the Shark

Rik said:
Hmmz, atm I get a simple 404 for
http://server19.01domain.net/images/dinner.jpg. And offcourse a 404
message is usually text/html.

All paths are from the root I see ('/etc...'). Blinky just forgot he's
now in /~blinky/. To make it work by this url you should prepend all
paths with /~blinky....

Dosn't work.

I screwed around with this much of the afternoon, so I don't know what
attempt you may have seen. :)

Here. This page is in public_html, as is the test index page that's not
displaying images.

http://server19.01domain.net/~blinky/imagetest.html

Starting with the images subdirectory, I added the higher directories
one at a time, testing between each addition. Obviously, I ran out of
things to add. *None* of those paths - full or not full - display the
image.
 
B

Blinky the Shark

dorayme said:
It seems you might have path wrong, with dinner.jpg for example,
if you

http://server19.01domain.net/~blinky/images/dinner.jpg

you get it.

But you are telling the browsers to fetch from

http://server19.01domain.net/images/dinner.jpg

where it is not.

See my post to Rik, if you will. There explain that (probably foolishly
after having posted my question here). There I give a link to a
testimage.html page I eventually made. You'll see in that post that
there's no way to get the image regardless of how full the path is shown
to the image.
 
B

Blinky the Shark

Jonathan said:
"http://server19.01domain.net/~blinky" is not your document root, but
"http://server19.01domain.net" is.

so your markup:

<img class="bord00" src="/images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

needs to be either:
<img class="bord00" src="images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

or:
<img class="bord00" src="./images/dinner.jpg" alt="Shark Photo"
height="206" width="337">

Do not work. Go here, see source. Thanks.

http://server19.01domain.net/~blinky/images/dinner.jpg
 
B

Blinky the Shark

Beauregard said:
It appears to me that .jpg files are being served as "text/html"
Obviously a configuration issue on the server.

Then how are they displayable if you rightclick and select "View Image"?
Same server, right?
The .gif at the top is of type: "image/gif"

That one won't display either.

How are they then displayable if you rightclick and select "View Image"?
 
J

Jonathan N. Little

Blinky said:
Dosn't work.

I screwed around with this much of the afternoon, so I don't know what
attempt you may have seen. :)

Here. This page is in public_html, as is the test index page that's not
displaying images.

http://server19.01domain.net/~blinky/imagetest.html

Starting with the images subdirectory, I added the higher directories
one at a time, testing between each addition. Obviously, I ran out of
things to add. *None* of those paths - full or not full - display the
image.

<img
src="http://server19.01domain.net/home/~blinky/public_html/images/dinner.jpg"
width="337" height="206" alt="Shark Photo" />

### Borked

<img src="http://server19.01domain.net/home/~blinky/images/dinner.jpg"
width="337" height="206" alt="Shark Photo" /> <!--tried this in case
the public_html is assumed, since at least one person's suggestion
omitted it between ~blinky and images -->

### Borked

<img src="http://server19.01domain.net/~blinky/images/dinner.jpg"
width="337" height="206" alt="Shark Photo" /> <!-- johnathan's first
suggestion -->

### Works, then image disappears?

<img src="images/dinner.jpg" alt="Shark Photo" height="206" width="337">
<!-- johnathan'second suggestion -->

### Works, then image disappears?

<img src="./images/dinner.jpg" alt="Shark Photo" height="206"
width="337"> <!-- johnthan's third suggestion -->

### Works, then image disappears?

The three paths that I (BTW only 1 'h') suggested it the correct path
but something is strange about the image. Seems to go blank (no broken,
just blank) after a minute. If you right-click and view image it should
not problem. Something fishy!
 
D

dorayme

It seems you might have path wrong, with dinner.jpg for example,
if you

http://server19.01domain.net/~blinky/images/dinner.jpg

you get it.

But you are telling the browsers to fetch from

http://server19.01domain.net/images/dinner.jpg

where it is not.

See my post to Rik, if you will. There explain that (probably foolishly
after having posted my question here). There I give a link to a
testimage.html page I eventually made. You'll see in that post that
there's no way to get the image regardless of how full the path is shown
to the image.[/QUOTE]

On my Safari, the absolute path I mention above displays image
fine. This corresponds to what you are referring to as
"johnathan's first suggestion" in the source code to

<http://server19.01domain.net/~blinky/imagetest.html>

In fact, all the images that show up have this same address
regardless of what you have in your source code. I opened each
image in separate tabs and each had exactly the same address on
my browser.

Perhaps all this does not help you, perhaps it is something more
complicated to do with your server set up beyond me. Good luck
anyway.
 
B

Blinky the Shark

Karl said:
One of the images (shark smoking a cigarette) on that page loads
correctly, two others don't because their paths include "/home/~blinky/"

It never has for me.
rather than just "/~blinky/" following the "domain.net".

No variations display here.

I just added an element that reflects what I think you mean.
 
B

Blinky the Shark

Blinky said:
Then how are they displayable if you rightclick and select "View Image"?
Same server, right?


That one won't display either.

How are they then displayable if you rightclick and select "View Image"?

Found something nobody's mentioned. :)

I still have the experimental 2x3 grid of image path attempts here:

http://72.52.154.100/~blinky/imagetest.html

Okay, the first two apparently break for having the home directory in
the path. Let's pretend they're not there...

....because I have all of the other four tries on that page working.

wOOt!

What I did was comment out a line in .htaccess:

#RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

I don't know what it does <g>, but one of its effects seems to have been the
prevention of image display.

I don't know why that line screws up display here, and not with my live
Page-Zone location.

1. So what am I "giving up", if I just keep that line disabled?

2. Can this all (the whole problem) come from the fact the way I'm
accessing the unborn site location -- not as blinkynet.net but as
server/username... ? IOW, if I just uploaded the whole site and went
live with the new incarnation, might the issue go away? (I know I'll
have to tweak one bit of the path that I've not mentioned -- I have a
different username with the new location, so any references to my old
root directory will have to be changed.)
 
J

Jonathan N. Little

Blinky said:
Blinky said:
Then how are they displayable if you rightclick and select "View Image"?
Same server, right?

That one won't display either.

How are they then displayable if you rightclick and select "View Image"?

Found something nobody's mentioned. :)

I still have the experimental 2x3 grid of image path attempts here:

http://72.52.154.100/~blinky/imagetest.html

Okay, the first two apparently break for having the home directory in
the path. Let's pretend they're not there...

...because I have all of the other four tries on that page working.

wOOt!

What I did was comment out a line in .htaccess:

#RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

I don't know what it does <g>, but one of its effects seems to have been the
prevention of image display.

I certainly hope you are joking, that would certainly cause your problem!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,186
Latest member
vinaykumar_nevatia

Latest Threads

Top