PDA

View Full Version : problem adding 'addthis' to footer


Chadi
08-31-2013, 04:31 PM
I'm trying to add the Addthis SmartLayer code to the footer template but everytime I try to add it I get a failed connection error and my web logs show this

[Sat Aug 31 12:30:34 2013] [notice] child pid 18963 exit signal Segmentation fault (11)

The code is simply this

<!-- AddThis Smart Layers BEGIN -->
<!-- Go to http://www.addthis.com/get/smart-layers to customize -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=talkjesus"></script>
<script type="text/javascript">
addthis.layers({
'theme' : 'transparent',
'share' : {
'position' : 'left',
'numPreferredServices' : 5
},
'follow' : {
'services' : [
{'service': 'facebook', 'id': 'talkjesus'},
{'service': 'twitter', 'id': 'talkjesus'}
]
},
'whatsnext' : {},
'recommended' : {}
});
</script>
<!-- AddThis Smart Layers END -->

The weird thing is I'm already using the share addthis script without a problem, so not sure why the above is messing up. Nothing in my server logs indicate it's anything related/caused by the server config itself. Once I remove the code and save footer template as it was, works fine.

www.talkjesus.com is my site I'm trying to add this to.

NOTE: I also tried by removing the line below since it's already in the footer for the share script, same issue though

<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=talkjesus"></script>

Lynne
09-01-2013, 02:31 AM
Did you try putting <vb:literal> tags around it to see if that works?

Otherwise, try removing parts of it at a time to find what it doesn't like. (I feel like this has been posted about before, so you may want to try a search.)

Chadi
09-01-2013, 03:22 AM
Thank you, that did it