We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40131
    • 40 Posts
    I have experienced a strange issue. All my thumb scripts were working beautifully with set up option for Unsharp masking e.g.

    &options=`w=150&h=113&fltr[]=usm|80|0.5|3&q=99&far=1`

    I think something happened yesterday /an XMAS surprise smiley / on the sever hosting and unsharp masking or ANY other GD filter transformations are not working, and there is no error feedback at all. I tested on standalone blank MODX Revo installation and had the same result - no GD filters applied?!

    Is there a way somehow to enable a kind of logging or debug mode in order (of phpthumbof or GD) to track why all this is happening. I think if I contact the hosting about that with no proof they will pay no attention at all and not take me seriously, since GD library appears to be "OK" as shown by phpinfo... [ed. note: nickyz last edited this post 13 years, 9 months ago.]
      • 40045
      • 534 Posts
      You could probably dig into the phpthumbof class file and add some logging yourself, especially where GD library is requested maybe?
        • 3749
        • 24,544 Posts
        The Captcha package checks for a bunch of GD functions on install and reports any missing ones -- worth a try.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 40131
          • 40 Posts
          Quote from: BobRay at Dec 26, 2012, 09:58 AM
          The Captcha package checks for a bunch of GD functions on install and reports any missing ones -- worth a try.

          thanks BobRay, I've tried but no clue so far:

          Attempting to install package with signature: captcha-3.3.0-pl
          Package found...now preparing to install.
          Grabbing package workspace...
          Workspace environment initiated, now installing package...
          Running PHP Validator.
          Checking for GD and FreeType:
          GD lib found
          Checking for necessary functions
          Checking for imagettfbbox function:
          OK
          Checking for imagecreate function:
          OK
          Checking for imagecolorallocate function:
          OK
          Checking for imagettftext function:
          OK
          Checking for imagecolortransparent function:
          OK
          Checking for imagedestroy function:
          OK
          Checking for imagecreatefromjpeg function:
          OK
          Checking for imagesx function:
          OK
          Checking for imagesy function:
          OK
          Checking for imagecreatetruecolor function:
          OK
          Checking for imagecopyresampled function:
          OK
          Checking for imagecopymerge function:
          OK
          No Problems -- installing CAPTCHA plugin
          Successfully installed package captcha-3.3.0-pl
            • 3749
            • 24,544 Posts
            Maybe phpThumbOf uses a function not checked there, but it seems unlikely if those are OK.

            Is there anything in the MODX Error log?

            This is from the phpThumbOf Troubleshooting section:


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

            • Make sure you have ImageMagick installed and enabled on your PHP installation

            • 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

              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 40131
              • 40 Posts
              It turned out that was a hosting related issue and fixed somehow from the hosting company. Unfortunately no explanation was given.

              Big thanks for everyone and I am sorry for wasting your time.

              [theme closed]