We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19153
    • 53 Posts
    We have a large company website that i have transitioned over to Revolution. After realising that content editors can get into the entire file system when they upload images via TV's we have implemented a media source that points them to assets/images. To get this to work it meant editing the database to remove this string from the current image TV's

    So far so good everything works well except for phpthumbof. The images are still being found but are being displayed at full size and phpthumb is not doing its job since we have added the media sources.

    Any ideas here?
    • Paul,

      Sorry but there was a spam post in your thread and somehow deleting it removed your followup post with your error output. Could you repost. I'll get some folks to take a peek when you do. Again, sorry about the issue.
        Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. BlogTwitterLinkedInGitHub
        • 19153
        • 53 Posts
        Thanks Jay

        This issue still persists, presumably a path issue but a bit too technical for me, if anybody can make sense of this error log i would appreciate it!

        [2012-07-17 16:12:31] (ERROR @ /~clearcha/index.php) [phpThumbOf] Could not generate thumbnail: /~clearcha/assets/images/press/stories/2012/February/plan_uk.JPG - Debug: Array
        (
            [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
            [1] => setCacheDirectory() starting with config_cache_directory = "/home/clearcha/public_html/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
            [2] => setting config_cache_directory to realpath(/home/clearcha/public_html/core/cache/phpthumb) = "/home/clearcha/public_html/core/cache/phpthumb" in file "phpthumb.class.php" on line 947
            [3] => setCacheDirectory() starting with config_cache_directory = "/home/clearcha/public_html/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
            [4] => setting config_cache_directory to realpath(/home/clearcha/public_html/assets/components/phpthumbof/cache) = "/home/clearcha/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
            [5] => setSourceFilename(/~clearcha/assets/images/press/stories/2012/February/plan_uk.JPG) set $this->sourceFilename to "/~clearcha/assets/images/press/stories/2012/February/plan_uk.JPG" in file "phpthumb.class.php" on line 243
            [6] => skipping CleanUpCacheDirectory() set to purge (30.0 days; 100.00MB; 10,000 files) in file "phpthumb.class.php" on line 652
            [7] => $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 884
            [8] => $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 895
            [9] => $this->thumbnailFormat set to $this->f "jpeg" in file "phpthumb.class.php" on line 902
            [10] => $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 912
            [11] => phpThumb() v1.7.9-200712090829
        
        phpthumb_functions::ApacheLookupURIarray() failed for "/~clearcha/assets/images/press/stories/2012/February/plan_uk.JPG". This has been known to fail on Apache2 - try using the absolute filename for the source image (ex: "/home/user/httpdocs/image.jpg" instead of "/~user/image.jpg") in file "phpthumb.class.php" on line 3647
            [12] => $this->sourceFilename set to "" in file "phpthumb.class.php" on line 813
            [13] => phpThumb() v1.7.9-200712090829
        
        "" does not exist in file "phpthumb.class.php" on line 3647
            [14] => setCacheDirectory() starting with config_cache_directory = "/home/clearcha/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 919
            [15] => setting config_cache_directory to realpath(/home/clearcha/public_html/assets/components/phpthumbof/cache) = "/home/clearcha/public_html/assets/components/phpthumbof/cache" in file "phpthumb.class.php" on line 947
            [16] => phpThumb() v1.7.9-200712090829
        
        phpthumb_functions::ApacheLookupURIarray() failed for "/~clearcha/assets/images/press/stories/2012/February/plan_uk.JPG". This has been known to fail on Apache2 - try using the absolute filename for the source image (ex: "/home/user/httpdocs/image.jpg" instead of "/~user/image.jpg") in file "phpthumb.class.php" on line 3647
            [17] => SetCacheFilename() _src set from md5($this->sourceFilename) "" = "d41d8cd98f00b204e9800998ecf8427e" in file "phpthumb.class.php" on line 3077
            [18] => SetCacheFilename() _par set from md5(_farC_zc1_h150_w300_dpi150_q75) in file "phpthumb.class.php" on line 3110
            [19] => starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2897
            [20] => GetImageSize("") failed in file "phpthumb.class.php" on line 2920
            [21] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
            [22] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
            [23] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2927
            [24] => SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2876
            [25] => SetOrientationDependantWidthHeight() setting w="300", h="150" in file "phpthumb.class.php" on line 2892
            [26] => EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 2979
            [27] => starting SourceImageToGD() in file "phpthumb.class.php" on line 3229
            [28] => $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1232
            [29] => ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1279
            [30] => Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3278
            [31] => $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3330
            [32] => ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3332
            [33] => phpThumb() v1.7.9-200712090829
        
        Unknown image type identified by "" () in SourceImageToGD()[3444] in file "phpthumb.class.php" on line 3647
            [34] => SourceImageToGD() failed in file "phpthumb.class.php" on line 323
        )
        
        
          • 23510
          • 168 Posts
          How are you using phpthumb - as an output filter or a snippet?
            • 19153
            • 53 Posts
            OK i managed to get this fixed!

            For anybody else that has this problem - I simply changed basePathRelative and baseUrlRelative to 'NO' in the media source settings, this has solved the phpthumb issue.....

              • 19153
              • 53 Posts
              hmmm perhaps still not fixed, now when using the file browser to change an image TV, the media source seems to stop the browser working, it just says 'files' but you cannot navigate through the folders........

              any thoughts?
                • 23510
                • 168 Posts
                do both of your paths end in slashes?