getelementsbyclassname - error appearing

irashkin Mar 06, 2012 11:57AM EST

Hi, my client has incorporated an addthis button for quite some time, but suddenly it started throwing errors. We noticed it this morning, heavily, but looking back at our error logs, it has been happening for some time, but never as bad as today. Furthermore, I can't 100% confirm, but it seemed to be breaking some other javascript on our page
(presumably by not reaching the required lines) thus breaking the site; again, I can't confirm a direct correlation, but as soon as I removed addthis, we stopped having issues.

Anyway, the were seeing in IE 9; we were experiencing similar symptoms in Firefox and Chrome too, at least, but most often in IE. As I say, I've removed the addthis code from our live pages, but I saved the source from one and posted it as http://www.storkie.com/addthistest.html - you can visit that page to see the problem in action. Any advice or solutions you can offer will be greatly appreciated.
Thanks,
Ian
------------------------------------

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MASA; BRI/2; .NET CLR 1.1.4322)
Timestamp: Tue, 6 Mar 2012 16:47:41 UTC


Message: Object doesn't support property or method 'getElementsByClassName'
Line: 2
Char: 65562
Code: 0
URI: http://s7.addthis.com/static/r07/core000.js

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Mar 06, 2012 01:43PM EST
Thanks for pointing this out. I'll let our developers know and update this thread with their progress. Thanks for providing an example URL.
Up 0 Rated Down
henry.lee Mar 07, 2012 12:36PM EST
We also started experiencing this debilitating issue yesterday (3/6/12). The AddThis core000.js file is causing a JS conflict error with all calls to getElementsByClassName().

This is resulting in a cascading catastrophic failure in all subsequent Javascript that calls getElementsByClassName(), essentially breaking any client-side JS functionality on the page.

Due to the high incidence of user complaints we've received since yesterday, we've been forced to remove the AddThis widget, which has temporarily fixed the issue.

--------------
Mozilla, Firefox 9.01 (though it happens on all browsers)
Firebug Console Error Output:

elm.getElementsByClassName is not a function

evl(a=".addthis_toolbox")core000.js (line 2)
evl(j=".addthis_toolbox", b=null, k=null, l=true)core000.js (line 2)
evl()core000.js (line 2)
evl(a=undefined)core000.js (line 2)
evl()core000.js (line 2)
evl()core000.js (line 2)
evl()
Up 0 Rated Down
jmagliol Mar 07, 2012 06:30PM EST
We also have seen this problem in IE8 and below:

SCRIPT438: Object doesn't support property or method 'getElementsByClassName'
Up 0 Rated Down
rerlinger Mar 08, 2012 04:49AM EST
We also have this Problem:

SCRIPT438: Object doesn't support property or method 'getElementsByClassName' core000.js, line 2 character 65562
SCRIPT438: Object doesn't support property or method 'getElementsByClassName' core000.js, line 2 character 65562

Please provide a quick fix, because our clients cannot use addthis in IE7 and IE8
Up 0 Rated Down
Paul (AddThis Happiness Specialist) Mar 08, 2012 11:45AM EST
We pushed a release this morning that we think nailed the bug. Can you check it?
Up 0 Rated Down
jmagliol Mar 08, 2012 12:38PM EST
Our issue seems to be fixed. Thank you for the update.
Up 0 Rated Down
jmagliol Mar 08, 2012 12:43PM EST
I spoke too soon. We still see the problem in IE7.
Up 0 Rated Down
Paul (AddThis Happiness Specialist) Mar 08, 2012 01:43PM EST
Can you post the URL where you're seeing it and the full version of IE? For example: Internet Explorer 9.0.8112.16421
Up 0 Rated Down
jmagliol Mar 08, 2012 03:27PM EST
http://www.howlifeworks.com/shopping/Why_are_Chic_Shoe_Clubs_So_Hot_Right_Now_320?ra=1

Widget appears in the upper right of the left (content) column.

Running IE 9.0.8112.16421 in IE7 mode.
Up 0 Rated Down
jmagliol Mar 09, 2012 02:19PM EST
Any updates on this? Much appreciated.
Up 0 Rated Down
unifemfi Mar 12, 2012 06:10AM EDT
We also had this error on our site which seems to be gone now but addthis buttons are still not visible: http://www.unwomen.fi/

Hope you guys get this fixed soon..
Up 0 Rated Down
jmagliol Mar 15, 2012 01:51PM EDT
Paul, is this issue still being worked on? A status update would be very helpful. Thank you.
Up 0 Rated Down
Paul (AddThis Happiness Specialist) Mar 15, 2012 03:10PM EDT
We rolled back the release from last Tuesday earlier today so we can nail this down without causing further problems for the users. Once we've got it fixed we'll re-release it, probably sometime early next week.
Up 0 Rated Down
henry.lee Mar 27, 2012 11:10AM EDT
Hi Paul,

Thanks for the update. Due to the number of threads regarding this issue (I counted 4 on Mar. 7th), it would be helpful to either consolidate the threads & name one "official" thread that you will update when a patch is rolled out and the issue has been resolved - and link all threads to that thread...

OR to update ALL threads with the same information (less ideal) so we don't have to guess where to look for an update.

Thanks!
Henry
Up 0 Rated Down
henry.lee Mar 27, 2012 11:18AM EDT
I've proposed on all duplicate threads (that I know of) regarding this issue to link to THIS thread.

Thanks.

Hopefully we can get a fix & update soon.

This question is closed to new answers.

Still need help?


General Topics

 

Developers