Ticket #107 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Setup cache_directory for thumbnails during install

Reported by: anonymous Owned by: mike
Priority: normal Milestone:
Component: Administration Version:
Severity: normal Keywords:
Cc:

Description

I get the following error when uploading an image. The picture does get uploaded but the thumbnail is not generated. If thumbnail caching is not enabled when the cache directory is not set, an application error message instead of the following would be more readable.

Failed: $AvailableImageOutputFormats? = array(text;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 519 $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 529 $this->thumbnailFormat staying as "jpeg" because "" ($this->f) is not in $AvailableImageOutputFormats? in file "phpthumb.class.php" on line 539 $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 546 $this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 587 SetCacheFilename?() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 1815 GetImageSize?("") failed in file "phpthumb.class.php" on line 1800 starting SourceImageToGD() in file "phpthumb.class.php" on line 1886 Not using EXIF thumbnail data because $this->config_use_exif_thumbnail_for_speed is FALSE in file "phpthumb.class.php" on line 1889 phpThumb() v1.6.0-200507180958 "C:\Program Files\xampp\plogger/images/foo/portfolio/portfolio8.jpg" does not exist

Change History

Changed 3 years ago by anonymous

I found the change required online. The following modification fixes the problem.

Open up plog-functions.php and edit line 75. Change: $phpThumb->src = $source_file_name; to $phpThumb->setSourceFileName($source_file_name);

Changed 3 years ago by anti

  • status changed from new to closed
  • resolution set to invalid

this is also fixed in SVN

Note: See TracTickets for help on using tickets.