Error with Widget and Smarty templates

  • 21 October 2011
  • 2 replies
  • 25 views

I don't know if this is a smarty incompatibility or something, but when I paste the widget code right next another script between the head tags, I get this fatal error:

 

Fatal error: Smarty error: [in header.tpl line 27]: syntax error: unrecognized tag: "queryString": "", "buttonText": "Support", "buttonColor": "#ffffff", "buttonBg": "#7cb537", "alignment": "4", "offset": "235px", "url": "http://xxxxx.freshdesk.com", "assetUrl": "http://assets.freshdesk.com/widget" (Smarty_Compiler.class.php, line 436) in /home/xxxxx/public_html/admin/libs/Smarty.class.php on line 1088


This topic has been closed for comments

2 replies

Hi Mario

Did you try this with the Body Tag ? My developer mentioned that this Widget must be placed in the Body tag

 

regards

vijay

Oh okay, then you should update the help text in the widget. I know it says "before </body> tag" but <head> is before body 🙂  I suggest something like "inside the <body> tag, just before </body>"