From b2c6cd5b3d39f3405568fcf0ae97837f01bae98b Mon Sep 17 00:00:00 2001 From: InfinityHayden Date: Sat, 18 Mar 2017 08:23:30 +0000 Subject: [PATCH] Thumb error If you install this script as is within public_html for example or even public_html/galleryscript once you upload images into cat/dog/misc when you load the index.php it will show error thumbnails it tries to retrieve the thumbnail from / and then displays no image, once you click on the broken image the full image still loads. I have changed line 467 from ThumbsDir . '/' to ThumbsDir . '/cache/' and it seems to solve the issue. --- resources/UberGallery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/UberGallery.php b/resources/UberGallery.php index a4d6ef9..1ea8dea 100644 --- a/resources/UberGallery.php +++ b/resources/UberGallery.php @@ -464,7 +464,7 @@ protected function _createThumbnail($source, $thumbSize = NULL, $quality = 75) { // If file already exists return relative path to thumbnail if (file_exists($destination)) { - $relativePath = $this->_rThumbsDir . '/' . $fileName; + $relativePath = $this->_rThumbsDir . '/cache/' . $fileName; return $relativePath; }