I can't get Sharethis to work in Drupal 6. I just keep getting a "SHARETHIS is null" javascript error. The Sharethis object can't be initialized.

I'm not sure it this has broken because of a recent Drupal core update or because of a Sharethis update, but it's not even close to working.

I tried the sharethis module as well as as two different manual implementations. All proven approaches in past Drupal 5 sites.

Does anyone have any experience with this?

Comments

vm’s picture

filing a bug report in the issue queue of the module in question may be more fruitful.

nikefido’s picture

But I can even test the javascript snippets in a test.html page (aka, a html page I enter myself and ONLY add the sharethis javascript to) and it still doesn't work.

Seems to be an issue with ShareThis ?

edit: after some research, SHARETHIS doesn't seem to work when the domain is "localhost"

Type in "127.0.0.1" rather than "localhost" and it should work.

lrozada’s picture

yes! the problem is with "localhost"... I try with 127.0.0.1 and its works!
Great!

mtabanpour’s picture

I am having the same problem but I have no idea what "the problem is with "localhost"... I try with 127.0.0.1 and its works!" means. Please explain. What should I do to get it to work. Thanks, MT

tehkemo’s picture