vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   problem adding 'addthis' to footer (https://vborg.vbsupport.ru/showthread.php?t=301740)

Chadi 08-31-2013 04:31 PM

problem adding 'addthis' to footer
 
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

Quote:

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

Quote:

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

Quote:

<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


All times are GMT. The time now is 09:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00945 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete