1. Same story, different day...........year ie more of the same fiat floods the world
    Dismiss Notice
  2. There are no markets
    Dismiss Notice
  3. Week of 6/24/2017 Closing prices & Chg Over Last Wk---- Gold $1256.40 Silver $16.64 Oil $43.01 USD $96.94
  4. "Spreading the ideas of freedom loving people on matters regarding high finance, politics, constructionist Constitution, and mental masturbation of all types"
    Dismiss Notice

.png images not showing up in general discussion forum?

Discussion in 'Test postings' started by gpond, May 15, 2011.



  1. gpond

    gpond Silver Member Silver Miner

    Joined:
    Mar 29, 2010
    Messages:
    662
    Likes Received:
    412
    Trophy Points:
    63
    Test attaching a png image file.
     
  2. gpond

    gpond Silver Member Silver Miner

    Joined:
    Mar 29, 2010
    Messages:
    662
    Likes Received:
    412
    Trophy Points:
    63
    Nope, doesn't work down here either. I can upload the image, but it shows up as a paper-clip with the words 'Attached Images'. Clicking on the paper clip does not show the image, either.
     
  3. skyvike

    skyvike Gold Chaser Platinum Bling

    Joined:
    Mar 26, 2010
    Messages:
    2,013
    Likes Received:
    1,301
    Trophy Points:
    113
    Thanks, pond,

    I've noticed my avatar isn't showing anymore either....
     
  4. phideaux

    phideaux Mother Lode Found Mother Lode

    Joined:
    Mar 30, 2010
    Messages:
    18,913
    Likes Received:
    17,482
    Trophy Points:
    113
    Location:
    Zentalquabula
    2 cents: lots of programs have problems with png files. Switch to jpg.
     
  5. Zed

    Zed Size doesn't count! Midas Member

    Joined:
    Mar 30, 2010
    Messages:
    11,276
    Likes Received:
    9,266
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Nuclear Technician
    Location:
    Springfield
    Where are the images stored? (database or folder structure) If the PNGs are stored in a folder structure that separates images types it maybe a permissions issue.

    The other thing to consider is that you have gone from Windows to Linux so you have changed your PHP code. vBulletin does some image processing and checking, so it is possible that there is a php setting that is causing the issue, although I can't think what off the top of my head.

    Generally, beyond checking that the image is actually there, I'd be looking for a permissions issue either in the database or file system. Linux has better security than windows, sometimes this can be a PITA.
     
  6. AceNZ

    AceNZ Silver Member Silver Miner

    Joined:
    Apr 1, 2010
    Messages:
    825
    Likes Received:
    517
    Trophy Points:
    93
    Location:
    American in New Zealand
    Sounds like a web server issue. Make sure the MIME type for PNG files is registered with your new web server. You can verify by trying to access a static PNG by a direct URL, rather than going through vBulletin.
     
  7. Zed

    Zed Size doesn't count! Midas Member

    Joined:
    Mar 30, 2010
    Messages:
    11,276
    Likes Received:
    9,266
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Nuclear Technician
    Location:
    Springfield
    Problems can also arise with naming between Windows and Linux.... in windows IMAGEname.png = imagename.png in Linux IMAGEname.png <> imagename.png. That should not really be the issue here but if you have issues with static images it is worth remembering. Check for capitalized file extensions or some such silliness!

    I assume you are on Apache, I have never had a configuration issue with Apache and PNG's straight out of the box. If it is Apache's issue your ISP or whom ever did your setup work will likely know exactly where to look.
     
  8. gpond

    gpond Silver Member Silver Miner

    Joined:
    Mar 29, 2010
    Messages:
    662
    Likes Received:
    412
    Trophy Points:
    63
  9. gpond

    gpond Silver Member Silver Miner

    Joined:
    Mar 29, 2010
    Messages:
    662
    Likes Received:
    412
    Trophy Points:
    63
    Code:
    
    img class="attach" src="attachment.php?attachmentid=7930&stc=1&d=1305498189" alt=""> 
    
    ... :bear_w00t:
     
  10. Scorpio

    Scorpio Скорпион Founding Member Board Elder Site Mgr Site Supporter ++

    Joined:
    Mar 25, 2010
    Messages:
    23,687
    Likes Received:
    25,162
    Trophy Points:
    113
    don't know guys, but I sent this thread on to tech,

    don't want to mess up something while he is in there,

    S
     
  11. AceNZ

    AceNZ Silver Member Silver Miner

    Joined:
    Apr 1, 2010
    Messages:
    825
    Likes Received:
    517
    Trophy Points:
    93
    Location:
    American in New Zealand
    I just looked at the page with a web proxy. The MIME type is OK. If you look on the full page, there are other PNG files that are being rendered fine. However, attachment.php is returning the file "clear.gif".

    Looks like it might be a permissions issue, as Zed said. Apache needs to have write permission for the folder where attachments are stored.
     
  12. Zed

    Zed Size doesn't count! Midas Member

    Joined:
    Mar 30, 2010
    Messages:
    11,276
    Likes Received:
    9,266
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Nuclear Technician
    Location:
    Springfield
    If it is only newly uploaded images that have the issue you need to check that PHP has all the image handling libraries loaded. You should see errors in the logs at the least if this is the case.
     
  13. dveaner

    dveaner Board Elder Board Elder

    Joined:
    Nov 6, 2010
    Messages:
    22
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Location:
    The way overtaxed state of New York
    ed_nobg200.png This is a png that I just uploaded. Seems to be working OK. I wonder if it is a file size issue... Doesn't seem to be. I tried one as a pic within the message (above) and the playground png as an attachment.

    Check your file sizes -- the max allowed are listed in the upload window.
     

    Attached Files:

  14. Zed

    Zed Size doesn't count! Midas Member

    Joined:
    Mar 30, 2010
    Messages:
    11,276
    Likes Received:
    9,266
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Nuclear Technician
    Location:
    Springfield
    If you are over the given file size the sites code tries to resize the file, if the image handling libraries are not loaded in php it will fail right there. So yes file size could be the trigger but the lack of something like the gd library would be the real issue.


    http://php.net/manual/en/book.image.php
     
  15. dveaner

    dveaner Board Elder Board Elder

    Joined:
    Nov 6, 2010
    Messages:
    22
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Location:
    The way overtaxed state of New York
    GD is loaded and permissions in vB look right. Checking other options...
     
  16. Zed

    Zed Size doesn't count! Midas Member

    Joined:
    Mar 30, 2010
    Messages:
    11,276
    Likes Received:
    9,266
    Trophy Points:
    113
    Gender:
    Male
    Occupation:
    Nuclear Technician
    Location:
    Springfield
    Check the user permissions in Linux for the Apache and PHP users accounts. PHP will need to write files if it is resizing images, that could be the stumble point.
     
  17. dveaner

    dveaner Board Elder Board Elder

    Joined:
    Nov 6, 2010
    Messages:
    22
    Likes Received:
    6
    Trophy Points:
    3
    Gender:
    Male
    Location:
    The way overtaxed state of New York
    Posting a test again and again! And again! And again...

    And again.
     

Share This Page