We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50330
    • 10 Posts
    Hi!

    I posted this a couple of weeks ago in general repository items support and no one replied so I thought maybe I'd try here.

    I'm have an issue that I've never run into before with rendering thumbnails via phpthumbof. I have this exact setup on a few other sites without any problems and I can't for the life of me figure out what's different on this one. I've tried uninstalling and reinstalling both extras a few times to no avail.

    If anyone has any idea what might be going on I'd be very grateful!

    I'm running:

    • revo 2.4.3
    • phpthumbof 1.4.0
    • gallery 1.7.0

    The problem is:

    Full original size images are rendering just fine but thumbnails are only rendering inside the manager.

    Thumbnails do render on the front end if I use the phpthumbof snippet call directly but not when used with the gallery.


    Here's the gallery snippet call:

    [[!Gallery? 
                            &album=`Photo Gallery` 
                            &thumbTpl=`galThumbTpl`
                            &thumbHeight=`300`
                            &thumbWidth=`300`
                            &thumbZoomCrop=`1`
                            &imageWidth=`1300`
                            &imageHeight=`1300`
                            &linkToImage=`1`
               ]]



    Also, here's the error that I'm getting in the log:


    [2016-05-06 15:24:39] (ERROR @ /index.php) [phpThumbOf] Could not generate thumbnail: /assets/components/gallery/connector.php - Debug: Array
    (
        [0] => phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 220
        [1] => setCacheDirectory() starting with config_cache_directory = "/home/mywebsite/public_html/core/cache/phpthumb/" in file "phpthumb.class.php" on line 961
        [2] => setting config_cache_directory to realpath(/home/mywebsite/public_html/core/cache/phpthumb) = "/home/mywebsite/public_html/core/cache/phpthumb" in file "phpthumb.class.php" on line 989
        [3] => setCacheDirectory() starting with config_cache_directory = "/home/mywebsite/public_html/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 961
        [4] => setting config_cache_directory to realpath(/home/mywebsite/public_html/assets/components/phpthumbof/cache) = "/home/mywebsite/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 989
        [5] => setSourceFilename(/assets/components/gallery/connector.php) set $this->sourceFilename to "/assets/components/gallery/connector.php" in file "phpthumb.class.php" on line 271
        [6] => CleanUpCacheDirectory() set to purge (30.0 days; 100.00 MB; 10,000 files) in file "phpthumb.class.php" on line 667
        [7] => CleanUpCacheDirectory() skipped because "/home/mywebsite/public_html/assets/components/phpthumbof/cache/phpThumbCacheStats.txt" is recently modified in file "phpthumb.class.php" on line 677
        [8] => Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 919
        [9] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 925
        [10] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 936
        [11] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 943
        [12] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 953
        [13] => ResolveFilenameToAbsolute() prepending $this->config_document_root (/home/mywebsite/public_html/) to $filename (/assets/components/gallery/connector.php) resulting in ($AbsoluteFilename = "/home/mywebsite/public_html//assets/components/gallery/connector.php") in file "modphpthumb.class.php" on line 262
        [14] => $this->sourceFilename set to "/home/mywebsite/public_html/assets/components/gallery/connector.php" in file "phpthumb.class.php" on line 849
        [15] => SetCacheFilename() _src set from md5($this->sourceFilename) "/home/mywebsite/public_html/assets/components/gallery/connector.php" = "9c0f5cb69b63921cfe959d6e60d8dc2f" in file "phpthumb.class.php" on line 3443
        [16] => SetCacheFilename() _par set from md5(_farC_zc1_h200_w200_dpi150_q75) in file "phpthumb.class.php" on line 3476
        [17] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3236
        [18] => GetImageSize(/home/mywebsite/public_html/assets/components/gallery/connector.php) says image is x in file "phpthumb.class.php" on line 3246
        [19] => GetImageSize("/home/mywebsite/public_html/assets/components/gallery/connector.php") failed in file "phpthumb.class.php" on line 3279
        [20] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1508
        [21] => phpThumb_tempnam() returning "/home/mywebsite/public_html/pThumbw6x90q" in file "phpthumb.class.php" on line 4275
        [22] => ImageMagickSwitchAvailable(thumbnail) = 1 in file "phpthumb.class.php" on line 1445
        [23] => ImageMagickSwitchAvailable(density) = 1 in file "phpthumb.class.php" on line 1445
        [24] => GetImageSize(/home/mywebsite/public_html/assets/components/gallery/connector.php) FAILED with error "" in file "phpthumb.class.php" on line 1602
        [25] => GetImageSize(/home/mywebsite/public_html/assets/components/gallery/connector.php) failed in file "phpthumb.class.php" on line 1749
        [26] => Remaining $this->fltr after ImageMagick: (array(0) { } ) in file "phpthumb.class.php" on line 2132
        [27] => ImageMagickSwitchAvailable(quality;interlace) = 1 in file "phpthumb.class.php" on line 1442
        [28] => ImageMagick called as (convert -density '150' -thumbnail '200x200' -quality '75' -interlace line  '/home/mywebsite/public_html/assets/components/gallery/connector.php[0]' jpeg:'/home/mywebsite/public_html/pThumbw6x90q' 2>&1) in file "phpthumb.class.php" on line 2151
        [29] => ImageMagick failed with message (convert: no decode delegate for this image format `/home/mywebsite/public_html/assets/components/gallery/connector.php' @ error/constitute.c/ReadImage/532.
    convert: missing an image filename `jpeg:/home/mywebsite/public_html/pThumbw6x90q' @ error/convert.c/ConvertImageCommand/3015.) in file "phpthumb.class.php" on line 2156
        [30] => deleting "/home/mywebsite/public_html/pThumbw6x90q" in file "phpthumb.class.php" on line 2188
        [31] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3286
        [32] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3215
        [33] => SetOrientationDependantWidthHeight() setting w="200", h="200" in file "phpthumb.class.php" on line 3231
        [34] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3343
        [35] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3603
        [36] => starting ImageCreateFromFilename(/home/mywebsite/public_html/assets/components/gallery/connector.php) in file "phpthumb.class.php" on line 3518
        [37] => empty $filename or GetImageSize(/home/mywebsite/public_html/assets/components/gallery/connector.php) failed in file "phpthumb.class.php" on line 3567
        [38] => Populating $rawimagedata in file "phpthumb.class.php" on line 3575
        [39] => attempting ImageCreateFromStringReplacement($rawimagedata (2258 bytes), true) in file "phpthumb.class.php" on line 3589
        [40] => ImageCreateFromStringReplacement() calling built-in ImageCreateFromString() in file "phpthumb.class.php" on line 4159
        [41] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3674
        [42] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3726
        [43] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3728
        [44] => phpThumb() v1.7.13-201406261000
    http://phpthumb.sourceforge.net
    
    Error messages disabled.
    
    edit phpThumb.config.php and (temporarily) set
    $PHPTHUMB_CONFIG['disable_debug'] = false;
    to view the details of this error in file "phpthumb.class.php" on line 4050
        [45] => SourceImageToGD() failed in file "phpthumb.class.php" on line 351
    )
    



    Thanks very much!
      • 5430
      • 247 Posts
      I'd bet this is the important bit:

      [29] => ImageMagick failed with message (convert: no decode delegate for this image format `/home/mywebsite/public_html/assets/components/gallery/connector.php' @ error/constitute.c/ReadImage/532.
      convert: missing an image filename `jpeg:/home/mywebsite/public_html/pThumbw6x90q' @ error/convert.c/ConvertImageCommand/3015.) in file "phpthumb.class.php" on line 2156


      I'm no ImageMagick expert, but my understanding is that this error indicates you're missing the proper library for the 'jpeg' filetype, or the files are suffixed incorrectly. Are the other sites you mention (the ones that are working) on the same server?