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

    I just noticed that all my image TVs are showing the text "Array" (instead of the image path) in resources that belong to contexts with a slash ( / ) in the context name.

    It works fine for all other context, but if the context name has the slash character, the image TV breaks.

    I have this error in both 2.1.2 and 2.1.5.

    Can someone please confirm?
      • 8830
      • 98 Posts
      I've got the exact same problem in 2.2.0 RC1.

      This is really easy to test. Just create a Context with the name "test.tld/something" and make an image type template variable. It shouldn't work properly under that Context. It just says "Array".

      Can anyone please confirm?
        • 8830
        • 98 Posts
        Not even a confirmation from the devs? Nothing?? Is there anyone here?
          • 3109 ☆ A M B ☆
          • 894 Posts
          Are you using

          <base href="[[++site_url]]">
          


          On your template? What method are you using for the second context did you make a context setting specifying it's url? Did you edit your htaccess with a rewrite rule to allow access to the assets folder for the second context (if needed)?

          There's many things that can be causing this, start with the base tag first and see if that works.

          Good Luck.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX
            • 8830
            • 98 Posts
            The problem is within the MODx Manager/Core. No templates. No Front End.
            The problem is there with a clean install of MODx 2.1 and 2.2.

            See attached image.
              • 3109 ☆ A M B ☆
              • 894 Posts
              You got me there, why does the context have a slash anyway? That's most definitely the culprit.
                Benjamin Marte
                Interactive Media Developer
                Follow Me on Twitter | Visit my site | Learn MODX
                • 8830
                • 98 Posts
                Because I want to use simple Context names that represent the URL of those sites.
                domain.com
                domain.com/sv
                domain.com/de
                .. and so on.

                I guess this is a bug in MODx. Would be great to have this confirmed by the MODx team.