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

    I am troubleshooting a strange behaviour. Can t seem to find a reason behind this.
    When I try to put a picture in a documents content area, using tinymc or plain text html, the image tag in the source remains empty and there is no inmage displayed? This is what I read in the source file:
    <img src="" alt="" />


    If I use a TV with an input type of text or ritch text or image and put the same link there, as a result that link will be displayed in text.
    If I use a TV input type imgage widget type image, the image will be displayed. This also if I use another template. (Modxhost).
    I don t see the logic, anyone?

    Edit, I did an upgrade hoping that might help, to evo 1.05.
      • 21257 MODX Staff
      • 730 Posts
      I’m not sure I follow 100%.. can we try to narrow it down to the simplest steps to make this problem occur?
      Is this correct:
      1. you put a picture into the plain text html content area (I’m assuming this is the main content area with the rich text flag turned off? And can I also assume then that you’re typing the image tag by hand?)
      2. on the front end of your site, you see an empty image tag?
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 10076
        • 1,024 Posts
        Quote from: netProphET at Mar 02, 2011, 08:13 AM

        I’m not sure I follow 100%.. can we try to narrow it down to the simplest steps to make this problem occur?
        Is this correct:
        1. you put a picture into the plain text html content area (I’m assuming this is the main content area with the rich text flag turned off? And can I also assume then that you’re typing the image tag by hand?)
        2. on the front end of your site, you see an empty image tag?


        Like you say if i put a picture in plain text in the main content area, but also using rich text, plus the same with TV s. I get an empty image tag in the source, plus no image rendered.
        Only when I use TV type "image" widget "Image" then there is an image displayed on the webpage.
          • 26016
          • 561 Posts
          That is truly odd. At first I was going to point out obvious things to check, like File Manager and File Base Paths. If your image TV’s work, then this is out.

          But NetProphet’s question may be key, about what you see for the HTML on the front end. If you’re truly seeing <img src="" /> aka, an empty image tag, then I don’t see how an image could possibly display with the other MODx template.

          If, on the other hand, you have a file in the image tag, it could be stuff like needing a Base URL, or resetting path settings for Tiny, etc. That sounds more like it to me, given that another template does show an image.

          Essentially you’ll need to provide a lot more info to get a good answer. For instance, we don’t know if this is a new install, which could have all kinds of things wrong, or if it has been there awhile and used to work. Or what kind of server, or sometimes even what browser you’re using can bork things.
            MODx and Wordpress development
            Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
            • 10076
            • 1,024 Posts
            Uhpps found it, justed went over elements again, and saw the php_thumb plugin, disabled it and all well.
            Reason, dont know, sorry for waisting disk space,

            Frank.
              • 21257 MODX Staff
              • 730 Posts
              Good to know Frank, next time someone reports the same problem smiley
                Mike Schell
                Lead Developer, MODX Cloud
                Email: [email protected]
                GitHub: https://github.com/netProphET/
                Twitter: @mkschell