Jump to content

Smarty Compiler: Syntax error in template


Recommended Posts

Hello

 

I have bought a custom template and installed it on my 1.6.0.11 prestashop store .

After enabling the template I get this error 

 

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "public_html/themes/onlinesale/footer.tpl" on line 51 "{getBelvgBlockContent}" unknown tag "getBelvgBlockContent" <-- thrown in public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 51

 

Has anyone any idea why I get the error ?

 

Link to comment
Share on other sites

I don't know what it is . It came with the theme .

 

I already tried with {$getBelvgBlockContent} but doesn't work .

 

It appers multiple times in header.tpl and footer.tpl files 

 

Sometimes is like this

{getBelvgBlockContent id="banner1"}

Link to comment
Share on other sites

  • 2 years later...

I had this problem in the past, with some theme i bought.

First of, you should deactivate an option in "Performance" that says "Disable all overrides".

The function "getBelvgBlockContent" is defined in FrontController.php which is placed in override folder. I found that the theme install placed the file inside /classes/controllers, which is likely a wrong place. iI just moved the file to parent folder and started to work. I am not sure of some details and i will have to trace files and changes to be sure of the reason, but... moving it solves and it is enough.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...