Scotty501 Posted January 13, 2011 Share Posted January 13, 2011 Fatal error: Smarty error: [in /home/perfectp/public_html/themes/mytheme/product.tpl line 452]: syntax error: mismatched tag {/if}. (Smarty_Compiler.class.php, line 2303) in /home/perfectp/public_html/tools/smarty/Smarty.class.php on line 1095All I did was rename product.tpl to productold.tpl- tried something with a new product.tpl - did not work, deleted it, and renamed the productold.tpl back to product.tpl and now I get this error??? Link to comment Share on other sites More sharing options...
Scotty501 Posted January 13, 2011 Author Share Posted January 13, 2011 Sorry for bumping - but the store is out of action until I resolve this. Link to comment Share on other sites More sharing options...
rocky Posted January 13, 2011 Share Posted January 13, 2011 It seems there's a missing {/if} tag or too many {/if} tags in product.tpl. You need to carefully check your code to make sure the if statements match up. Link to comment Share on other sites More sharing options...
Scotty501 Posted January 13, 2011 Author Share Posted January 13, 2011 OK - sorry but I am not a coder - I look at the line and I can see {/if}. There is the same two lines above - so two closing tags no opening tags maybe the problem - I am guessing at this! {if $packItems|@count > 0} {l s='Pack content'} {include file=$tpl_dir./product-list.tpl products=$packItems} {/if} {/if} What I dont understand this was the original file - so it was working all I did was rename it - and then rename it back.I tried removing the {/if} but same result - blank product page. Link to comment Share on other sites More sharing options...
Scotty501 Posted January 13, 2011 Author Share Posted January 13, 2011 RockyI cleared the smarty folder and it have it half right - sorry I was quick off the mark saying it did not work.But I am now getting text another tab I dont want. - click hereI dont want any of that there - why would renaming a file and back again cause this? Link to comment Share on other sites More sharing options...
Scotty501 Posted January 13, 2011 Author Share Posted January 13, 2011 Ok this is wierd!I removed the additional closing {/if} tag - and the rem the offending line which was being inserted by prefixing with // and it now works - god know how or why - but it works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now