PDA

View Full Version : Attachments - PNG thumbnails work, JPEGs do not


icebane
09-26-2013, 04:44 PM
I'm having a hard time figuring out what went wrong with my forum.

I can't pinpoint when or why, but jpeg thumbnails are no longer showing up when inserted inline or as an attached file.

PNGs continue to work fine.

JPEGs don't show the thumbnail but you can click and the lightbox works!

Here is a thread I created with a variety of tests. You'll see the last is a PNG screenshot of our GD settings in phpinfo.

http://forums.spiders.us/showthread.php?t=7723

I've tried and double checked...

Attachment Permissions
Cookie domain
User group permissions
Folder permissions


Does anyone have any ideas? Given our picture focused community, this has been a serious headache for me :(

tbworld
09-26-2013, 10:26 PM
Sorry, went to take a look but your site tells me the thread does not exist.

dirknerkle
09-28-2013, 11:48 PM
You're not alone. Everything has been working fine on my site but then about two weeks ago, JPGs no longer displayed thumbnails while PNGs work fine. Now JPGs only display as a link.

I fail to believe it's a cookie issue as nothing has changed with that since last April. I've tried all the updates/refreshes suggested but nada.

Using vbulletin 4.2.1

Here's a link to an example (you may have to register to see it):

http://diychristmas.org/vb1/showthread.php?922-TESTING-JPG-vs-PNG-thumbnails&p=7160#post7160

tbworld
09-28-2013, 11:52 PM
This may be obvious, but I wanted to make sure we covered the basics.

This is still a problem when you disable your hooks?

I know it is a 'DUH' question....

dirknerkle
09-29-2013, 12:13 AM
I'm sorry, I'm not following you -- "disable your hooks" ? Do you mean turn off the extensions?

tbworld
09-29-2013, 12:26 AM
Quoted from @Lynne for sake of clarity:

If you think the problem is a plugin, then disable your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

-----------------------------------------
You can also do this in your admincp.

AdminCP -> Settings -> Options -> Plugin/Hook System -> Enable Plugin/Hook System






__________________

ozzy47
09-29-2013, 12:36 AM
Since you have access to the ACP you can also do this:

ACP --> Settings --> Options --> Plugin/Hook System, set the option, Enable Plugin/Hook System to NO

dirknerkle
09-29-2013, 12:38 AM
Okay. The only plugin I had was TapaTalk, and that's disabled. The enable Plugin/hook system is set to NO. There are lines through the names of all the plugins on the Plugin manager page.

I ran another test and no change. Is it necessary to have a height and width setting for the size of JPG files? PNG is set to zero, as are all the other graphical file types. PNG works...

tbworld
09-29-2013, 12:38 AM
Thanks Ozzy... I really need shortcuts to this kind of stuff. :)

Lynne
09-29-2013, 12:42 AM
So you are having issues with thumbnails. What version of PHP are you currently using? This is a symptom of a vB4 site upgraded to PHP5.4.

dirknerkle
09-29-2013, 12:42 AM
I logged out of the forum completely, then signed back in, uploaded a JPG attachment and... only a link appears.

Lemmecheck the PHP version...

--------------- Added 1380419100 at 1380419100 ---------------

PHP version 5.4.19 Build date Aug 25 2013

So this is the culprit? How would I get past it? AFAIK I haven't changed the PHP settings on my server....

Lynne
09-29-2013, 12:47 AM
Yep, that is the culprit. vB4.2.2 alpha1 is out which is compatible with PHP5.4. OR, if you have SSH access to your site, you may run this script on your vB4.2.1 files to make them compatible with PHP5.4 - http://www.vbulletin.com/forum/blogs/george-l-vb-4-x-blog/3991278-vbulletin-4-2-x-and-php-5-4-unofficial-work-around-automated-shell-script . OR, you may ask your host to put you back on a server running PHP5.3 or PHP 5.2.

dirknerkle
09-29-2013, 12:51 AM
Well, I'll be.....

Thanks very much for the considerable help provided here tonite. It is very, very much appreciated.

I will check my host's settings -- I may have an option to select a version of PHP to use.

Again, thank you very much.

tbworld
09-29-2013, 12:54 AM
Thanks @Lynne, I would have never thought of that. Glad your at the helm! :)

Lynne
10-01-2013, 04:30 PM
I've just heard of this particular problem before and happened to remember it (which is getting harder and harder every day!).