1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development Images sometimes missing

Discussion in 'Software' started by Draxin, 24 Apr 2008.

  1. Draxin

    Draxin Seeker of Photons

    Joined:
    29 Nov 2001
    Posts:
    965
    Likes Received:
    5
    So i have an odd problem.

    Sometimes some of the images on a page dont load.
    sometimes they do.
    Usually its only one image is missing if anything.
    and usually only if the user hits the refresh button.

    if you go to http://www.zelixy.com/user/dbunting and hit refresh a few times you should notice that every now and then one of the images wont load. But its not always the same image.

    anyone have any idea as to why? and what to do to fix it?

    Thanks in advance
     
  2. hacker 8991

    hacker 8991 What's a Dremel?

    Joined:
    8 Jan 2004
    Posts:
    643
    Likes Received:
    1
    I'm not sure why that's happening. If I right click on the alt text for pictures that don't show up, it gives me the correct properties (width, height, and size). Also, if I go to the image's URL, it always appears.

    It might have something to do with the way the HTML is being rendered. Are you using ob_start() and ob_end_flush()?

    Why are you doing this?
    Code:
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Is it that imperative that the user gets a new copy of the page every time they refresh?

    edit: I just noticed that when the pictures don't show up, they are actually being loaded, then they disappear. Very strange.

    If I disable my browser cache, the images always load.

    Interestingly enough, web developer toolbar seems to know what's going on:
    [​IMG]

    Sorry I'm not much help.
     
    Last edited: 25 Apr 2008
  3. Draxin

    Draxin Seeker of Photons

    Joined:
    29 Nov 2001
    Posts:
    965
    Likes Received:
    5
    Code:
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    
    that is not in my code WTF!?

    no ob_start()
    no ob_end_flush()

    this is just a push to get the investor something to see.

    then it gets redone proper

    now im more confused then when i started.
     
  4. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    By default PHP outputs that when you are using sessions.
    Have a look at the documentation for session.cache_limiter
     
  5. hacker 8991

    hacker 8991 What's a Dremel?

    Joined:
    8 Jan 2004
    Posts:
    643
    Likes Received:
    1
    Ah, I didn't know that about sessions.

    Anyway, how are you serving up the images? The HTML looks fine (although you might want to check its validation page), as does the CSS. I'm thinking PHP is somehow to blame here.
     
  6. Draxin

    Draxin Seeker of Photons

    Joined:
    29 Nov 2001
    Posts:
    965
    Likes Received:
    5
    its odd when i view image information via web dev toolbar it doesnt show anything wrong.

    ill digg a little deeper.


    Is it possable that this could be a server issue?
     
  7. Draxin

    Draxin Seeker of Photons

    Joined:
    29 Nov 2001
    Posts:
    965
    Likes Received:
    5
    Ok so when i use "view image information" with the web developer toolbar when there are images missing it lists the images that are "broken" 3 of the broken images listed i know are broken, but other then that the ones that are listed if i click them it shows the image thats "broken"

    so im really confused
     
  8. Nedsbeds

    Nedsbeds Badger, Slime, Weasel!!

    Joined:
    16 May 2002
    Posts:
    1,972
    Likes Received:
    9
    For what it's worth, I havn't seen any sometimes broken images (only the three that are always broken) when viewing that page. I'm using IE7
     
  9. Millusdk

    Millusdk What's a Dremel?

    Joined:
    27 Jan 2008
    Posts:
    140
    Likes Received:
    1
    The images show up all the time for me... IE7
     
  10. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Show up all the time for me too...
     
  11. Draxin

    Draxin Seeker of Photons

    Joined:
    29 Nov 2001
    Posts:
    965
    Likes Received:
    5
    sometimes its the first time you refresh, other times you have to do it like 30-40 times.

    thats what makes tracking it down such a pain.

    I do want to thank all of you for taking the time and taking a look into it for me.
    turns out this isnt the only problem we are having.
    turns out session values arent being passed sometimes. ill just add it to the list of WTFs
     

Share This Page