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.

Site not loading -The following tag has a syntax error:

March 06, 2011 7:58pm

Subscribe [4]
  • #1 / Mar 06, 2011 7:58pm

    David Roberts

    250 posts

    I am getting the following error which has stopped the site working. The only thing that I have done is load some add-ons Matrix, Playa, Wygwam and Calendar

    v2.1.3
    Build:  20101220

    Error

    The following tag has a syntax error:

    {exp:channel:entries}

    Please correct the syntax in your template.

  • #2 / Mar 06, 2011 9:01pm

    Cheif

    626 posts

    Well according to that your template isn’t formatted correctly, that is to say format or omitted closing tags or somesuch. Any chance you can post a cut down version of your template (I imagine it’s the sites default)

  • #3 / Mar 06, 2011 9:08pm

    David Roberts

    250 posts

    The site has been up and running for a few years so I don’t know which template it could be. It is I the process of the being re-developed but that section is working and the rest of the site (including the home page is not)

  • #4 / Mar 06, 2011 10:04pm

    Cheif

    626 posts

    Given the only thing that has changed is adding the xtras, try switching them off one by one and see which one is giving you curry. Alternately try turning on custom errors: http://ellislab.com/expressionengine/user-guide/troubleshooting/general/blank_pages.html

    To be clear,  you havent also upgraded EE at the same time of adding the xtras ?

  • #5 / Mar 07, 2011 8:44am

    David Roberts

    250 posts

    I have found what is causing the problem but I don’t see what the problem is and how it has happened.
    It is on 4 templates all have the same basic set up with a news and events section.

    <h3>News</h3>
    <p>{exp:channel:entries channel="mainnews"  limit="3"}</p><h5>{title}</h5>
    <p>{summary} <a href="http://{title_permalink="> Continue reading »</a><br />
    <div class="date">Posted on {entry_date format="%M %d, %Y"}</div><br />
    {/exp:channel:entries}

    <div id= "col4">
    <h3>News</h3>
    <p>{exp:channel:entries channel="parents_news" orderby="date" limit="2"}</p><h5>{title}</h5>
    <p>{newstitle}<a href="http://{title_permalink="> Continue reading »</a><br />
    <div class="date">Posted on {entry_date format="%M %d, %Y"}</div><br />
    {/exp:channel:entries}

    <h3>Events</h3>
    <p>{exp:channel:entries channel="parents_events" orderby="date" limit="1"}</p><h5>{title}</h5>
    <p>{parents_summary_events} <a href="http://{title_permalink="></a><br />
    <div class="date">Posted on {entry_date format="%M %d, %Y"}</div><br />
    {/exp:channel:entries}</p><h3>Most recent entries</h3>
    <p>{exp:channel:entries channel="parents_news|parents_events" orderby="date" sort="desc" limit="8" disable="pagination|custom_fields|categories|member_data|trackbacks"}<br />
    <ul class ="mostrecententries"><br />
    <li class ="recententries"><a href="http://{comment_auto_path}">{title}</a></li><br />
    </ul><br />
    {/exp:channel:entries}

  • #6 / Mar 07, 2011 10:21am

    Sue Crocker

    26054 posts

    Hi, David. What I’d do is count the number of open exp:channel:entries and the close exp:channel:entries on the template and make sure they are the same.

  • #7 / Mar 07, 2011 9:05pm

    David Roberts

    250 posts

    This is not a new template or exp:channel:entries. This has been in use for a number of years. It only occurred (I think) when I added some add addons - Matrix, Playa, Wygwam and Calendar

  • #8 / Mar 07, 2011 9:11pm

    Cheif

    626 posts

    It could be this forum settings ehre but there are a couple of bits that aren’t properly ended

    {parents_summary_events} <a href="http://{title_permalink="></a> // Note missing "}" after permalink=
    {newstitle}<a href="http://{title_permalink="> Continue reading »</a> // Same
    {summary} <a href="http://{title_permalink="> Continue reading »</a> /?Same
  • #9 / Mar 07, 2011 9:23pm

    David Roberts

    250 posts

    They are there. They don’t show when you submit the post, just tried again. They have been working fine for a while as I said and nothing has changed.

  • #10 / Mar 07, 2011 9:33pm

    Cheif

    626 posts

    They are there. They don’t show when you submit the post, just tried again. They have been working fine for a while as I said and nothing has changed.

    Well actually things HAVE changed (add-ons).

    ERROR trapping 101: Regardless of how wonderful things have been working, the simple fact is that it is no longer the case. Accept it and begin deeper inspection of the issue.

    If it was me, I’d begin pulling out blocks of code, one at a time, refresh, see if pain persists. With 3 blocks of code (supplied) any one or all could be causing it. So wee need to see if it is one or all.

    If it’s all then we’ll look at testing it via embeds if it’s only one what is it about the code that is causing it… etc etc.

  • #11 / Mar 08, 2011 5:44am

    David Roberts

    250 posts

    When you buy third party software from well know brands and install it on your site without even using it I guess I don’t expect it to stop other parts of the site working. Puts you off paying out for it in the first place.

    As I have already said before

    I have found what is causing the problem but I don’t see what the problem is and how it has happened.
    It is on 4 templates all have the same basic set up with a news and events section.

    If you take the code off the page then it works. It only uses EE code without any third part add ons.

  • #12 / Mar 08, 2011 9:51am

    Sue Crocker

    26054 posts

    Hi, David. Without pointing fingers at third party devs, the only real solution for you is to do as suggested earlier, pare down the template the most basic of templates, just enough to get the functionality you need, then add in complexity until you figure out what broke. I know that can be a time consuming process, but necessary.

  • #13 / Mar 08, 2011 7:12pm

    Cheif

    626 posts

    When you buy third party software from well know brands and install it on your site without even using it I guess I don’t expect it to stop other parts of the site working. Puts you off paying out for it in the first place.

    I expect that’s why all offer 30 days money back 😉

    Hit us back when you’ve paired it down, I’d be interested to see where the issue is originating from

  • #14 / Mar 09, 2011 9:53am

    Sue Crocker

    26054 posts

    David, please do pare down your code and let us know what happens.

  • #15 / Mar 09, 2011 12:48pm

    David Roberts

    250 posts

    Well it seems to be

    {exp:channel:entries channel=

    on all of them?

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

ExpressionEngine News!

#eecms, #events, #releases