Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Whelk - helmikuu 11, 2009, 04:44:38 IP

Otsikko: No Image Thumbnails Under Posts
Kirjoitti: Whelk - helmikuu 11, 2009, 04:44:38 IP
Problem:  Image thumbnails won't show up under the posts they're attached to.  They used to, now they don't.

Notes: 
- SMF v2.0 Beta 4
- You can still click on the image attachment link and download the image.  The images open fine if you download and then open them.
- "Display image attachments as pictures under post" is checked under Admin > Attachments and Avatars > Attachment Settings
- "Resize images when showing under posts" is also checked.
- I recently moved my forum from a hosted server to my own personal web server.  Using Apache2.  I believe the images were showing up for the first few days after the server move, then suddenly stopped.

Any insights?
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Tyrsson - helmikuu 11, 2009, 04:54:37 IP
Have you added any new attachments since the move?
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Whelk - helmikuu 11, 2009, 05:25:00 IP
Not until just now (and I'm feeling a bit sheepish about it).  I just made a new post with an attachment, and the thumbnail is showing up for it.  Previous images (in the same topic) still aren't showing thumbnails.
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Tyrsson - helmikuu 11, 2009, 07:30:15 IP
WHen you moved the forum did you run the repair_settings or did you reset manually?

Make sure the actual attachment files were moved as well..
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Tyrsson - helmikuu 11, 2009, 07:33:46 IP
Re read your post and the files were moved if you can download them..

Doing some checking..

Can you provide a link please?
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Whelk - helmikuu 11, 2009, 11:30:18 IP
I sent you a PM with a link and username/password to use since guests aren't allowed to view anything.  I hope your remaining brain cell can handle it.
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Tyrsson - helmikuu 12, 2009, 12:38:38 AP
I viewed the source and cant see any apparent reason why they are not showing.. Will have to do some more checking :)
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Whelk - helmikuu 12, 2009, 12:58:31 AP
Thanks for taking a look at it.
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Tyrsson - helmikuu 12, 2009, 01:00:28 AP
No problem, wish I could think of anything that would help, but as I said I didnt see anything that was obviously out of place... I will keep looking into the subject to see if we can find an answer to it :)
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Whelk - helmikuu 12, 2009, 12:06:37 IP
Looks like it's a problem with the thumbnail images themselves.  I just tried going to the Attachments folder and opening one and got the following error:

Could not load image '(image-name)'
Fatal error reading PNG image file:  PNG file corrupted by ASCII conversion.

Various other errors are coming up for jpg files.

Apparently the files got corrupted somehow.  Bummer.
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Tyrsson - helmikuu 12, 2009, 12:26:27 IP
May have been due to a bad ftp transfer if you forced the files to be transferred in a particular format. Most times its best to have yout ftp set to automatically detect those settings.
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Whelk - helmikuu 12, 2009, 01:54:20 IP
Huh.  So the FTP client could have caused it?  I'm using Filezilla.  Let's see ... annnnd ... yep, there it is. 

Edit > Settings > Transfers > File Types

It was transferring dot files and files without an extension as ASCII.  Unchecked those options, re-downloaded from a backup that I left on the old server, and boom:  The images are showing up properly once again.

You, sir, are brilliant.  I owe you a pizza.  Thanks again for all the help - I'm enjoying expanding my own knowledge on all this stuff.  Hopefully I'll eventually become a helper instead of a helpee.
Otsikko: Re: No Image Thumbnails Under Posts
Kirjoitti: Tyrsson - helmikuu 12, 2009, 02:06:06 IP
Glad you got it sorted out :)

Thanks, but not brilliant... Just have made most of the mistakes that can be made already ;)