We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26303
    • 27 Posts
    First, great job on the Gallery Add-On and the GalleryItem TV in 1.0.1 rc2! Well worth the wait.

    But I am having one problem. In a custom galleryitem TV, I can choose an image using the Gallery Browser just fine. But when that’s done and it goes back to the photo editor, no image will display. Sometimes there will be a broken image link and the file name within a box with scroll bars; other times only the file name will appear. But no image! The TV itself works fine.

    I can see the image src path used by the gallery connector and it is correct. I’m wondering if this is a phpthumb caching issue or permissions issue of some sort. There is a system setting for gallery.phpthumb_path that points to /assets/components/phpthumb/ but that path doesn’t exist.

    Fortunately I do get the following in the error log, with the paths cleaned up. Any help is much appreciated!


    [2010-09-09 18:07:31] (ERROR @ .../core/model/phpthumb/phpthumb.class.php : 1312) PHP warning: getimagesize(.../assets/components/gallery/files/2010/09/image.jpg) [<a href=’function.getimagesize’>function.getimagesize</a>]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required

    [2010-09-09 18:07:33] (ERROR @ .../assets/components/gallery/connector.php) [Gallery] phpThumb was unable to generate a thumbnail for: .../core/cache/phpthumb/phpThumb_cache_..._srca4cdff11234d97b88e6b287c72d17ec0_par84866f89048978355f0237b811f2fd75_dat0.jpeg

    [2010-09-09 18:07:33] (ERROR @ .../assets/components/gallery/connector.php) [Gallery] Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 557


    Here is the environmental info:

    MODx 2.0.0-PL Traditional
    Linux 2.6.34.1
    PHP 5.2.13
    MySQL Client 5.1.48
    MySQL Server 5.1.48
      • 26303
      • 27 Posts
      Also, I did try changing the system setting for "Prepend Site URL to Thumbs". When I turned it on, then the thumbnails in the Gallery Browser disappeared.