Jump to content

Error adding twitter widget


Recommended Posts

Hi there!


I'm having a problem when I try to add the official twitter widget on my webpage.


This error I have:


Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/public_html/patadepato/themes/pata-pato/footer.tpl" on line 47 "<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);[spam-filter](document,"script","twitter-wjs");</script>" - Unexpected ",", expected one of: "}" , " "' in /home/boropie/public_html/patadepato/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /home/boropie/public_html/patadepato/tools/smarty/sysplugins/smarty_internal_templateparser.php(3154): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /public_html/patadepato/tools/smarty/sysplugins/smarty_internal_templateparser.php(3219): Smarty_Internal_Templateparser->yy_syntax_error(36, ',') #2 /publi in /public_html/patadepato/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 627


Webpage: http://www.patadepato.com.ar/



My knowledge of php it's maybe too short, so be considerable be considered with this poor guy.



Link to comment
Share on other sites

can you show your code? i mean code of the twitter widget that you're trying to insert

i think that the problem is strictly related to the code.


try to add code with {literal} {/literal} tags


i mean put the code between these tags



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