The timer is not showing in Chrome, Safari and IE. Clearing the caches used to help, but now seems to do dothing.
It works ok in FF.
I'm also having issues with views slideshow. Could this be a more general javacript issue?
I'm getting this error in Chrome. What does this error mean exactly?
Uncaught TypeError: Object function (E,F){var D=F||window;var A=[];for(var C=0,B=this.length;C
Drupal.jstimer.countdown_auto_attachtimer.js:23
Drupal.behaviors.jstimertimer.js:5
(anonymous function)drupal.js:42
D.extend.each:1
Drupal.attachBehaviorsdrupal.js:41
Drupal.theme.placeholderdrupal.js:277
D.fn.extend.ready:1
D.extend.ready.D.readyList:1
D.extend.each:1
D.extend.ready
Comments
Comment #1
jvandervort commentedWhat happens when you go here:
http://drupal6.vandervortsweb.com/
Do the timers show? They do for me in FF, IE, and Chrome at least.
I am running 6.x-1.x-dev though.
Comment #2
jethro commentedLooks like my code was filtered out.
In Chrome
In Safari
TypeError: Result of expression 'active_widgets[i].attach' [undefined] is not a function.Comment #3
jethro commentedAfter a lot of digging I've finally managed to pin point the error to a conflict with the twitter embed code.
Having the code to embed a twitter widget anywhere on the page leads to the errors above in Chrome and Safari.
For some reason when jstimer got thrown off, views slideshow broke as well, not showing the thumbnail pager and not changing.
The embed code I'm using is
Any advice on how to debug this and/or fixes would be really appreciated.
Thanks,
Jethro
Comment #4
jvandervort commentedWhen you turn off jstimer, does the slideshow still work with twitter?
I've read that the twitter widgets like to be included in the section of the html.
How are you doing that?
Comment #5
jethro commentedI had thought that the slideshow pager had something to do with the jstimer, but no, the slideshow pager does not work with twitter even when jstimer is disabled.
It's just with the slideshow pager. Views slideshow worked fine with twitter until I added the thumbnail pager.
It seems it's not specific to this module...
I've added the twitter code either as a box using boxes in a panel page and just pasted the code below the jstimer code on a regular node page body to the same effect.
What do you mean "section of the html?"
Comment #6
telegraph commentedHi there,
I don't use JavaScript timer, but am encountering the Twitter conflict. I have a custom module developed which does use JavaScript time intervals, and since I have included the Twitter profile widget it returns errors in Chrome and Safari, it's fine in FF...
Error:
Uncaught TypeError: Object function (E,F){var D=F||window;var A=[];for(var C=0,B=this.length;C ...
any ideas on how to resolve this conflict?
Thanks,
Comment #7
jvandervort commentedI think you guys will probably want to bring this up with drupal core. I don't think jstimer has anything to do with it. It seems like it is a conflict somewhere between Drupal core javascript code, jquery and twitter.
Comment #8
telegraph commentedYou are right, this doesn't look like it's a jstimer issue. I may have found the answer in this post: http://tech.avivo.si/tag/twitter-widget-js-error/
This fixed it for me...
Comment #9
wildlife commentedI'm having a problem with Javascript Timer on a page with a Twitter widget as well. I have tried the above fix and it didn't work for me.
Message: Object doesn't support this property or method
Line: 24
Char: 5
Code: 0
URI: http://www.mywebsite.com/sites/default/files/jstimer/timer.js?2
The line showing when I use IE's script debugger is:
active_widgets[i].attach();
The problem only exists in IE. Firefox's error console shows no errors and the timer works fine there. It will not display in IE and the problem only exists on a page where the Twitter widget also resides. When I pull the Twitter widget off the page, no problems. Note that this problem did not exist prior to me upgrading to the Javascript Timer module. When I used Countdowntimer, it worked fine having a Twitter widget on the same page in IE.
Any advice for getting these to co-exist on the same page with no IE error?
Comment #10
jvandervort commented@wildlife:
Try disabling jstimer and see if all of the rest of Drupal javascript runs normally. In the past the twitter widget crashed everything and the error message was not indicative of anything wrong with jstimer.
Comment #11
wildlife commentedEverything works fine when I disable jstimer as far as I can tell. In fact, I reverted back to the old countdowntimer module and it is working fine. I can leave it like it is now because it works, but I'd rather keep the module up to date if possible. Jstimer is working on all other pages of the site where the twitter widget is not present, and it works when I remove the twitter widget from that page. I can let you take a look at it if that would help.
Comment #12
jvandervort commented@wildlife
#9 should be fixed now in 7.x and 6.x
Make sure to start new issues when the error message is not the same as the original.
Comment #13
jvandervort commentedComment #14
wildlife commentedI'm still getting a similar error. Should I start a new issue?
Comment #15
jvandervort commented@wildlife,
sure, if the error looks different.
Comment #16
jvandervort commented@wildlife,
try a dev snapshot from tonight.
Make sure to regen the js file by "submitting" on the admin page.
Comment #18
jay_N commentedJust to let you know that the latest dev release (6.x-1.x-dev from March 26) fixed the problem for me (conflict with both Twitter widget and Views Slideshow). Thanks!
Comment #19
isholgueras commented#8 comment worked for me too.
Comment #20
bvanmeurs commentedComment #8 worked for me in Chrome and IE9, but not in IE7 and IE8. In the end, I ended up getting the widget.js source code and found out that using the following widget fixed the problem:
I've made 2 hacks. Search for 'Hacked by Bas' for those.
Comment #21
jayceew commentedHi there,
We used the search type until about a month ago. It has just stopped working. Has there been any updates to this widget or changes to access ?
Comment #22
bvanmeurs commentedTwitter has updated its API. I believe you can't use a widget any more and must rewrite your Twitter App and authenticate to it via OAuth.
http://www.sitepoint.com/twitter-1-1-oauth-php/