Hi, I installed the addThis module and it works great on safari, chrome and even on ie7. Unfortunately the popup/dropdown does not work with my latest version of Firefox. I haven't tried other versions, but mine is currently FF3.6.6.

When I do a mouseover I receive this javascript error message: addthis_open is not defined .
When I do a mouseout I receive this javascript error message: addthis_close is not defined .

Any ideas to debug this?

Comments

danny_joris’s picture

I just noticed this happens with other sites as well using my current Firefox version 3.6.6. Probably not caused by this module.

aaron stanush’s picture

I've come across these same errors, but they are not isolated to just Firefox for me. Any browser I try to view the button in, will not display the dropdown on mouseover.

See: #846650: Popup / dropdown does not appear when placing the button through the theme

yeaha’s picture

I just get the same error but only when the addthis button is in a teaser, on a full page it works. weird

yeaha’s picture

aha, found a solution for my button that's not working in a teaser. aparently the addthis module loads a button for every teaser on my page. But only the first one got the addthis_widget.js script attached to it.
And because the first teaser is of a content type that does not show this addthis button on the page with display suite, the addthis_widget.js file does not get loaded in the page.
So as a solution for the problem, I commentent out in theme_addthis_button($node, $teaser) in my template.php hook_addthis_button($node, $teaser) function:

//always print this script, commented out the counter
// if ($_addthis_counter == 1) {
$button .= sprintf('

', $_SERVER['HTTPS'] == 'on' ? 'https://secure.addthis.com' : 'http://s7.addthis.com', variable_get('addthis_widget_version', '152') ); //} probably not the best solution ever, there must have been a reason for this counter but now it works for me so :p
vesapalmu’s picture

Status: Active » Postponed (maintainer needs more info)

This obviously only happens in certain conditions. Could you please send more information about exactly how the button was used? I think this might have something to do with theming the button.

escoles’s picture

I'm seeing this behavior in all browsers on all platforms, but only when using a variant page template. The only thing unusual about this template is that I've stripped out a lot of HTML and most of the block regions from the main page template -- the PRINT statements in the HEAD are identical except for code formatting.

The only relevant difference I can see between the output in regular and stripped pages is that one includes the script link to http://s7.addthis.com/js/200/addthis_widget.js, and the other doesn't.

This is a stock install, no over-rides. I'm simply displaying the widget block in a region. Theme is AdaptiveTheme, module settings are essentially un-modified.

EDIT: I've resolved this for my case by un-setting "Show AddThis button on this type of node" on the Settings page for the affected content type.

Apparently the JavaScript was being bound to an earlier instance of the widget -- which was not being rendered on this page, since I have links disabled for that content type.

shaneonabike’s picture

I had the same issues on a site I was working on and doing the same thing that was suggested by @escoles worked. I unchecked AddThis option for the content and viola it's appearing now. BTW I didnt change the HEAD or anything either so it seems strange that this would be happening.

My settings

<top-header-view-block>
 * title of node
 * addthis button
</top>
<content type body>
 * Stripped down to only include the body and images but not $links
</content>
gisle’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

Latest status update was 5 years ago. The version for Drupal 6 is no longer supported. Time to close.

Feel free to reopen if the problem is still present in a version of the project for Drupal 7.