dav6id Posted March 18, 2014 Share Posted March 18, 2014 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 More sharing options...
dioniz Posted March 18, 2014 Share Posted March 18, 2014 (edited) Looks like theres some problem with your smartproductslider.tpl file on line 13 Can you post the content of this file here Or try to turn off slider first to see if it works Edited March 18, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
dav6id Posted March 18, 2014 Author Share Posted March 18, 2014 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 More sharing options...
dioniz Posted March 18, 2014 Share Posted March 18, 2014 Looks ok to me. Try to uninstall and reinstall the module. Link to comment Share on other sites More sharing options...
dav6id Posted March 18, 2014 Author Share Posted March 18, 2014 I think I solved it. There was a colon missing at line 13, after number 40 (like at line 32, after 15). Thank you for help! Cheers Link to comment Share on other sites More sharing options...
dioniz Posted March 18, 2014 Share Posted March 18, 2014 You are welcome Glad you solved it. Happy selling Link to comment Share on other sites More sharing options...
Recommended Posts