I am now testing the latest as of today dev versions of Views, CCK, Date and Calendar in Drupal 6.4. I created a CCK type and added a date field. I chose javascript pop-up widget. When I go to create or edit a node of this type, no popup appears and there is no way to select or edit the date. What I get is this
event_date_cck
event_date_cck From date: *
event_date_cck To date:
event_date_cck 2
event_date_cck From date:
event_date_cck To date:
Am I supposed to install something else? My impression was that the javascript popup picker is a part of Date package. I have the popup picker installed. Is there anything else to do, any setting to turn on somewhere?
Comments
Comment #1
cpelham CreditAttribution: cpelham commentedHmm. I have looked all over and haven't found any advice about how to get Date Picker Popup to work. Inability to enter any dates has brought my development to a standstill. Can anyone provide any suggestions?
Comment #2
cpelham CreditAttribution: cpelham commentedI just created a new CCK type and added a new date field, and then tried creating a node of this type. The jquery date picker popup appears! So...it would seem that it only does not work for the date field into which I imported dates from Event module. Karen, what do you make of this?
I should add that a lot of those dates did not import correctly, not sure if that is a related issue or separate one. Is this par for the course? Perhaps I will have to go about re-entering all of our upcoming events. re-entering all the old ones is too depressing a thought, will have to experiment more with the date import/export module...
Comment #3
KarenS CreditAttribution: KarenS commentedI wonder if this is the same issue as #332806: CCK does not activate inactive fields after enabling Date widgets? If so, the latest commits should make sure you can get the Popup activated by disabling and then re-enabling the Date Popup module.
Sorry this fell off the radar, I got busy with other things. I suppose you've already done something else by now, but if you need more help let me know.
Comment #4
asb CreditAttribution: asb commentedHi,
something similar happened on my D5 sites after installing the jQuery update module. Maybe this is related, but I haven't yet investigated the depedencies of date module and jQuery yet (see e.g. this issue). And yes, I ran into this only on D5, the date module for D6 might behave completely different.
@cpelham: Which version of jQuery are you running?
Greetings, -asb
Comment #5
patchak CreditAttribution: patchak commentedHi! I have created two content types with date fields. I select text field with popup as the widget, and no matter what options are selected, I can never see the calendar!
This is on :
Drupal 6.6
Calendar 6.x-2.0-rc6
Calendar Popup 6.x-2.0-rc6
Date 6.x-2.0-rc6
Date API 6.x-2.0-rc6
Date Popup 6.x-2.0-rc6
Will try to disable some JS related modules, and to upgrade to the dev version see if that makes any difference, thanks
Patchak
Comment #6
KarenS CreditAttribution: KarenS commentedCan't replicate this problem in the latest -dev code. There have been lots of changes since rc6, so whatever the problem is could have since been fixed.
Comment #7
ralphos CreditAttribution: ralphos commentedI have just started using the Date module, running through the hands-on parts of chapter 9 of the Using Drupal book and have a similar situation to that mentioned here.
I have a Drupal 6.9 local installation for playing around like this (which is is why I have not updated to 6.10), and have installed the date-6.x-2.0 module.
I have followed the instructions in Using Drupal up to adding, configuring and saving a simple events form content type with a single datetime field using the "Text Field with Date Pop-up calendar" widget.
When trying to create a few test event nodes I can find no way to get the date picker calendar to pop up. Needless to say as a newbie this does not really give a very good impression.
I have checked that I have the Date API, Date, Date Popup and Date Timezone module options enabled. I have selected Europe/London as my timezone and left User-configurable time zones enabled and Sunday as first day of the week.
The settings for the datetime field are:
Default value: Now Default value for To date: Same as From date Input format: 2009-03-07 17:09 Years back and forward: -1:+2
Time increment: 15 Required: checked Number of values: 1 To Date: Optional Granularity: all but seconds selected
Default Display: Medium Time zone handling: No time zone conversion
Is there anything else I need to install, update, enable etc.?
Comment #8
dgrant CreditAttribution: dgrant commentedThe date popup works for me in Garland in Drupal 5 with latest non-dev modules but not in my own custom theme. I'm not sure why.
Comment #9
dxhuong CreditAttribution: dxhuong commentedThis error is because you install Jquery UI wrong way (missing jquery UI file download).
You should disable Jquery UI module and Date Picker Popup will appear.
Best regards
Comment #10
Suzy CreditAttribution: Suzy commentedI have the same issue, am upgrading to 6.10 from 5.16
never had Date or calendar previously - I used the event module so these are brand new tables/fields
ref: #9 - I have not got the jQuery UI module
I tried installing the jquery update module but this did not fix issue
reverted to Garland in case it was a theme issue, still no popup
set up a new CCK (ref #2) while still using Garland, still no joy
am at a loss as to what else to try
------------------------------------------------
edit: update I disabled all non-necessary modules and uninstalled themer and jquery update
disabled all date and calendar modules then re-enabled them one by one
popups appeared
I then re-enabled my custom theme, and then my help/admin modules and all is fine :)
I've no idea which bit did it, but all is well now
Comment #11
Parkes Design CreditAttribution: Parkes Design commentedOkay Guy's I think I've found the problem to this. It's a strange fix but it worked for me. I couldn't get the Date Popup to work on my pc so I tried it on clients pc and it worked. I then went back to my PC and tried a million things and the thing that successfully fixed the problem was to disable Kaspersky internet protection and refresh your page. Tada, it worked no problems.
Let me know if this is worked for you.
:-)
Comment #12
Parkes Design CreditAttribution: Parkes Design commentedTo be more specific, disable banner ad blocker under content filtering.
Comment #13
equinox CreditAttribution: equinox commentedI had to remove my CCK date field plans for the time being from my site as I could not get a date picker to display on my page through any means. I have the latest version of Drupal (6.11) and all modules up to date. I use the colorise theme, but this error occurs for me testing using the Garland theme.
I add a Timestamp/date pop-up field to my content type, which in this case happens to be an rss feed item filled by FeedAPI. I import some content, and in viewing the node I can see that I have captured the timestamp from the feed as it displays on the node correctly as a 10 digit Unix timestamp. But when I click edit to the node the html code for the timestamp appears as follows:
The firebug javascript console shows no errors.
I have tried disabling every javascript option i have enabled on the entire site and it seems to make no difference. I disabled and reenabled the date pop-up module. No change.
I am able to go forward with my site without this date fortunately, but I would love to work out why this is happening.
Comment #14
Dr Trichome CreditAttribution: Dr Trichome commentedI have a similar problem. The Date popup was working and then I installed the jquery update and jquery_ui modules, and then the date popup stopped working. When I disabled the the jquery update and jquery_ui modules, the date popup started working again. Any ideas on how to solve this? I will try installing earlier versions of the jquery modules and update later.
This is my installation:
MAMP
Drupal 6.12
Modules:
Date 6.x-2.2
Date API 6.x-2.2
Date Popup 6.x-2.2
jQuery UI 6.x-1.2
jQuery Update 6.x-2.x-dev
Comment #15
arlinsandbulte CreditAttribution: arlinsandbulte commentedNo activity after 37+ weeks of being at status "postponed maintainer needs more info)"
Marking as fixed for now... if this still applies to you, re-open and provide as much info about your setup as you can.
Comment #17
betz CreditAttribution: betz commentedI got the same problem.
With following modules enabled that may cause a problem: (D 6.15)
date 2.4
jquery-ui 1.3
modal frame api 1.6
Got following error: undefined function:.datepicker(datePopup.settings)
when discabling jquery-ui and modal frame api everythings ok.
Comment #18
robbertnl CreditAttribution: robbertnl commentedDatepicker is working here but not when using the datepicker in an exposed view.
The error i get is:
Error: $(this).datepicker is not a function
Source File: http://mydomain/sites/all/modules/date/date_popup/date_popup.js?D
Line: 15
Comment #19
sk33lz CreditAttribution: sk33lz commentedI have a similar setup as #14, but do not have j_query update installed. I get the same issue where the date popup just stopped working after enabling jquery_ui module. I was using some other modules that depended on that, so it kind of sets me back a little bit.
Comment #20
bwoods CreditAttribution: bwoods commentedI followed #9 and disabled the jQuery the module, and the date picker showed up.
Comment #21
arthursk CreditAttribution: arthursk commentedWorking on a development site and came across the same issue. In my scenario I have modules reliante on jQuery UI so disabling it was not an option:
I following another post I tried setting jQuery Updates compression to "none" but no avail.
Looking at the uncompressed/minified output in my head I saw:
The uri for the datepicker is not consistent with the file names in the module folder... i.e. "ui/jquery.ui.datepicker.js" So naturally they were linking to missing files.
As a quick and I'm sure "noob" fix I just duplicated the "jquery.ui.datepicker.js" and .core files and truncated 'jquery.' and it worked. :)
If anyone has any better ideas for a solution it would be appreciated as I need jquery ui to run other modules.
EDIT:
It appears the Jquery UI "intergration" on the Date Popup module has the wrong file name under date_popup.module file
To
Hope that helps someone :)
Regards,
Arthur
Comment #22
robbertnl CreditAttribution: robbertnl commentedDoesn't work for me. The filenames are ok here. I still have the issue #18
Comment #23
Konrad CreditAttribution: Konrad commentedI'm having the same problem.
#21 gives a good hint. I disabled the default lookup for jQuery file (if satement) and loaded Date popup one. The popup appears, but it of course is not generated by jQuery.
Perhaps the issue is with a version of jQuery - I'm using 1.8.2? I haven't checked it yet. The standard Date popup works for me, for the time being.
Comment #24
ozke CreditAttribution: ozke commentedChecking it with Firebug I found where the problem is.
The module is trying to load two files called ui.core.min.js and ui.datepicker.min.js but according to the version of jQuery I downloaded this files are now called jquery.ui.core.min.js and jquery.ui.datepicker.min.js.
A quick'n'dirty solution would be duplicating those two files and remove the "jquery." prefix. That makes the script work. However, styles look a little bit funny and this one should NOT be the solution.
Thanks,
Miquel
Comment #25
kevinquillen CreditAttribution: kevinquillen commentedLatest build of Date and Jquery UI and this does not work for me.
Comment #26
TechnoBuddhist CreditAttribution: TechnoBuddhist commentedSolution that worked for me was to make sure I was using a compatible version of JQuery for the modules that needed it.
I was using Date module and the DatePopup had a readme that talked about JQuery 1.6 and 1.7. I'd assumed that it was old docs and I used the latest JQ 1.9 and the JQuery update module. That gave me all the problems. I uninstalled JQuery Update module, overwrote JQ1.9 with JQ1.6, flushed my caches and sweet as a nut all works no problems.
Comment #27
yacup CreditAttribution: yacup commentedHi,
I had the same problem with JQuery UI 1.8.4. I had to change several things in the code but it works now.
In date_popup.module I added:
line 33
line 54
And in jquery_ui.module I changed:
line 51:
line 59:
line 75:
Comment #28
wizonesolutionsI have jQuery UI 1.6, which should be compatible with the out-of-the-box Drupal jQuery version, and I am getting the same error. I honestly can't see why! I navigated directly to the jQuery file that is being included, and the file appeared. I can see that the Datepicker class is being defined. And I debugged it in Firebug and saw it makes it right up to there, and then mysteriously fails. No errors prior to that about it not being included or whatever. How strange! I've cleared the cache too.
What information do I need to provide to help sort this out? I have of course tried the latest -dev version (as of right now).
I'll nose around on the issue queue some more...
Thanks,
Kevin
Comment #29
wizonesolutionsAlso worth noting that this also doesn't work for CCK controls. So it doesn't work when generating the popup-associated text field via the Form API or via the CCK Date field. The error is the same both times.
Comment #30
Bartezz CreditAttribution: Bartezz commentedsubscribe
Comment #31
rufpoet CreditAttribution: rufpoet commentedsubscribe
Comment #32
hercibadabad CreditAttribution: hercibadabad commentedI also was upset for this problem...
I have had the date module and jquery_ui but date popup hasn't been working...
And, now it's working... :) You ask how? It's so basic. I had enabled the jquery_ui module but i didn't read the readme.txt text of jquery_ui module. I read it and now realised that my jquery_ui module need some other folder. READ JQUERY_UI readme.txt to understand the matter and i hope you will be succesful to do it as me.
Comment #33
Bartezz CreditAttribution: Bartezz commentedHi Hercibadabad,
Thanx for posting but... I think most of us did check the readme and do have the jquery.ui directory inside the jquery_ui module directory.
but the good news is that I did find the problem in my case.
Using jQuery Update 6.x-2.0-alpha 1 and jQuery UI 6.x-1.4 on Drupal D6.19.
What I found was that the jQuery UI module was trying to include files from the jquery.ui directory you have placed in the module directory (renamed from jquery-ui1.6 or something). Problem is that it's trying to include files like;
Yet the files that are provided at http://code.google.com/p/jquery-ui/downloads/list?q=1.6 are named jquery.ui.datepicker.min.js, thus prefixed with jquery.. After I renamed the files all was good!
Not on my work station right now so can't look into the module and see if I can provide an easy fix or patch but for now renaming the files in the jquery.ui/ui/minified directory seems to do the trick!
Cheers
Comment #34
wizonesolutionsHeh, in the end it was because on our site jquery.js was being included twice. We had to check page.tpl.php and remove some customizations where someone added it in manually...it was re-creating the jQuery object AFTER it had been extended, thus losing the extensions I guess.
Funky but true. Hope this might help some others.
Comment #35
Anonymous (not verified) CreditAttribution: Anonymous commentedSeems I'm not even getting this far. I have the date and jquery_ui modules installed and configured (selected 'jquery ui defaut' for css and 'use default jquery timepicker' as timepicker, but looking in the source I don't see 'ui.datepicker.js' anywhere. The CSS shows up fine, which means the module is getting called up.
Seems like date_popup_load() isn't getting called, and I don't know why...
Comment #36
Anonymous (not verified) CreditAttribution: Anonymous commentedNever mind, I just used this: http://drupal.org/project/date_popup_authored. Works great!
Comment #37
jazzdrive3 CreditAttribution: jazzdrive3 commentedNot working for me either. This is the first site I've had the problem on. Using the latest Date module.
Using no extra jquery modules at the moment.
In the javascript console, I'm getting "$(this).datepicker is not a function" when I focus on the date field.
Comment #38
KarenS CreditAttribution: KarenS commentedThere are various versions of jquery ui. The way the code is included is following the instructions provided by the jquery ui module. The name of the files match the versions of jquery ui that are expected to work with Drupal 6 (1.6 and 1.7). If you use use a newer version of jquery ui than 1.7.x it does not work reliably in Drupal 6. If you use jquery ui 1.7, you also need the appropriate version of jquery update.
All of this has nothing to do with the Date module. I removed the embedded code and went back to relying on jquery ui so that I could offload the work of supporting jquery ui issues. Questions about how jquery ui works, how to install it, what versions to install, etc all belong on the jquery ui issue queue.
Maintaining the module is already a huge job. I don't have time to also provide support for jquery ui. Sorry.
Comment #39
druvision CreditAttribution: druvision commentedI've Installed the latest jquery_ui according to instructions, flushed my javascript cache - and now it works.
Comment #41
ralfeus CreditAttribution: ralfeus commentedSame problem. I have found out it's very likely caused by fact following URL are unavailable:
/drupal/modules/jquery_ui/jquery.ui/ui/ui.core.js?t
/drupal/modules/jquery_ui/jquery.ui/ui/ui.datepicker.js?t
When I try to open these URLs in browser I get Drupal's response "Page not found". But if I change "t" in the very end of URL or just remove it along with "?" it shows content of JS file. For any other JS file URL taken from the page shows JS content without any problems. For example following URL works fine:
/drupal/modules/date/date_popup/lib/jquery.timeentry.pack.js?t
Is that some kind of Drupal's preprocessing of requests?
Solved. Both URLs were cached.
Comment #42
ralfeus CreditAttribution: ralfeus commentedComment #43
mrchristoph CreditAttribution: mrchristoph commentedI found that the latest jquery ui comes with the filenames 'jquery.ui.datepicker.js' which is different to what the module is trying to call (note the jquery on the front). I just changed the names of the appropriate files to 'ui.datepicker.js' and it works now - hope this helps someone :)
Comment #44
Bartezz CreditAttribution: Bartezz commentedHey MrChristoph,
So I'm not the only one; http://drupal.org/node/306335#comment-3515034
Seems like the module needs updating. Will see if I can cook up a patch but am very busy at the moment so this can take a while...
Comment #45
kenorb CreditAttribution: kenorb commentedThe same problem.
Paths are wrong.
jquery_ui/jquery.ui/ui/minified/ui.datepicker.min.js
jquery_ui/jquery.ui/ui/minified/ui.core.min.js
doesn't exists.
Should be:
jquery.ui.core.min.js
jquery.ui.datepicker.min.js
Comment #46
kenorb CreditAttribution: kenorb commentedSee: #38
and README.txt
Works with 1.6
Before I had 1.8.7
Comment #47
kenorb CreditAttribution: kenorb commentedFix is to read README.txt of JQuery_ui module
http://drupalcode.org/viewvc/drupal/contributions/modules/jquery_ui/READ...
Otherwise create separate feature request to work with the latest version.
Comment #49
dremy CreditAttribution: dremy commentedSee #34 if it works with date popup works with one theme, but date popup breaks in another theme. I couldn't figure it out for weeks, and then checked my themes page.tpl.php and noticed a reference to a:
script type="text/javascript" src="<?php print base_path().path_to_theme() ?>/js/jquery00.js">script
Sure enough, it was picking up jquery 1.2.3 and replacing it with my jqueryui stuff. Thanks super!
www.thevegaslist.com
Comment #50
decibel.places CreditAttribution: decibel.places commentedIn my case
Drupal 6.11
PHP 5.2.9
jQuery Update 6.x-2.0-alpha1 (jQuery 1.3.2)
jQuery UI 6.x-1.5
Date Popup 6.x-2.7
Views 6.x-3.0-alpha3
Better Exposed Filters 6.x-3.0-beta1
the ONLY way I could get the date popup to appear in a Views Bulk Operations exposed filter was to NOT install the jquery.ui plugin anywhere - not in the jquery_ui module nor in sites/all/libraries
I get a warning in Status Report that jquery.ui is missing but the datepicker works
I tried just about every combo of 2.x 3.x and -dev of all the modules but nothing else worked
(soon I hope to update the core, maybe that will make a difference)
Comment #51
decibel.places CreditAttribution: decibel.places commented@#50
so, the problem was: my theme was loading jquery.ui-1.8 in page.tpl.php
now that it's removed, and jquery.ui-1.7.3 is installed properly in sites/all/libraries, all seems to be well
I also noticed there is a ui.core file in the Tabs module, which I am not using and removed
Comment #52
mattcasey CreditAttribution: mattcasey commentedDoh! Don't forget to click the gear icon next to the filter and select Popup.
Comment #53
blairCruz CreditAttribution: blairCruz commentedThis is ridiculous, 52 posts over 4 years and this isn't resolved. I have a vanilla drupal 6 with jQuery 1.6 and it doesn't work.
Comment #54
TelFiRE CreditAttribution: TelFiRE commentedUh,
So safe to say, "date picker is not supported for views exposed filters"?
Comment #55
mattcasey CreditAttribution: mattcasey commentedThis issue has somehow moved from CCK fields to Views exposed filter but re: #53 and #54, YES it does work fine for me. I am using:
Date 2.8
Date Popup
Views 3.0
After adding Dat as a filter, Click the gear and choose "Popup" for Date form type
Comment #56
nandotinoco CreditAttribution: nandotinoco commentedJust had this problem on a brand new install and found what could be the source of confusion.
There are two ways to add an exposed date filter to a view:
Option 1
Add filter / Filter Content / Content: Post date
Result: exposed filter is always a text field, date module not invoked, no datepicker not matter what you try!
Option 2
Add fileter / Filter Date / Date: Date (node)
Result: popup is an option as input format, date module is called, all works perfectly!
I'm on D7, Views 3.3, Date 2.3, Date Popup.
Comment #57
frederico CreditAttribution: frederico commentedThanks nandotinoco!!! Option #2 worked for me. Thanks again for taking time to let the community know.
-Frederico Garza
Comment #58
ashopin CreditAttribution: ashopin commented@nandotinoco thank you! 4 years later it was the solution for us too.