Problem: If a CCK content type is created which includes a date field, it is not possible to create a node of that type because the node creation form does not have a date entry field.
I have set up a second server from scratch specifically to recreate this issue.

Steps to create:

  • Server: Ubuntu 8.04 using php 5.2.4; apache 2.2.8; MySQL 5.0.51a
  • Also tested on: CentOS 5.1 using php 5.1.6; apache 2.2.3; MySQL 5.0.22
  • Install Drupal 6.2
  • Install cck-6.x-1.x (2008-04-12)
  • Install date-HEAD (2008-03-12)
  • Enable CCK: content only
  • Enable Date: Date + DateAPI + Date Timezone
  • Create new content type called Event
  • Add one new field of type: Date (Text Field with strtotime validation)
  • Save Event content type
  • Try and create a new node of type Event -- there will be nowhere to enter the date

I was concerned that this might be a PHP 5.1 / 5.2 issue, so I set up the Ubuntu server with PHP 5.2 but it did not solve the problem.

Comments

andrewfn’s picture

I have done some more testing on this:

  • in an identical setup but with Drupal 5.7 the date field works properly
  • if the date field is created as a Select List or popup, then a field is available to enter dates into, but nothing is ever saved
andrewfn’s picture

I was using HEAD, thinking I was using the latest version, but because of some missing tagging, HEAD is old (March 12)
When I used CVS instead of head, some of my problems started to get resolved. I am going to do some in-depth testing, but my initial findings are that:

  • You need to have views installed, otherwise there is a white screen with:
    Fatal error: Class 'views_handler_argument_date' not found in /var/www/sites/all/modules/date/date/date_views.inc on line 53
  • Avoid the timestamp type--it will give database errors
kriskd’s picture

Sames results here. Where do I grab the CVS version (didn't see it in "View all releases")?

andrewfn’s picture

You have to check it out from CVS using CVS tools.
Karen, it would be a *great* help if you could tag HEAD as 6.x-1.x-dev so that nightly builds get generated!

KarenS’s picture

I can't do anything with HEAD right now, I should be able to rename it, but I can't, so something is wrong with it (as noted in the issue I filed).

I'm going to do a D6 branch shortly (hopefully by the end of the week).

kriskd’s picture

Still not getting a date field in my content type with the beta 6 version.

kriskd’s picture

I'm still not getting a field for the date from the May 10 release of 6.x-1.x-dev. Is anyone else getting it? In my content type I even deleted my date field and re-created it. Still a no show.

KarenS’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

@kriskd - I can't reproduce your problem so do an export of your date field and post it here, and also provide info about your system -- PHP version, MYSQL version, etc.

andrewfn’s picture

Just for the record, I was the one who posted this problem and it went away for me a month ago, once I started using CVS and not the old HEAD build.

kriskd’s picture

I tried to export the date field and got the following error:

Fatal error: Cannot redeclare content_field_default_values() (previously declared in /home/myaccount/mydomain.com/sites/all/modules/cck/includes/content.crud.inc:31) in /home/myaccount/mydomain.com/sites/all/modules/cck/content_crud.inc on line 63

Maybe that will provide a clue to my problem?

PHP Version 5.2 and MySQL 5.

KarenS’s picture

Status: Active » Fixed

I just released a new 6.2-beta2 version for Date, so update to the latest code for Date and also get the latest -dev version of the Views module, which has some date-related changes that are needed for the Date views handling. If you use the Calendar module, get the new 6.2-beta2 version of that as well.

If you still have problems after that, open a new issue marked with the beta2 version so I know it's still a problem there.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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