TinyPortal

Development => Support => Topic started by: imperialx on March 19, 2006, 07:03:40 PM

Title: Possible attachments bug
Post by: imperialx on March 19, 2006, 07:03:40 PM
In the settings area I have the option checked to show a thumbnailed version of an image attachment. Now when I goto one of my forums and made a test post with a 995x1361 230kb image, it just shows up as a link under the post and not as a thumbnail.
Title: Re: Possible attachments bug
Post by: IchBin on March 19, 2006, 07:40:02 PM
I would think you would want to ask SMF about this, not TinyPortal?
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 07:52:44 PM
It worked fine until I installed TP.
Title: Re: Possible attachments bug
Post by: IchBin on March 19, 2006, 07:56:47 PM
You might of told me that in the first place lol? When posting questions we need all the info we can get imperialx. What version of theme/SMF/TP ? Following the posting guidelines in my sig would be appreciated. I'm thinking it may be a theme problem. But I don't know at this point.
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 07:58:16 PM
Default(core) theme, SMF 1.1 RC2 and TP 0.8.6.
Title: Re: Possible attachments bug
Post by: IchBin on March 19, 2006, 08:00:33 PM
CAn you point me to the place that you're trying to do this? I'd like to try it myself if you don't mind.
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 08:01:18 PM
http://www.imperialx.com/
Title: Re: Possible attachments bug
Post by: IchBin on March 19, 2006, 08:03:26 PM
Does this happen with any image? or just ones over a certain size?
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 08:05:52 PM
It worked for an 80x80, but the rest failed.
Title: Re: Possible attachments bug
Post by: IchBin on March 19, 2006, 08:09:09 PM
Do you have checked, "Resize images when showing under posts" checked?

Also, did you specify a thumbnail size?
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 08:10:08 PM
Yes I do.
Title: Re: Possible attachments bug
Post by: IchBin on March 19, 2006, 08:12:32 PM
hmm... well I don't really know at this point. Only thing I can do is experiment with it myself if you want to grant me Admin temporarily.
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 08:13:31 PM
Ok, I'll grant you admins. Let me just go make a backup first just incase. :P
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 08:16:24 PM
Backup done, you now have administrator status.
Title: Re: Possible attachments bug
Post by: IchBin on March 19, 2006, 08:29:17 PM
hmm... I'm at a loss. I don't know what is going on. Have you tried removing TP to see if they work?

I have to go now, I"ll check on this thread later.
Title: Re: Possible attachments bug
Post by: imperialx on March 19, 2006, 08:51:13 PM
Setup a test subdomain with no mods, just plain forum, and still has problems. I think you might be right in it might be a bug in SMF...

http://test.imperialx.com/index.php?topic=2.0
Title: Re: Possible attachments bug
Post by: bloc on March 20, 2006, 11:06:42 AM
It might be that thumbnails can't be made...do you know what memory limit PHP has on your server?
Title: Re: Possible attachments bug
Post by: TwinsX2Dad on March 20, 2006, 11:38:55 AM
Quote from: imperialx on March 19, 2006, 07:03:40 PMmade a test post with a 995x1361 230kb image
Quote from: Bloc on March 20, 2006, 11:06:42 AMIt might be that thumbnails can't be made...do you know what memory limit PHP has on your server?

I have to say you're probably dead on here, Bloc - bringing an image down from that size to thumbnail would place a harsh load on server memory. A shared host isn't setup to do that. I've seen some VPS accounts which couldn't reliably do that.
Title: Re: Possible attachments bug
Post by: bloc on March 20, 2006, 11:46:31 AM
Yes. Been there..

The usual 8mb will not cut it..not over 1000-1100 pixles in height anyway, but that may vary of course.
Title: Re: Possible attachments bug
Post by: IchBin on March 20, 2006, 05:15:17 PM
Especially if smaller sizes seem to be working. That sounds like the ticket.