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

    My image browser (selecting files in the text editor) is showing broken links rather than thumbnails of the images. they display fine elsewhere, except in the Template Variables preview, which has the same problem.

    MODX resource browser generates thumbnail links like this, which seem to call phpthumb:

    <img src="/connectors/system/phpthumb.php?src=assets/images/social/facebook.png&w=80&h=60&f=png&q=90&HTTP_MODAUTH=modx518d2fea180767.99611419_11523dfd18c46412.15284383&wctx=mgr&source=1" title="facebook.png" width="90" height="90">


    generating MODX errors like this, also showing a phpthumb error, it seems in generating the thumbnail image:

    [2013-09-21 21:18:20] (ERROR @ /connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: /data/vhost/org.modx.example.org/docs/modx-revolution/core/cache/phpthumb/phpThumb_cache_www.example.org_src6a37868979a19c12417094b5a390c63f_par2eef4ecb8cab31f9431ed2b090a773e4_dat1322827317.png
    [2013-09-21 21:18:20] (ERROR @ /connectors/system/phpthumb.php) Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 557
    


    Does anyone have an idea what may be wrong?
      • 37514
      • 178 Posts
      Hi all,

      I resolved this, it was a problem with phpThumb, which sometimes doesn't work because of a problem using DOCUMENT_ROOT.

      There is an override setting, called phpthumb_document_root which you can set when this problem occurs.

      Jim
      (link to manual)