cloudomain Posted December 7, 2013 Share Posted December 7, 2013 Hi, I am running a store on Prestashop 1.5.6.0. It us incredibly slow but every time i attempt to turn on "Recompile templates if the files have been updated" under the Template Cache i get a syntax error when trying to open a product. The error is: Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/esheesh/public_html/presta/themes/theme745/modules/productscategory/productscategory.tpl" on line 25 "{if $category.name == 'E-Volve Starter Kit' return}" too many shorthand attributes' in /home/esheesh/public_html/presta/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/esheesh/public_html/presta/tools/smarty/sysplugins/smarty_internal_compilebase.php(71): Smarty_Internal_TemplateCompilerBase->trigger_template_error('too many shorth...', 25) #1 /home/esheesh/public_html/presta/tools/smarty/sysplugins/smarty_internal_compile_if.php(31): Smarty_Internal_CompileBase->getAttributes(Object(Smarty_Internal_SmartyTemplateCompiler), Array) #2 /home/esheesh/public_html/presta/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(485): Smarty_Internal_Compile_If->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /home/eshe in /home/esheesh/public_html/presta/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667 Store URL: e-sheesh.com/presta Please help as without it the store in unbearably slow. Thanks in advance for any help. Link to comment Share on other sites More sharing options...
El Patron Posted December 7, 2013 Share Posted December 7, 2013 Hi it would appear you customized productscategory.tpl (line 255) it does not like {if $category.name == 'E-Volve Starter Kit' return} I've never seen return in a smarty declaration but I am no expert. 1 Link to comment Share on other sites More sharing options...
cloudomain Posted December 7, 2013 Author Share Posted December 7, 2013 Hi El Patron, Thanks for the reply. That's the particular product I was trying to view but this happens with any product and the error changes to that product. Any idea how to resolve? Thanks Link to comment Share on other sites More sharing options...
El Patron Posted December 7, 2013 Share Posted December 7, 2013 Hi El Patron, Thanks for the reply. That's the particular product I was trying to view but this happens with any product and the error changes to that product. Any idea how to resolve? Thanks Hi, thanks for the update... can you attach the file to this post? theme745/modules/productscategory/productscategory.tpl Link to comment Share on other sites More sharing options...
NemoPS Posted December 7, 2013 Share Posted December 7, 2013 Can you at least copy here the mentioned line and the wrapping code? 1 Link to comment Share on other sites More sharing options...
cloudomain Posted December 7, 2013 Author Share Posted December 7, 2013 Hi, I can't upload a .tpl file so the link is: http://www.filedropper.com/productscategory to download. Thanks Link to comment Share on other sites More sharing options...
El Patron Posted December 7, 2013 Share Posted December 7, 2013 again, not the best at smarty and hopefully nemo1 will review but at line 25 there is this line of code {if $category.name == 'E-Volve Starter Kit' return} did you add this line? Link to comment Share on other sites More sharing options...
cloudomain Posted December 7, 2013 Author Share Posted December 7, 2013 Hi El Patron, Not too sure, theres been so many changes to it now :/ Link to comment Share on other sites More sharing options...
El Patron Posted December 7, 2013 Share Posted December 7, 2013 Hi El Patron, Not too sure, theres been so many changes to it now :/ remove the change and try to turn on compile.. Link to comment Share on other sites More sharing options...
cloudomain Posted December 7, 2013 Author Share Posted December 7, 2013 what should it be? just remove the return? Link to comment Share on other sites More sharing options...
El Patron Posted December 7, 2013 Share Posted December 7, 2013 I would remove the entire line...I did not even see a ending /if then see if it works.. are you the one making changes or someone else? Link to comment Share on other sites More sharing options...
cloudomain Posted December 7, 2013 Author Share Posted December 7, 2013 Ok ill give it a go now. I am. Link to comment Share on other sites More sharing options...
cloudomain Posted December 7, 2013 Author Share Posted December 7, 2013 Done, that seems to have worked fine. Cannot see anything else that it has effected so hopefully everything is fine now. Thank You. Link to comment Share on other sites More sharing options...
Recommended Posts