We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27705
    • 38 Posts
    I’m trying to figure out what I did wrong in my setup of phpthumbof. I have a feeling I installed imagemagick incorrectly on xampp (i’m working localhost).

    Does this error log make sense to anyone?
    [phpThumbOf] Could not generate thumbnail: assets/images/Products/HDCIR/t_HDCIR.jpg - Debug: Array
    (
        [0] => phpThumb() v1.7.9-200712090829 in file "phpthumb.class.php" on line 216
        [1] => setCacheDirectory() starting with config_cache_directory = "C:\xampp\htdocs\oldmodx/core/cache/phpthumb/" in file "phpthumb.class.php" on line 919
        [2] => setting config_cache_directory to realpath(C:\xampp\htdocs\oldmodx\core\cache\phpthumb) = "C:\xampp\htdocs\oldmodx\core\cache\phpthumb" in file "phpthumb.class.php" on line 947
        [3] => setCacheDirectory() starting with config_cache_directory = "C:/xampp/htdocs/oldmodx/assets/components/phpthumbof/cache/" in file "phpthumb.class.php" on line 919
        [4] => setting config_cache_directory to realpath(C:\xampp\htdocs\oldmodx\assets\components\phpthumbof\cache) = "C:\xampp\htdocs\oldmodx\assets\components\phpthumbof\cache" in file "phpthumb.class.php" on line 947
        [5] => setSourceFilename(assets/images/Products/HDCIR/t_HDCIR.jpg) set $this->sourceFilename to "assets/images/Products/HDCIR/t_HDCIR.jpg" in file "phpthumb.class.php" on line 243
    


    This is the short version, it goes on quite a bit longer.
      • 37044
      • 68 Posts
      Hi I appreciate that some time has passed since the OP but thought it might be useful if anyone else finds this again.

      I just saw somthing in the phpthumb of docs that might be related to your error - under "troubleshooting"

      http://rtfm.modx.com/display/ADDON/phpThumbOf

      The first point is

      Make sure that the "assets/components/phpthumbof/cache" directory is created and is writable by PHP

      Second point

      If your host is using symlinks for its directory structure, make sure they point to the correct, true path in core/config/config.inc.php

      Is it possible that on your dev server this director either doesn't exist or is not writeable? If not I might be an issue with your core paths possibly.

      Hope this helps someone.