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 ?

 

Share this post


Link to post
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"}

Share this post


Link to post
Share on other sites

Then it's a custom function. It needs to be registered within smarty before usage, have a look at the template's documentation and see if it mentions anything about that

Share this post


Link to post
Share on other sites

I have did a clean install again and it seems that is working now without doing any change .

Don't know what was the cause of that error .

 

Than you anyway for your help .

 

Regards

Share this post


Link to post
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.

 

Share this post


Link to post
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...

Important Information

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