The message shows:
Sat, 15 Mar 2008 21:48:29 +0100
and doesn´t show a count down. Why?

CommentFileSizeAuthor
#7 jscountdowntimer_clean_urls.patch1.05 KBjrglasgow

Comments

jrglasgow’s picture

What version of Javascript Countdown Timer do you currently have installed?

For the latest version of Automated Logout in Drupal 6 Javascript Countdown Timer 6.x-2.1or later is required to display the countdown properly, this is because of a change in the parameters Javascript Countdown Timer uses to determine the time to count down to.

jvandervort who maintains Javascript Countdown Timer also maintains Automated Logout and he has been doing a great job at keeping the two of them working together.

juliopp’s picture

I have this version:
countdowntimer 6.x-2.7
6.x · New featuresjvandervort - March 14, 2008 - 19:22
Official release from CVS tag: DRUPAL-6--2-7
Download: countdowntimer-6.x-2.7.tar.gz
Size: 13.02 KB
md5_file hash: 0d30365a1a08b81a8993ae8f382a32d3
First released: March 14, 2008 - 19:22
Last updated: March 14, 2008 - 19:25

#234299, added timer complete: url redirection and message box support.

http://drupal.org/node/234327

jvandervort’s picture

The message shows:
Sat, 15 Mar 2008 21:48:29 +0100
and doesn´t show a count down. Why?

Is this in the autologout block?
Are there any other javascript modules loaded?
Do you see the countdowntimer/timer.js?2008
in the source for the page in question?

Also, make sure to run the latest release version of autologout (6.x-1.3)

juliopp’s picture

The version is OK (version = "6.x-1.3") . Here you have some images of the problem:

Imageshack: http://img186.imageshack.us/img186/2071/issuecountdownjn8.jpg (SLOW)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Juliop.es: http://www.juliop.es/issue.JPG (BEST)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
IDivImage: http://www.idivimage.com/files/gy2wjyzqmkznzxdnzdwh.jpg
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Godlike: http://img.godlike.cl/images/issue.jpg
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Imagecross: http://hosting03.imagecross.com/image-hosting-7/8243ISSUE.JPG (I´M NOT SURE IF IT IS WORKING PROPERLY)
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
PicOodle!: http://img34.picoodle.com/img/img34/4/3/21/f_ISSUEm_98e6dc0.jpg
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

jvandervort’s picture

Can you check the source to see if the javascript is loading?
Is the site public so I can check it?

juliopp’s picture

Ok, the webpage is http://adcash.juliop.es/drupal/drupal/ (Waiting for domain approval), and the posts are in Spanish (Web temporarily changed to English).

jrglasgow’s picture

Project: Automated Logout » Javascript Countdown Timer
Version: 6.x-1.x-dev » master
Assigned: juliopp » Unassigned
Category: support » bug
StatusFileSize
new1.05 KB

It seems that the problem you are having is related to the way Drupal handles adding Java script files.
This is how the javascript is normally added

<script type="text/javascript" src="/countdowntimer/timerjs?w"></script>

Because you have clean urls off the server tries to serve the page located at countdowntimer/timerjs?w in relation to the drupal install directory, this is nonexistant wo the server return a 404 page not found error. This works fine when clean urls are turned on because the server redirects the search for the page to the Drupal menu system and the proper page is returned. If the javascript was included like this

<script type="text/javascript" src="/drupal-6.0/?q=countdowntimer/timerjs&n=?1206837694"></script>

the server sees q=countdowntimer/timerjs as a request to the Drupal menu system and the proper page is served.

The attached patch will detect whether Clean urls is on or off and thus include the java script file in a way that the server will be able to handle.

Because the patch is for JS Countdown Timer I have switched this issue to that project and switched it to a bug report.

jvandervort’s picture

Version: master » 6.x-2.8
Assigned: Unassigned » jvandervort
Status: Active » Fixed
juliopp’s picture

That would have to do with that file?

jvandervort’s picture

Try the latest javascript countdown timer: 6.x-2.8
and let us know.

jrglasgow’s picture

juliopp I wrote comment #7 more for jvandervort's benefit than yours, I tracked down the error to a javascript file that wasn't being included by javascript countdown timer, which he is the author of. jvandervort has since patched javascript countdown timer and released a new version 6.x-2.8

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.