ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Displaying template errors on output?

June 08, 2011 11:06am

Subscribe [4]
  • #1 / Jun 08, 2011 11:06am

    Gavin Anderegg

    15 posts

    I may just be missing something, but it doesn’t seem like I can get error reporting on improper template usage.

    I started wondering about this because I had the following in an EE2 project, and everything seemed to be working as expected:

    {exp:channel:entries channel="contact" limit="1" dynamic="off" url_title="contact" disable="categories|member_data|pagination"}
        {simple-content}
    {/exp:channel:entries}

    Note the dynamic=“off”. I then modified the exp:channel:entries tag to contain blarf=“floob”, expecting to see an error somewhere, but none appeared. I searched around and turned on “Display Template Debugging?” under “Output and Debugging Preferences”, but still no dice.

    My question: is there some way to make EE2 throw errors if I’m building my templates improperly?

  • #2 / Jun 09, 2011 2:32am

    John Henry Donovan

    12339 posts

    Hi Gavin,

    A misuse of a parameter like that will usually not throw an error on the front-end.
    In your template editing area it checks on errors such as a misplacement or unclosed tags when you update it. These errors show up directly under your template before you save it

    Your best bet would be to check each parameter is correct if you are starting out.

    Does that help?

  • #3 / Jun 09, 2011 1:28pm

    Gavin Anderegg

    15 posts

    Your best bet would be to check each parameter is correct if you are starting out.

    Does that help?

    Hi John,

    Thanks, that does help! Sorry, I hadn’t been looking at the template files though the back-end—all my templates are on the filesystem so I can easily deploy to the server with Git. I’ll be sure to sync and check the templates in the backend when I’ve got future head-scratchers.

    Thanks!

  • #4 / Jun 09, 2011 3:33pm

    Sue Crocker

    26054 posts

    Sounds good. Gavin - If anything else comes up, please do let us know in a new thread..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases