Jump to content

I get this message Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Er


Recommended Posts

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]

 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I found it. Here are the stats.

 

Max execution time: 30

 

Database information

MySQL version: 5.5.36-cll

MySQL engine: InnoDB

Tables prefix: obu_

 

 

Store information

PrestaShop version: 1.5.6.2

Shop URL: http://cybershopdirect.com/

Current theme in use: default

 

 

Mail configuration

Mail method: You are using the PHP mail function.

 

 

Your information

Your web browser: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko

 

AdminInformation.gif 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

  • 10 months later...

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

Share this post


Link to post
Share on other sites

  • 2 weeks later...

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 by Knuden (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by ahmad87 (see edit history)

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More