Hi,
I've been using Date Popup successfully.
Now it is not presenting the month and year select boxes.
See attached jpg file.

I recently installed JQuery update but am not sure if this caused the problem.

Thanks
Steve
PS: I installed 2.x-dev, ran update.php (none required), cleared caches, intstalled patch to clear the ""warning: date_format() expects parameter 1 to be DateTime..." error, etc.

CommentFileSizeAuthor
#9 date_popup_cssupdate.patch966 bytesacouch
#1 DatePrompt.jpg23.01 KBgtaylor

Comments

gtaylor’s picture

StatusFileSize
new23.01 KB

We just upgraded to 6.x 2.x along with several other modules. We somehow missed this in testing or something. The month is not displaying on the popup. But the year is. See attached pic

kento’s picture

Same thing happened here, you might want to try visiting admin/settings/date_popup and hit 'Save configuration' to get the right settings updated, it worked for me with the 'Date Popup default' option.

If you'd like to use the 'JQuery UI Default' option, this might interest you:

If you take a look at date_popup.module's (6.x-2.6) function date_popup_css_options() in my case using jquery.ui 1.7.3, the path for the 'JQuery UI Default' option isn't right for the default: case, it uses '/jquery.ui/themes/default/ui.datepicker.css' but that path isn't there, this one is: '/jquery.ui/themes/base/ui.datepicker.css' ... the error here is that in 1.6 the css really is in .../themes/default/... but in my 1.7.3 it isn't, having .../themes/base/... there instead.

ludo.r’s picture

I have a similar issue.

The month and year select boxes dont show up.
I lloked in the source code using firebug, and they are not there.

How to activate them?

It is not very handy when entering a birth day like 1951-02-18, you have to click like 59*12 times to get the good month+year.

Im using jquery_update (jquery 1.3.2 and jquery ui 1.7.3)

sagannotcarl’s picture

I had the same issue updating from 6.x-2.5 to 6.x-2.6 (exact same as attachment in #1).

Resaving the date popup settings page as suggested in #2 fixed it for me too.

Thanks kento!

gtaylor’s picture

re-saving the date popup as suggested in #2 brought the month back. But for me the positioning of the popup made it completely inoperable. It was transparent and trying to select anything in the date popup seemed to get confused with actions on the main page. I had to turn off the date popup altogether.

My assumption is that we now have a style sheet issue and that's what we'll have to chase down next.

arlinsandbulte’s picture

@gtaylor:
With date popup enabled, go to admin/settings/date_popup and try changing the "Datepicker css:" option.

jaydub’s picture

ludo.r’s picture

It is unfortunatley not a css problem, as the select fileds arent in the source code.

acouch’s picture

Title: Date Popup missing year field » date_popup_css_file variable not set during update
Category: support » bug
Status: Active » Needs review
StatusFileSize
new966 bytes

The problem is that the 'date_popup_css_file' variable doesn't get added until the 'date_popup_settings' form is saved.

I've added a patch that sets this variable during the update. It takes the version checking from 'date_popup_css_options' and assumes the default which is better than checking around to figure out why the popup looks broken. The other thing to do would be to add in the documentation or release notes.

z3cka’s picture

#2 fixed it for me. Will test patch from #9 on next installment of date feature on my next feature.

LSU_JBob’s picture

#2 fixed it for me

d.cox’s picture

#2 worked for me.

karens’s picture

Status: Needs review » Fixed

Looks good, I added the update.

Status: Fixed » Closed (fixed)

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

dwigglesworth’s picture

'Save Configuration' comment #2 fixed it for me - thanks.

aquariumtap’s picture

I don't have time to work on the issue further, but #2 did not work for me, and I'm using jQuery Library 1.6. I added some CSS to manually move the month and year fields, which isn't a proper fix but it's enough to move me forward.

.ui-datepicker-month {
  left: 25px;
}
.ui-datepicker-year {
  left: 90px;
}
dale42’s picture

I am also experiencing the year selector positioned over the month selector with the following:
Modules:
- Date 6.x-2.7
- jQuery UI 6.x-1.5
- jQuery Update 6.x-2.0-alpha1
Settings:
- Datepicker CSS: Date popup default
- Timepicker: Use default jquery time picker

Changing Datapicker CSS to "jQuery UI default" produces a picker with all elements visible but still not correctly laid out.

The CSS in #16 with "Date popup default" CSS selected works around the problem.