Jump to content

Problem with main page after deleting Smarty Cache


Recommended Posts

I have just deleted smarty cache through back office panel and after that my main page doesn't work. The subpages work fine, there's a problem with main page only.

Here is a code from debugger:

 

 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/homepages/0/d510727474/htdocs/modules/smartproductslider/smartproductslider.tpl" on line 13 "<h2><a href="{$product.link}">{$product.name|truncate:40'...'|escape:'htmlall':'UTF-8'}</a></h2>" - Unexpected "'...'", expected one of: "}" , " " , ATTR' in /homepages/0/d510727474/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /homepages/0/d510727474/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /homepages/0/d510727474/htdocs/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(60, ''...'') #2 /homepages/0/d510727474/htdocs/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(60, ''...'') #3 / in/homepages/0/d510727474/htdocs/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

 

Does anyone have an idea how to fix this problem?

Thanks

Link to comment
Share on other sites

You're right, I turned it off and it works. 

Here is the content of file:

 

{if (Configuration::get('sellya_show_pro_slider')==1)}

<section id="product-slider">
<div id="ei-slider" class="ei-slider">
   <ul class="ei-slider-large">
      
{foreach from=$products_slider item=product name=myLoop}
<li>
      <div class="image">
  <a href="{$product.link}" class="product_image">
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')}" alt="{$product.name}" /></a>
      </div>
  <div class="ei-title">
<h2><a href="{$product.link}">{$product.name|truncate:40'...'|escape:'htmlall':'UTF-8'}</a></h2>
                               
<h4>
<a href="{$product.link}">
{if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{/if}  
     </a><br /><br />
     
     <a style="font-size:14px" class="button  ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='smartproductslider'}">{l s='Add to cart' mod='smartproductslider'}</a>
</h4>
   </div>
</li>
{/foreach}
   </ul>
   <ul class="ei-slider-thumbs">
<li class="ei-slider-element">Current</li>
{foreach from=$products_slider item=product name=myLoop}
<li><a href="{$product.link}">{$product.name|truncate:15:'...'|escape:'htmlall':'UTF-8'}</a></li>
{/foreach}
    
   </ul>
</div>
</section>
 
<script type="text/javascript" src="{$js_dir}themes/jquery.eislideshow.js"></script>
<script type="text/javascript">
   $(function() {
$('#ei-slider').eislideshow({
animation                       : 'center',
autoplay                        : true,
slideshow_interval      : 4500,
titlesFactor            : 0
});
   });
</script>
    {/if}
Link to comment
Share on other sites

×
×
  • Create New...