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

    I’m having a few problems with uploading and displaying of images, but the one which is giving me the most trouble is phpthumb. I’ve just installed revo, and cannot see any image thumbnails in the manager at all. If I open a thumbnail in a new window, so that the URL is:

    http://domain.com/connectors/system/phpthumb.php?h=150&w=150&src=/assets/images/CIMG4290.JPG

    then I see nothing at all, not even a phpthumb error. Viewing the source shows the page to be complete empty. Nothing gets dumped to any error logs either.

    All this is happening on a server where we are running older versions of MODx with php thumb working fine.
      • 14162
      • 67 Posts
      I’m getting this problem also. The MODx Browser lists the available image files but shows no thumbnails. In addition, the Image TV allows me to select an image to add to a document from the correct path, but displays no thumbnail on the document’s Template Variables page (just shows an image placeholder). I also get a blank page when checking the path:

      domain/connectors/system/phpthumb.php?src=/assets/images/image.png&w=X&h=Y

      If anyone can shed some light on this issue I’d be very grateful.


      MODx Revolution 2.0.0-pl rev7212 Traditional install on Linux, MySQL Client 5.0.45/MySQL Server 5.0.51a-community, pdo_mysql installed, PHP 5.2.5, all browsers, eAccelerator 0.9.5.2
        • 10473
        • 44 Posts
        Nobody?
          • 10473
          • 44 Posts
          I found out where the problem was.


          In the file /core/model/phpthumb/phpthumb.class.php the config setting config_imagemagick_path was not set.

          I have a deadline, and so haven’t got the time to work out where to set it (probably just a system setting, but I’m really up against it here), so I’ve come up with a quick fix.

          In the phpthumb.class.php on line 119, change:


          public $config_imagemagick_path = null;

          to:

          public $config_imagemagick_path = ’/usr/bin/convert’;

          or whatever the path is to your image magick convert program, and the thumbnail appears.


          Can anyone tell me the proper way to set this?

          Thanks.
            • 28215
            • 4,149 Posts
            Setting it there is fine for now; we’ve added a System Setting for this in the 2.0.1 patch release: http://github.com/modxcms/revolution/commit/9a80ac5bbcb4db34d88038176c890ef0394d40b0
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 8930
              • 44 Posts
              garethwi, many thanks for this fix!
                Equilibre Webdesign - Conception et r