• Same story, different day...........year ie more of the same fiat floods the world
  • There are no markets
  • "Spreading the ideas of freedom loving people on matters regarding high finance, politics, constructionist Constitution, and mental masturbation of all types"

.png images not showing up in general discussion forum?

gpond

Silver Member
Silver Miner
Joined
Mar 29, 2010
Messages
662
Likes
394
#1
Test attaching a png image file.
 

gpond

Silver Member
Silver Miner
Joined
Mar 29, 2010
Messages
662
Likes
394
#2
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.
 

skyvike

Gold Chaser
Platinum Bling
Joined
Mar 26, 2010
Messages
2,016
Likes
1,288
#3
Thanks, pond,

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

phideaux

Mother Lode Found
Mother Lode
Joined
Mar 30, 2010
Messages
18,913
Likes
17,385
Location
Zentalquabula
#4
2 cents: lots of programs have problems with png files. Switch to jpg.
 

Zed

Size doesn't count!
Midas Member
Joined
Mar 30, 2010
Messages
11,654
Likes
9,057
Location
Springfield
#5
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.
 

AceNZ

Silver Member
Silver Miner
Joined
Apr 1, 2010
Messages
825
Likes
517
Location
American in New Zealand
#6
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.
 

Zed

Size doesn't count!
Midas Member
Joined
Mar 30, 2010
Messages
11,654
Likes
9,057
Location
Springfield
#7
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.
 

gpond

Silver Member
Silver Miner
Joined
Mar 29, 2010
Messages
662
Likes
394
#9
Code:
img class="attach" src="attachment.php?attachmentid=7930&stc=1&d=1305498189" alt="">
... :bear_w00t:
 

AceNZ

Silver Member
Silver Miner
Joined
Apr 1, 2010
Messages
825
Likes
517
Location
American in New Zealand
#11
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.
 

Zed

Size doesn't count!
Midas Member
Joined
Mar 30, 2010
Messages
11,654
Likes
9,057
Location
Springfield
#12
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.
 

dveaner

Board Elder
Board Elder
Joined
Nov 6, 2010
Messages
22
Likes
6
Location
The way overtaxed state of New York
#13
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.
 

Attachments

Zed

Size doesn't count!
Midas Member
Joined
Mar 30, 2010
Messages
11,654
Likes
9,057
Location
Springfield
#14
View attachment 7932 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. Set at 202,400 bytes, and not restricted for any particular group.
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
 

Zed

Size doesn't count!
Midas Member
Joined
Mar 30, 2010
Messages
11,654
Likes
9,057
Location
Springfield
#16
GD is loaded and permissions in vB look right. Checking other options...
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.