Hi,
I have a weird problem, yesterday everything worked fine with addtoany, today I added taxonomy and a tagcloud to my drupal site. Suddenly my addtoany didn't hover anymore. When loading the pages firebug gives a error :
da2a is not defined...
I tried few patches, none of them worked ( http://drupal.org/node/884404, http://drupal.org/node/899418, http://drupal.org/node/843068 )
The weird thing is, when i'm logged in as admin, the dropdown works. You can see the error on the page : ( http://120787.testvds.com/itjobs4you/ )
I've noticed a difference between the normal pages and the admin pages:
Normal pages ( dropdown doesn't work ):
<div id="block-addtoany-0" class="arbitrary-block clear-block block block-addtoany">
<div class="content">
<a class="da2a_button" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2F120787.testvds.com%2Fitjobs4you%2Fnl%2Fhome&linkname=Home" id="da2a_2"><img src="/itjobs4you/modules/addtoany/images/share_save_171_16.png" width="171" height="16" alt="Share this"/></a>
</div>
</div>
Admin pages ( dropdown works ) :
<div id="block-addtoany-0" class="arbitrary-block clear-block block block-addtoany">
<div class="content">
<a class="da2a_button" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2F120787.testvds.com%2Fitjobs4you%2Fnl&linkname=itjobs4you.be" id="da2a_1"><img src="/itjobs4you/modules/addtoany/images/share_save_171_16.png" width="171" height="16" alt="Share this"/></a>
<script type="text/javascript">
var a2a_config = a2a_config || {}, da2a = {ready: false, html_ready: false, script_ready: false, script_onready: function() { da2a.script_ready = true; if(da2a.html_ready)da2a.init(); }}; a2a_config.tracking_callback = ['ready', da2a.script_onready];
(function(){var a = document.createElement('script');a.type = 'text/javascript';a.async = true;a.src = 'http://static.addtoany.com/menu/page.js';var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a, s);})();
</script>
</div>
</div>
Does anyone know why this is happening? Why the difference between normal pages and admin pages exist?
Thanks
Comments
Comment #1
niels.sterckx@gmail.com CreditAttribution: niels.sterckx@gmail.com commentedComment #2
niels.sterckx@gmail.com CreditAttribution: niels.sterckx@gmail.com commentedBTW : Dropdown also works when you go to the taxonomy links, totally weird :-(
Comment #3
BroadlineCable CreditAttribution: BroadlineCable commentedI'm also having the same error. I fixed the da2a error but the drop down still doesn't work.
Comment #4
niels.sterckx@gmail.com CreditAttribution: niels.sterckx@gmail.com commentedSolution found:
I created a block with the button code that you can find on the AddToAny website:
http://www.addtoany.com/buttons/
Good luck
Comment #5
micropat CreditAttribution: micropat commentedsterckx, I was just about to say that it seems to be working on your site! I tried various taxonomy settings locally but couldn't reproduce the issue.
Can you tell me what tagcloud module you are using? I'd love to pinpoint the problem.
@BroadlineCable are you using a WYSIWYG editor module? Can you provide any more details?
Comment #6
micropat CreditAttribution: micropat commentedWould love to troubleshoot. If anyone else has this problem, please post.
Comment #7
jangolden CreditAttribution: jangolden commentedHi, I am currently having this issue. Addtoany hover only works on admin pages.
http://similasanusa.com.
Was working a few days ago, but yesterday the site was down all day due to hosting issues with the server.
Just getting ready to dig into this. Any help would be appreciated!
UPDATE: disabling block caching in admin/settings/performance fixed this issue for us.
Comment #8
alveoten CreditAttribution: alveoten commentedwith the last version and the js on the bottom of the page I have the same problem. putting js into the header resolve the issue but regress the site performance.
UPDATE:
resolved with some modify to the addtoany.module
from:
Comment #9
creatile CreditAttribution: creatile commentedMy JS is already on top of the page and I have the same problem: The menu doesn't dropdown when I hover the button
This problem only occurs when addtoany is in a block. I have other pages where it works.
It also work when I empty the cache. Then when I reload the page the problem comes back