PDA

View Full Version : Some thumbnails not displaying



janslu
Sun 4th Jan '09, 9:20am
I am currently using 3.8.0 rc2 and I have a problem with attachments thumbnails. Some large image attachments don't display thumbnails. Thumbnails are created in the filesystem properly (the same folder, appropriate name, display as jpg).

At first I thought this is because of too restrictive limits in includes/config.php and I have changed it. I have also modified attachments settings (size, limits) in ACP and rebuilt thumbnails. There were no errors reported and thumbnails for most of the files were recreated fine. But these specific images are still displayed in their full resolution. When I reupload them (creating a new topic), everything seems to be working fine. I have no errors in apache logs and no errors during rebuilding thumbnails...

Here's one of them:
http://www.babyboom.pl/forum/udomowione-mamy-f253/mamy-domowkowe-18584/index1591.html#post3002867 (https://www.vbulletin.com/link.php?u=http%3A%2F%2Fwww.babyboom.pl%2Fforum%2F udomowione-mamy-f253%2Fmamy-domowkowe-18584%2Findex1591.html%23post3002867)

Any hints on what I can do to have these images displayed as a thumbnail?

Steve Machol
Sun 4th Jan '09, 6:46pm
You don't allow guests to view that page. :)

Nonetheless this is most likely due to an add-0n, possible vBSEO.

To troubleshoot this, first reupload all the original vB non-image files (except install.php). Make sure you upload these in ASCII format and overwrite the ones on the server. Also be sure to upload the admincp files to whichever directory you have set in your config.php file. Then run 'Suspect File Versions' in Diagnostics to make sure you have all the original files for your version and that none show 'File does not contain expected contents':

Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

[Note: In some cases you may also need to remove any of the listed .xml files in the includes/xml directory.]

Next, disable all plugins.

Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

Then if you still have this problem, create a new style and choose no parent style. This will force it to use the default templates. Finally empty your browser cache, close all browser windows then try again. Make sure you change to the new style and view your forums with it.

Do you have the same problem?

janslu
Mon 5th Jan '09, 7:54pm
Hi Steve,
still the same. I have disabled all plugins and it still doesn't display thumbnail for this attachment (and few other). I can't open the forum, I'm sorry, but you would see just one anormous 3600x2400 image instead of thumbnail.

And the thumbnail is created in the filesystem. It's properly named, and displays just fine (when I change the extension) when downloaded.

Anything I can do to help solve the problem?

Steve Machol
Mon 5th Jan '09, 8:27pm
Then the next step is to disable or remove vBSEO, including the htaccess changes. This is definitely due to a modification.

janslu
Tue 6th Jan '09, 7:33am
Hi, I did turn vbseo off for a test and it didn't change anything.

I've digged into the code a little bit and found out that this happens in attachment.php on line 270.

if ($vbulletin->GPC['thumb'])
{
$attachpath = fetch_attachment_path($attachmentinfo['userid'], $attachmentinfo['attachmentid'], true);
}
else
{
$attachpath = fetch_attachment_path($attachmentinfo['userid'], $attachmentinfo['attachmentid']);
}

usually $vbulletin->GPC['thumb'] is 1. But when it renders these specific posts it is not set. There's no value.

Can you direct my further tests? Where should it be set to true?

dirtycrow
Tue 6th Jan '09, 11:32am
same issue.

Steve Machol
Tue 6th Jan '09, 1:23pm
Sorry, I don't have anything new to add. This problem is from an add-on or modification. I do not have any idea which one though.

dirtycrow
Tue 6th Jan '09, 2:35pm
Sorry, I don't have anything new to add. This problem is from an add-on or modification. I do not have any idea which one though.
i've disabled all mods and / uninstalled them and followed all suggestions in this thread. issue still exists. it's driving me batty. where do i find the vBSEO settings?

janslu
Tue 6th Jan '09, 3:04pm
Sorry, I don't have anything new to add. This problem is from an add-on or modification. I do not have any idea which one though.

Steve,
I have disabled all modifications (vbseo included) and the issue didn't go away. Therefore I cannot accept your opinion.

The fact is that among many attachments I still have a couple images displaying in full version even though there is a corresponding thumbnail. Image dimensions exceeded includes/config.php limits at first but after I changed the limits and successfully recreated all of the thumbnails, I still see full resolution picture. If I change the condition in attachment.php (line 270) thumbnail shows up fine.

Why is the ($vbulletin->GPC['thumb']) not set in these few pictures even though it is set for more than 100 000 other? Where is this value set to true and what conditions apply? Is it possible that the number of attachments may play a role here (filenames are longer than 5 digits)?

I will be more than happy to provide you with full access and support. I need to fix this because it drives my users mad.

Steve Machol
Tue 6th Jan '09, 4:08pm
Okay. If you are convinced I am wrong and this is a bug in vB then please report this in the Bug Tracker here:

http://www.vbulletin.com/forum/project.php?projectid=6

It won't hurt my feelings. :)

dirtycrow
Fri 9th Jan '09, 12:14pm
ok, i just noticed if the image is small enough the thumbnail is displayed. if the image is smaller then a thumbnail it if not displayed. this is only happening in the user albums pages.