We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49579
    • 4 Posts
    I've moved a site from my development environment to my clients server. Now, all of a sudden, images that were added through the manager are no longer showing. I've been searching high and low, but I really can't find a solution. It seems to be a problem with phpthumb since no images are shown anywhere, not on the site itself and not in the manager.

    If you look at this:

    http://www.pro-assistance.nl/phpthumbsup/w/1280/h/370/zc/1/src/assets/resourceimages/387/mast-nieuws.jpg

    And:

    http://www.pro-assistance.nl/assets/resourceimages/387/mast-nieuws.jpg

    You can see the image is present, but just not showing through Phpthumb.

    Also, Modx log is showing this (but I'm not sure if it's related):

    (ERROR @ /connectors/system/phpthumb.php) [migxResourceMediaPath]: docid could not be determined.


    Really hope someone can point me in the right direction. Thanks in advance!

    (modx revolution 2.2.13)

    This question has been answered by vinman. See the first response.

      • 30585
      • 833 Posts
      Are you using a media source other than the default filesystem to serve your images?

      It seems you are using MIGX. Can you post a call showing how you're displaying those images in the front end?
        A MODx Fanatic
        • 49579
        • 4 Posts
        A media source was set up named ResourceMediaPath, combined with MIGX. I think this was done along the lines of the online manual at http://rtfm.modx.com/extras/revo/migx/migx.tutorials/migx.use-resource-specific-media-source-and-multifile-uploader

        Chunk named 'header-afbeelding':
        [[+image:stripString=`/en/`:phpthumbsup=`w=1280&h=370&zc=1`]]


        Code to display image:
        [[!getImageList? &tvname=`header-afbeelding` &tpl=`header-afbeelding`]]


        I created a new TV to hold an image, without MIGX (input set as 'image'), unfortunately this fails as well. No images are shown in the manager or front-end. Uploading images seems to work fine.

        PS: The system was put together by someone else, I'm still trying to figure things out. Weird thing is that it all worked fine on my dev server. And even on my clients previous website running on the same server using the exact same setup. I checked permissions etc, but that seems to be ok.
          • 30585
          • 833 Posts
          Do your images load if you remove the phpthumbsup output modifier?
          [[+image:stripString=`/en/`]]


          Can you also confirm that ImageMagick 6.x or GD Library are installed on your client server?
            A MODx Fanatic
            • 49579
            • 4 Posts
            I tried taking out the stripString=`/en/` part, but no luck.

            Both GD and ImageMagick 6.5.4 are installed.
            • discuss.answer
              • 49579
              • 4 Posts
              The issue has been solved.

              After digging around in the core folders I found out that the file /core/model/phpthumb/phpthumb.functions.php was empty and 0 bytes. I replaced the file with a proper copy which solved the issue. I assume something went wrong during upload to the server.

              Thanks for your help!
                • 30585
                • 833 Posts
                No. Thank you for figuring this out. Many will find this useful.
                  A MODx Fanatic