PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   [Bug] Rebuilding thumbnails (http://www.photopost.com/forum/bugs-vbulletin-3-6x/134011-bug-rebuilding-thumbnails.html)

KW802 October 26th, 2007 10:19 AM

[Bug] Rebuilding thumbnails
 
After losing 500~ files this week I tracked down a problem with how thumbnails are currently being rebuilt. :mad:

To recreate...
1) Specify a size for your thumbnails (eg: 100 which equates to 100x100).

2) Upload a test image to your gallery that is smaller than the thumbnail size (eg: A smilie, icon, or other small graphic). I would highly recommend you upload to a category that is used only for testing (eg: I created a "Trach Can" category for misc. purposes).

3) Rebuild the thumbnails for the category that you upload the small image into.

The image will now be gone. :eek:

The problem...
1) When an image is uploaded that is smaller than the thumbnail size the original file name is populated in the ppgal_images table in both the 'filename' and the 'thumbname' columns.

2) In /admincp/vba_gallery_admin.php at around line 1900 when it is rebuilding the thumbnails it does a blind delete of the thumbnail file.
Code:

Content visible to verified customers only.


All times are GMT -5. The time now is 05:14 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97