cybershopdirect Posted March 24, 2014 Share Posted March 24, 2014 I saved my prestashop window after adding a product and it won't come up any more. Has anyone ever got this message? Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/cybersho/public_html/modules/homeslider/views/templates/hook/header.tpl" on line 2 "{addJsDef homeslider_loop=$homeslider.loop}" unknown tag "addJsDef"' in /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(453): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "ad...', 2) #1 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag('addJsDef', Array) #2 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36() #3 /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36) #4 /hom in /home/cybersho/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667 The website is www.cybershopdirect.com I can't find any info on this anywhere. Please assist. Thanks. [email protected] Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 what prestashop version you use? Link to comment Share on other sites More sharing options...
azziat Posted March 24, 2014 Share Posted March 24, 2014 version 1.5.6.2 Link to comment Share on other sites More sharing options...
inweb Posted March 24, 2014 Share Posted March 24, 2014 You are using homeslider module from PS 1.6 - use the one from PS 1.5.6.2 installation package and that error disappear. Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 link to module from fresh 1.5.6.2 installation: https://www.dropbox.com/sh/ffyctqcxnzvu0i0/xnm7pESDKy Link to comment Share on other sites More sharing options...
cybershopdirect Posted March 25, 2014 Author Share Posted March 25, 2014 From Cybershopdirect.com: First of Thanks guys for all of your help. I overwrote the home slider folder as suggested. Now I get a different error message. Has anyone had this one? Fatal error: Call to undefined method Media::addJsDef() in /home/cybersho/public_html/modules/blocksearch/blocksearch.php on line 77 One other question will I loose my setting for the home slider by doing this? Thanks again. Link to comment Share on other sites More sharing options...
cybershopdirect Posted March 25, 2014 Author Share Posted March 25, 2014 How do I find out what version I am using? Is there a Help about in the menu? Link to comment Share on other sites More sharing options...
cybershopdirect Posted March 25, 2014 Author Share Posted March 25, 2014 I found it. Here are the stats. Max execution time: 30 Database informationMySQL version: 5.5.36-cll MySQL engine: InnoDB Tables prefix: obu_ Store informationPrestaShop version: 1.5.6.2 Shop URL: http://cybershopdirect.com/ Current theme in use: default Mail configurationMail method: You are using the PHP mail function. Your informationYour web browser: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko Check your configuration Required parameters: Please fix the following error(s) Notice: Undefined index: files in /home/cybersho/public_html/cache/smarty/compile/39/74/5f/39745f1a82fc55a31ec3633ee48214d4b7018bbe.file.view.tpl.php on line 260 Optional parameters: OK Link to comment Share on other sites More sharing options...
cybershopdirect Posted March 25, 2014 Author Share Posted March 25, 2014 Now I get this on the front end and the previous error on the back end. Fatal error: Call to undefined method Media::addJsDef() in /home/cybersho/public_html/modules/blocksearch/blocksearch.php on line 77 Link to comment Share on other sites More sharing options...
cybershopdirect Posted March 25, 2014 Author Share Posted March 25, 2014 (edited) This is the actual line 77 in the previous message. can someone tell me what it could be? Your assistance is greatly appreciated. Media::addJsDef(array('search_url' => $this->context->link->getPageLink('search', Tools::usingSecureMode()))); Edited March 25, 2014 by cybershopdirect (see edit history) Link to comment Share on other sites More sharing options...
inweb Posted March 25, 2014 Share Posted March 25, 2014 The problem is still the same. You are using blocksearch module from PS 1.6 but you are actually running PS 1.5. Link to comment Share on other sites More sharing options...
El Patron Posted March 25, 2014 Share Posted March 25, 2014 This is the actual line 77 in the previous message. can someone tell me what it could be? Your assistance is greatly appreciated. Media::addJsDef(array('search_url' => $this->context->link->getPageLink('search', Tools::usingSecureMode()))); this link will help, you need to install the 1.5 compatible version of this module http://mypresta.eu/en/art/issues/updated-prestashop-modules-not-work.html Link to comment Share on other sites More sharing options...
ahmad87 Posted February 19, 2015 Share Posted February 19, 2015 please, help me too. I got this fatal erro: Strict Standards: Non-static method SwitcherModel::getActiveRecords() should not be called statically, assuming $this from incompatible context in H:\New folder (2)\htdocs\jualbuku\modules\backgroundswitcher\backgroundswitcher.php on line 408Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "H:\New folder (2)\htdocs\jualbuku\themes\default\product.tpl" on line 559 "<a class="button" href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='view}">{l s='view'}</a>" - Unexpected "view", expected one of: "}" , " " , ATTR' in H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php:667 Stack trace: #0 H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(19, 'view') #2 H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(19, 'view') in H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 667 Link to comment Share on other sites More sharing options...
Knuden Posted March 3, 2015 Share Posted March 3, 2015 (edited) Someone who can help me??? I'm a newbie in Prestashop Using PS 1.6 I got a note when I checked for errors. Note: Undefired offset: 1 in / home /...../ public_html / myhomepage / classes / manufactorer.php on line 213 Edited March 3, 2015 by Knuden (see edit history) 1 Link to comment Share on other sites More sharing options...
El Patron Posted March 3, 2015 Share Posted March 3, 2015 please, help me too. I got this fatal erro: Strict Standards: Non-static method SwitcherModel::getActiveRecords() should not be called statically, assuming $this from incompatible context in H:\New folder (2)\htdocs\jualbuku\modules\backgroundswitcher\backgroundswitcher.php on line 408 Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "H:\New folder (2)\htdocs\jualbuku\themes\default\product.tpl" on line 559 "<a class="button" href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='view}">{l s='view'}</a>" - Unexpected "view", expected one of: "}" , " " , ATTR' in H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php:667 Stack trace: #0 H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(19, 'view') #2 H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(19, 'view') in H:\New folder (2)\htdocs\jualbuku\tools\smarty\sysplugins\smarty_internal_templatecompilerbase.php on line 667 Someone who can help me??? I'm a newbie in Prestashop Using PS 1.6 I got a note when I checked for errors. Note: Undefired offset: 1 in / home /...../ public_html / myhomepage / classes / manufactorer.php on line 213 tip: each of you should open new topic for best community review. Link to comment Share on other sites More sharing options...
ahmad87 Posted March 4, 2015 Share Posted March 4, 2015 (edited) Just replace the error file with the new one from prestashop Instalation Pack. 1. extract your prestashop Instalation Pack. 2. find the same file (if file error manucfarur.php copy the same file) 3. then paste or replace your old file/error file into PrestaShop folder on your computer/hosting Edited March 4, 2015 by ahmad87 (see edit history) Link to comment Share on other sites More sharing options...
Knuden Posted March 6, 2015 Share Posted March 6, 2015 I tried to replace the old/error file with a new, but with the same resault, the same error message Link to comment Share on other sites More sharing options...
Recommended Posts