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.

Mysterious channel:entries error appearing in ee build 1.6.8

December 15, 2011 8:52am

Subscribe [4]
  • #1 / Dec 15, 2011 8:52am

    gregwrightjhb

    3 posts

    So checking on my site (ee build 1.6.8) today I got the following error:

    “Error

    The following tag has a syntax error:

    {exp:channel:entries}

    Please correct the syntax in your template.”


    Going through my templates I couldn’t find any occurrence of channel:entries, everything was the old weblog:entries tag pairs.

    Has anyone had this issue before? Could a module/extension be updating secretly in the background ? I’m at a bit of a loss, maybe the site was hacked.

    I can still acces the CP…

     

  • #2 / Dec 15, 2011 1:43pm

    visionpoint

    10 posts

    Usually when I get problems like this I focus on my opening tags and I usually miss the closing tags 😊

    Can you paste the template code here?

  • #3 / Dec 16, 2011 3:50am

    Mark Bowen

    12637 posts

    EDIT - Oops, sorry! Just noticed you said that you can’t find any occurrence of that tag in your template(s). Sorry didn’t notice that right away as quite dosed up at the moment due to terrible cold. Definitely as above if you can post some template code that would help here.

    You have said above that you are using 1.6.8 and yet your syntax error shows you as using the {exp:channel:entries} tag.

    That tag is only for use in ExpressionEngine 2.x and above. You will need to be using the {exp:weblog:entries} tag in your system.

    Best wishes,

    Mark

  • #4 / Dec 16, 2011 7:10pm

    Sean C. Smith

    3818 posts

    Hi Greg,

    Is this happening on all pages or only one page? Could you post up your tempate code and also confirm that you are on EE 1.6.8?

    When checking your template for exp:channel:entries please check any embeds on that page as the embeds may have the code you are looking for.

    Sean

  • #5 / Dec 18, 2011 5:28am

    gregwrightjhb

    3 posts

    Hi everyone thanks for your input.

    The thing is that I havent touched the site in a couple of months & everything has been working perfectly up until a few days ago. Something changed outside of my control…

    The error is occurring on all pages where the weblog:entries tag pair are present.

    Here’s an example of my template code (with hard coded html omitted)

    ///header////
    
    
      <div id="slider" class="clearfix">
    
       {exp:weblog:entries weblog="slideshow"}
       <div class="raster clearfix">
       <div id="slide">
        {slide-image}
        <a href="http://{link}" title="{caption}" class="slideImageLink">_     {exp:imgsizer:size src=_    </a>
        {/slide-image}
       </div><!--slide-->
       </div>
       {/exp:weblog:entries}
       
    
      </div><!--slider-->
    
      <div class="clear"></div>
      
    
      
         {exp:weblog:entries weblog="blog" status="featured"  limit="1" orderby="date"} 
         
         
         {exp:lg_replace:haystack needles="gallery|image_1|image_2|image_3|image_4|image_5|image_6|image_7|image_8|image_9|image_10|image_11|image_12"}
          <h4><a href="http://{title_permalink=blog/entry}">{title}</a></h4>
    <p>     {summary}<br />
        <br />
         {blog-image}<br />
         {exp:lg_replace:replacement needle="image_{row_count}"} <br />
         <div class="floatleft"><br />
          <a href="http://{title_permalink=blog/entry}" title="Continue to article">{exp:imgsizer:size src=</a><br />
         </div>    <br />
         {/exp:lg_replace:replacement}<br />
         {/blog-image}<br />
         {/exp:lg_replace:haystack}<br />
         <a href="http://{title_permalink=blog/entry}" title="Continue to article" class="readmore">...Peruse article</a><br />
         {/exp:weblog:entries}<br />
       </p>
    
    <p>  <br />
          {exp:freeform:form form_name="newsletter" form_id="signup"  required="name|email" notify="[email protected]" template="email_signup" return="{segment_1}"}</p>
    
    <p>      <fieldset class="fieldset"><br />
           <label for="name"><em>»</em>Name</label><br />
           <input type="text" id="name" class="input-text" name="name" size="30" maxlength="35" value="" /><br />
           <br />
           <label for="keywords"><em>»</em>Email</label><br />
           <input type="text" id="email" class="input-text" name="email" size="30" maxlength="35" value="" /></p>
    
    <p>       <input id="go" type="submit" name="submit" value="Submit" class="submit-button"/></p>
    
    <p>      </fieldset><br />
          {/exp:freeform:form}<br />
          <br />
       ////omitted///</p>
    
    <p><br />
      {exp:weblog:entries weblog="mini-portfolio"}<br />
      {portfolio-image}<br />
      <a href="http://{image}" rel="port" class="album-image">{exp:imgsizer:size src=</a><br />
      {/portfolio-image}<br />
      {/exp:weblog:entries}</p>
    
    <p><br />
      ////omitted///<br />
      <br />
      <br />
         {exp:freeform:form template="contact_form"  required="name|email|message" return="site/thankyou" notify="[email protected]"}<br />
         <fieldset class="fieldset"></p>
    
    <p>      <label for="name"><em>»</em>Name</label><br />
          <input type="text" id="name" class="input-text" name="name" size="50" maxlength="35" value="" /></p>
    
    <p>      <label for="keywords"><em>»</em>Email</label><br />
          <input type="text" id="email" class="input-text" name="email" size="50" maxlength="35" value="" /></p>
    
    <p>      <label for="keywords"><em>»</em>Message</label></p>
    
    <p>      <textarea id="message" name="message" rows="20" cols="57" class="input-text"></textarea><br />
         <br />
          {if captcha}</p>
    
    <p>      Please enter the word you see in the image below:</p>
    
    <p>      {captcha}</p>
    
    <p>      <input type="text" name="captcha" value="" size="20" maxlength="20" /></p></p>
    
    <p>      {/if}<br />
          <input id="go" type="submit" name="submit" value="Submit" class="submit-button"/><br />
          <br />
         </fieldset><br />
          {/exp:freeform:form}  <br />
       </p>
    
    
    
    <p>///footer///


    @Sean I’m definitely on build 1.6.8, also went through all my embeds and they are using weblog as opposed to channel. Checked manually in addition to doing a find & replace in the CP.

    My host did do an upgrade to MySQL 5.1 from MySQL 5.0 but I dont think that could have anything to do with it?

    I’m worried that an extension/module updated itself in the background or that a 3rd party somehow got my ftp details. Not sure.

  • #6 / Dec 20, 2011 9:57am

    gregwrightjhb

    3 posts

    Well I found the cause… Pulling a twitter feed with a tweet that mentions {exp:channel:entries} in it doesn’t go down too well.

    Meh. Sheepishly asks mods to close this topic.

  • #7 / Dec 20, 2011 6:16pm

    Sean C. Smith

    3818 posts

    Greg,

    Will close at your request. Glad you found the cause of the problem. Don’t hesitate to post again when you need more assistance.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases