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

cpelham’s picture

Priority: Normal » Critical

Hmm. 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?

cpelham’s picture

I 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...

KarenS’s picture

Status: Active » Postponed (maintainer needs more info)

I 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.

asb’s picture

Hi,

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

patchak’s picture

Hi! 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

KarenS’s picture

Can'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.

ralphos’s picture

I 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.?

dgrant’s picture

The 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.

dxhuong’s picture

This 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

Suzy’s picture

I 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

Parkes Design’s picture

Okay 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.

:-)

Parkes Design’s picture

To be more specific, disable banner ad blocker under content filtering.

equinox’s picture

I 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:

<label for="edit-field-timestamp-0-value">
Timestamp:
<span class="form-required" title="This field is required.">*</span>
</label>

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.

Dr Trichome’s picture

I 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

arlinsandbulte’s picture

Status: Postponed (maintainer needs more info) » Fixed

No 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.

Status: Fixed » Closed (fixed)

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

betz’s picture

Status: Closed (fixed) » Active

I 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.

robbertnl’s picture

Datepicker 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

sk33lz’s picture

I 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.

bwoods’s picture

I followed #9 and disabled the jQuery the module, and the date picker showed up.

arthursk’s picture

Working 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:

<script type="text/javascript" src="/sites/all/modules/jquery_ui/jquery.ui/ui/ui.core.js?T"></script>
<script type="text/javascript" src="/sites/all/modules/jquery_ui/jquery.ui/ui/ui.datepicker.js?T"></script>

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

Line 34 : jquery_ui_add('ui.datepicker');

To

Line 34 : jquery_ui_add('jquery.ui.datepicker');

Hope that helps someone :)

Regards,

Arthur

robbertnl’s picture

Doesn't work for me. The filenames are ok here. I still have the issue #18

Konrad’s picture

I'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.

ozke’s picture

Checking 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

kevinquillen’s picture

Latest build of Date and Jquery UI and this does not work for me.

TechnoBuddhist’s picture

Solution 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.

yacup’s picture

Hi,
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

// ...
jquery_ui_add('jquery.ui.datepicker');
// ...

line 54

// ...
case '1.8':
      $paths[drupal_get_path('module', 'date_popup') .'/themes/datepicker.css'] = t('Date Popup default');
      $paths[$jquery_ui_path .'/jquery.ui/themes/base/jquery.ui.datepicker.css'] = t('jQuery UI default');
      break;
// ...

And in jquery_ui.module I changed:
line 51:

// ...
jquery_ui_add(array('jquery.ui.core'));
// ...

line 59:

// ...
jquery_ui_add(array('jquery.effects.core'));
// ...

line 75:

// ...
$jquery_ui_path = drupal_get_path('module', 'jquery_ui');
drupal_add_css($jquery_ui_path.'/jquery.ui/themes/base/jquery.ui.all.css');
// ...
wizonesolutions’s picture

I 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

wizonesolutions’s picture

Also 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.

Error: $(this).datepicker is not a function
Source file: www.example.com/sites/all/modules/date/date_popup/date_popup.js?P
Line: 15
Bartezz’s picture

subscribe

rufpoet’s picture

subscribe

hercibadabad’s picture

Issue tags: +jquery_ui readme

I 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.

Bartezz’s picture

Hi 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;

<script type="text/javascript" src="/sites/all/modules/jquery_ui/jquery.ui/ui/minified/ui.core.min.js?0"></script>
<script type="text/javascript" src="/sites/all/modules/jquery_ui/jquery.ui/ui/minified/ui.datepicker.min.js?0"></script>

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

wizonesolutions’s picture

Heh, 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.

Anonymous’s picture

Seems 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...

Anonymous’s picture

Never mind, I just used this: http://drupal.org/project/date_popup_authored. Works great!

jazzdrive3’s picture

Not 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.

KarenS’s picture

Status: Active » Fixed

There 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.

druvision’s picture

I've Installed the latest jquery_ui according to instructions, flushed my javascript cache - and now it works.

Status: Fixed » Closed (fixed)

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

ralfeus’s picture

Status: Closed (fixed) » Active

Same 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.

ralfeus’s picture

Status: Active » Closed (works as designed)
mrchristoph’s picture

I 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 :)

Bartezz’s picture

Priority: Critical » Normal
Status: Closed (works as designed) » Active

Hey 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...

kenorb’s picture

The 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

kenorb’s picture

See: #38
and README.txt
Works with 1.6

Before I had 1.8.7

kenorb’s picture

Status: Active » Fixed

Fix is to read README.txt of JQuery_ui module
http://drupalcode.org/viewvc/drupal/contributions/modules/jquery_ui/READ...

Download the latest jQuery UI 1.7 release from:
http://code.google.com/p/jquery-ui/downloads/list?q=1.7

Otherwise create separate feature request to work with the latest version.

Status: Fixed » Closed (fixed)

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

dremy’s picture

See #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

decibel.places’s picture

In 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)

decibel.places’s picture

@#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

mattcasey’s picture

Doh! Don't forget to click the gear icon next to the filter and select Popup.

blairCruz’s picture

This 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.

TelFiRE’s picture

Uh,
So safe to say, "date picker is not supported for views exposed filters"?

mattcasey’s picture

This 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

nandotinoco’s picture

Just 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.

frederico’s picture

Thanks nandotinoco!!! Option #2 worked for me. Thanks again for taking time to let the community know.

-Frederico Garza

ashopin’s picture

Issue summary: View changes

@nandotinoco thank you! 4 years later it was the solution for us too.