We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

{exp:html_strip}

Development and Programming

CleanCanvas's avatar
CleanCanvas
9 posts
16 years ago
CleanCanvas's avatar CleanCanvas

I am an ee newbie so apologies if obvious…

I have the following errors when visiting http://www.cleancanvas.co.uk/index.php/about/

Error: The following tag has a syntax error: {exp:html_strip} Please correct the syntax in your template.

The homepage is fine. http://www.cleancanvas.co.uk/

This occurred after I had upgraded to v1.6.6, and after turning off commenting in the weblog, if any of those are to blame.

Any help would be much appreciated as this is doing my head in,

Thanks,

John

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi John,

That error message means that in your about template that the html strip plugin tag has something wrong with it somewhere along the way. You may not be using that plugin on your index template so that is possibly why the error wouldn’t show there.

Is is possible to show the code for your about template so we can see if there is something untoward with the plugin tag? It might just be a missing closing tag or something like that although I think the error usually means that the opening tag is missing some information or something like that.

Best wishes,

Mark

       
CleanCanvas's avatar
CleanCanvas
9 posts
16 years ago
CleanCanvas's avatar CleanCanvas

Hi Mark,

Thanks for the speedy reply. Seems odd as I haven’t touched that template at all…About template is:

{embed="site_embeds/html_header" my_page_title="About"}
<body>
    <div id="content">
    {embed="site_embeds/logo_title"}
    {embed="site_embeds/main_nav" my_location="about"}
    {embed="site_embeds/section_intros" the_url_title="about"}
            
<div id="maincontent">
    <div id="right_side">
    {embed="site_embeds/about_picture" the_url_title="about_picture"}
    {embed="site_embeds/latest_news"}
</div><!-- close right_side -->
        
<div id="left_side">
    {exp:weblog:entries weblog="about" disable="catgories|member_data|pagination|trackbacks" sort="asc" }
    <h2>{title}</h2>
    {page_body}
    {/exp:weblog:entries}

</div><!-- close left side div -->
        
</div><!-- close main content div -->
        
{embed="site_embeds/footer"}
            
</div><!-- close content div -->
</body>
</html>
       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hmm not seeing the html strip plugin tag in that code above. Perhaps it might be in one of the many embedded templates that you have in that code above. You would have to check each of them to see where the plugin is being used though so you will need to check out :

site_embeds/html_header site_embeds/logo_title site_embeds/main_nav site_embeds/section_intros site_embeds/about_picture site_embeds/latest_news site_embeds/footer

Hopefully in one of those (or it may be more than one of those) you will find the html strip plugin tag. Once you find that template or those templates you will need to check each one carefully to see if there are any errors in them.

Hope that helps.

Best wishes,

Mark

       
CleanCanvas's avatar
CleanCanvas
9 posts
16 years ago
CleanCanvas's avatar CleanCanvas

Hi Mark,

Found the {exp:html_strip} in site_embeds/latest_news. Here is the template:

<h3>Recent posts</h3>
<div class="lcontent">
    {exp:weblog:entries weblog="cleancanvas" dynamic="off" limit="3" disable="pagination|trackbacks|member_data"}
        
            {entry_date format='%d %M %Y'}<br>
            <a href="http://{url_title_path=site/comments}">{title}</a>
            {exp:word_limit total="30"}{exp:html_strip}{body}{/exp:html_strip}{/exp:word_limit} 
        
    {/exp:weblog:entries}
</div>

See anything in here? Thanks ever so much for your time.

John

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

I must admit I don’t see anything immediately untoward although I’ve never really used the HTML Strip plugin much.

If you try this in that embedded template then does it get rid of the error?

<h3>Recent posts</h3>
<div class="lcontent">
    {exp:weblog:entries weblog="cleancanvas" dynamic="off" limit="3" disable="pagination|trackbacks|member_data"}
        
            {entry_date format='%d %M %Y'}<br>
            <a href="http://{url_title_path=site/comments}">{title}</a>
{exp:html_strip}{body}{/exp:html_strip} 
        
    {/exp:weblog:entries}
</div>

I took out the word limit plugin. I’m just wondering if there might be something weird using those two plugins together on the latest version of ExpressionEngine. I don’t think that turning off commenting for the weblog would have anything to do with it so I would think it is something with the plugins somewhere along the line.

or perhaps this?

<h3>Recent posts</h3>
<div class="lcontent">
    {exp:weblog:entries weblog="cleancanvas" dynamic="off" limit="3" disable="pagination|trackbacks|member_data"}
        
            {entry_date format='%d %M %Y'}<br>
            <a href="http://{url_title_path=site/comments}">{title}</a>
{exp:html_strip convert=‘y’}{body}{/exp:html_strip} 
        
    {/exp:weblog:entries}
</div>

That code above has the added convert=”y” parameter on the HTML strip plugin. Not sure if that should make a difference though.

Make sure you backup the code from that template first just in case this doesn’t work though.

One other question would be you definitely have the HTML Strip plugin in your plugins folder don’t you?

Best wishes,

Mark

       
CleanCanvas's avatar
CleanCanvas
9 posts
16 years ago
CleanCanvas's avatar CleanCanvas

Sorry to have completely wasted your time Mark. You were indeed right, the plug-in was not installed. I just copied the plugins folder from the ExpressionEngine v1.6.6 upgrade files and that didn’t have it in.

Apologies, but I suppose I now know what html_strip is, and the fact that it is indeed a plug-in.

Thanks ever so much doozazzle,

John

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi John,

No problem at all. I wish I had mentioned it earlier but as soon as I saw the error message that usually means that there is an error in the usage and not that the plugin is missing. I think there might be another message for that.

Glad it’s all sorted for you now though.

Best wishes,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.