Jump to content

[Solved] Smarty Error - Product page wont load.


Recommended Posts

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 1095

All 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...