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

    I appear to be having an issue with thumbnail generation of images located in an S3 bucket.

    The image uploads fine to the bucket but when viewing via the modx browser the thumbnail fails to generate.

    This works fine when I use the local file system.

    The errors that I get recorded are

    [2012-12-10 15:50:28] (ERROR @ /connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: /srv/www/bhlive/core/cache/phpthumb/phpThumb_cache__src86e693d96830ed328ed54163e2793100_par2eef4ecb8cab31f9431ed2b090a773e4_dat0.png

    [2012-12-10 15:50:28] (ERROR @ /connectors/system/phpthumb.php) Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 557

    Any help or suggestions welcomed
      • 42284
      • 13 Posts
      OK nearly there, it appears the URL for the media source has to include the bucket name.

      Now instead of throwing an error it reports that "Off-server thumbnailing is not allowed", does anyone know a way round this?
        • 42284
        • 13 Posts
        Should of Googled that before posting.

        It appears all you have to do is set phpthumb_nohotlink_valid_domains to include the referring domain