I recently upgraded from Date 5.x-1.8 to 5.x-2.6.

I was using date fields with the jsCalendar popup from the Javascript Tools module.

After I upgraded, all of my date fields disappeared from my node forms and from my node displays. In admin/content/types/contenttype/fields, the field is no longer listed either.

It seems like the date_js widget is no longer supported?

Is there any way I can switch everything to date_popup without losing all my data?

Comments

karens’s picture

Your data is not lost, you just need to edit your date fields and give them new widgets.

Be sure to run update.php which should swap those values out for you. If you have already done that, also empty cache_content to be sure bad values aren't stuck in your cache and try to get to the screen where you can see the Manage fields tab. If you get to that, edit each date field and just re-save it. If you can't get to the manage fields even after that, let me know and I'll walk you through fixing it in the database.

davegan’s picture

Fixed the problem by manually editing every field with widget_type of 'date_js' to be 'date_popup' in node_field_instance in the db, and clearing cache.

davegan’s picture

Hi Karen, I had run update.php and emptied cache but they still didn't show up in the Manage fields tab. I had to manually update them in the db as I've documented above.

davegan’s picture

Oops, that doesn't quite finish it - you must also go to the "Display fields" tab for each content type that the field is on and click submit. This seems to clean up all the data.

in summary:

1. Change all instances of "date_js" to "date_popup" in node_field_instance.
2. Visit the "Display fields" tab for each content type you have a date field for and click "submit"
3. Clear cache.

And that should do it.

karens’s picture

Status: Active » Fixed

Cleaning up the issue queue, this got answered.

Status: Fixed » Closed (fixed)

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