Expression Engine Syntax Error Unexpected T_endif
Contents |
up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta
Syntax Error Unexpected Endif T_endif
Discuss the workings and policies of this site About Us Learn parse error syntax error unexpected endif more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us ExpressionEngine® Answers Questions Tags Users Badges Unanswered Ask Question _ ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top PHP Syntax Error from ExpressionEngine Template up vote 3 down vote favorite Here's some code I'm using to generate Breadcrumbs on my site. Unfortunately the client has quite specific requirements in terms of URLs, so I've had to play around with Crumbly's tag a little using an If statement: {if segment_1 == "search"} {exp:crumbly:breadcrumbs custom_url:pattern="template_group/template/ignore"} {if:elseif segment_2 == "search"} {exp:crumbly:breadcrumbs} {if:else} {exp:crumbly:breadcrumbs} {/if} {if count > 1} {if 1 == 1} »
However I hope you can see it should just be a warning, as the closing tag is present.
Here's the main problem. When I load the page, I get this:
Parse error: syntax error, unexpected T_ELSEIF in /nfs/c09/h02/mnt/135913/domains/mysite.com/html/system/expressionengine/libraries/Functions.php(683) : eval()'d code on line 75
Any ideas?
Fieldtypes Modules Plugins Submit an Add-on Extras Articles Buy Store Credit Hooks AcademEE Awards Developers EE Config Variables For a more https://devot-ee.com/add-ons/support/ce-cache/viewthread/11256 accurate search, use quotation marks. Add-ons (All) Add-ons (All) Add-ons (EE2) Add-ons (EE3) Everything Articles/News Hooks search Extension, Module Developer Supported CE Cache ExpressionEngine 2 Back to this http://expressionengine.com/forums/viewthread/163820/ add-on's main page View Other Add-ons From Causing Effect CE Cache>Thread You must be logged in to post. unexpected T_ENDIF Support (Resolved) Yuri Salimovskiy Posted: syntax error 28 November 2013 05:24 AM Hi there, I just installed CE Cache, wrapped the template in {exp:ce_cache:it} tag ang got this error:Parse error: syntax error, unexpected T_ENDIF in /home/mysite/public_html/system/expressionengine/libraries/Functions.php(679) : eval()‘d code on line 1668 The template contains several snippets, embeds, conditionals etc. There is not error without CE Cache tag. Any ideas how to debug syntax error unexpected that, or maybe an alternative solution for partial caching? Thanks, Yuri Causing Effect - Aaron Waldon Posted: 04 December 2013 05:35 PM # 1 Developer Hi Yuri! That generally means that the parser got tripped up somewhere. It looks like an {if ...} conditional may not have been closed or a tag may not have been parsed as expected. Any ideas how to debug that, or maybe an alternative solution for partial caching? There are a few ways to go about debugging this. The easiest would probably be to remove chunks of the template until you can figure out the offending code. You could set drivers="dummy" to ensure that the content is parsed, but not cached. Does that make sense? Yuri Salimovskiy Posted: 05 December 2013 04:18 AM # 2 Hi Aaron, thank you for the reply. I create template with only this code, nothing else: {exp:ce_cache:itdriver=