We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16815
    • 49 Posts
    In my local develop environment, I have installed the Gallery add-on. I have created an album, and uploaded two images to it, but the thumbnails won’t show, only broken images (see image attachment).

    Here’s the source code of one of the images:
    <img src="/creo-x/modx/assets/components/gallery/connector.php?action=web/phpthumb&h=100&w=100&zc=1&far=C&src=http%3A%2F%2Flocalhost%3A8888%2Fcreo-x%2Fmodx%2Fassets%2Fcomponents%2Fgallery%2Ffiles%2F2010%2F07%2Ffacelars01.jpg" title="Facebook bilde">


    Is it not showing because of the formatting in the SRC attribute in the phpthumb call? Is this something I can fix or is this an issue with the add-on?

    Thanks
      • 28215
      • 4,149 Posts
      What version of the Gallery add-on are you using?
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 16815
        • 49 Posts
        I have version 1.0.1-rc1 installed.
          • 16815
          • 49 Posts
          I might add that I tried to open the SRC url in a browser, http%3A%2F%2Flocalhost%3A8888%2Fcreo-x%2Fmodx%2Fassets%2Fcomponents%2Fgallery%2Ffiles%2F2010%2F07%2Ffacelars01.jpg, but it wouldn’t open. When I replaced all the formatting ("%3A"= ":" and so on) the image appeared.

          Don’t know if this helps smiley
            • 28215
            • 4,149 Posts
            Look for the system setting xhtml_urls, and change the value to No.
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 16815
              • 49 Posts
              It was already set to no.

              In my webkit console I get a warning message for every image, that it is interpreted as image, but transferred as text/html.

              Is that some generic warning?

                • 16815
                • 49 Posts
                Just checked another thing. I created an image TV so I could open the MODx Browser and see if it showed the same pictures, and it did. So it’s nothing wrong with phpThumb at least. I noticed that the browser displays images a little different:
                <img src="/creo-x/modx/connectors/system/phpthumb.php?src=/assets/components/gallery/files/2010/07/bilde28.jpg&w=80&h=60" title="bilde28.jpg" width="90" height="90">


                Dont’ know if this relates to the Gallery problem, but I can see that there is no formatting of slashes and colons.
                  • 32873
                  • 9 Posts
                  Was this finally resolved? It seems, that I am experiencing similar abnormalities, posted here: http://modxcms.com/forums/index.php/topic,65706.0.html

                  Simon