1
0
-1

Hi,

I am updating a template, but when I try to Preview I receive the above error.

I have checked all images on the template and they all have width and height defined in the Properties tab.


How can I interrogate this error further?


Thanks

Mark

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Mark,

      I had a similar error when I first started working with templates. The way I fixed it was to go into the logo in item properties in the branding and manually add a width and height. I looked in the json for the template and these were null for some reason, I think it's a bug.

      Matt

        CommentAdd your comment...
      1.  
        1
        0
        -1

        HI Matt,

        thanks for the information. I think I saw an old response of yours, so I tried that. I checked all the images and the logo in the form, and all have width and height set, but I still get an error.

        Part of the problem is that the error does not give context or target. It does not say which item is causing the error, so I can't target an item to resolve the issue.

        Thanks anyway for the suggestion, I'll keep working through the items.


        Regards

        Mark

        1. Matthew White

          If you export the json of the template it might be easier to find the missing values there. You can then search on width and height and see if any elements have undefined or null for these.

        2. Mark Murray

          Thanks Matt, that's a good idea.

          I'm a bit focused at the moment, so it's great to get a prompt to look outside the box.

          I'll give that a try.

          Thanks

        3. Mark Murray

          Success! I found the offending item - it was in the brand, the logo was missing dimensions.

          Thanks for the tip.

        4. Matthew White

          Hi Mark,

          That's actually what I was suggesting would be the problem, sorry If I didn't make that clear.

          Matt

        CommentAdd your comment...