We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53986
    • 12 Posts
    Hello, I have my web page set up and using template variables for a few different images across my homepage.

    There is a banner image at the top which is controlled by a template variable, and there is a picture about midway down the page as well. The midway image has a text template variable next to it.

    The banner image was working before, but will not any longer. The little loading icon comes up, but that is it. The image itself never actually loads. Chrome Dev Tools states an image not found error.

    For the image midway down the page, this TV always loads. No problem whatsoever. I even selected the same photo that is supposed to be used for the banner, and it loads fine. All of the text template variables load fine as well.

    What would be causing the image not found error? How can I debug this further? [ed. note: brickthenick last edited this post 8 years, 6 months ago.]
      • 17301
      • 932 Posts
      First try clearing your cache both in the manager and in the core/cache folder manually.

      Secondly, are you using anything to process the image to the front end such as pthumb or just calling the tv straight? Is the image tv assigned to a certain media source?

      Can you post the line in your chunk/template where you're calling the image?
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 53986
        • 12 Posts
        I have cleared the cache in both of those places. That didn't fix it.

        I am just calling the TV straight. Not using Pthumb or anything to process it. In the output options it is set to image.

        Here is the line of code.
        <li data-transition="fade" data-slotamount="7"> <img src="[[*CI1]]" data-bgposition="center top" alt="" />
          • 17301
          • 932 Posts
          Output should be default rather than image
            ■ email: [email protected] | ■ website: https://alienbuild.uk

            The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
            • 53986
            • 12 Posts
            If set to default, the little loading icon doesn't even show. It just acts as if the TV isn't even input. Still getting the 404 not found error in dev tools.
              • 17301
              • 932 Posts
              When you inspect the markup what is being posted out when it is set to default ?
                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 53986
                • 12 Posts
                Quote from: lkfranklin at Mar 28, 2018, 12:48 PM
                When you inspect the markup what is being posted out when it is set to default ?

                It is literally just acting like there is no picture there. It loads all of the rest of the template fine, the image I am trying to display is a background cover photo, with text overlayed as another TV. If set to image, it comes up as just a loading icon, and doesn't show the text overlay. If the TV is set to default, the text overlay TV loads, but doesnt display the image whatsoever.

                The cover image used to work. It just stopped for some reason.
                  • 3749
                  • 24,544 Posts
                  You have two options for an image related to a TV.

                  1. You can set the output to image and just put the path to the image as the TV value. In that case MODX creates the entire img tag.

                  2. You can set the output to text and, again, put the path to the image as the TV value. In that case, you need to create the image tag yourself:

                  <img src="[[*tvName]]" alt="something">


                  If you mix the two options, you get no image.

                  What LK was suggesting is to look at the source of the page (Ctrl-U in most browsers) and see what HTML is actually being produced to display the image. That will almost always give you a clue to why the image isn't showing up.
                    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
                    • 38783
                    • 571 Posts
                    Your markup suggests that the image in question is being handled by jQuery Slider Plugin: https://revolution.themepunch.com/jquery

                    If the missing images are handled by Slider, and the images that are displaying correctly are not handled by Slider could there be a problem with your Slider javascript files not loading correctly?
                      If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

                      email: [email protected] | website: https://andytough.com