the date.module 4.7.0 (24-08-2006) conflicts with view.module 4.7.0 (and with view.m CVS version too) ( (both activated on a fresh drupal 4.7.3 installation). If the date.module is activated the view settings page results in a blank screen. Everithing's ok if I deactivate the date module.

Comments

robomalo’s picture

I too am having this problem. Just letting you know it's not just you.

robomalo’s picture

Title: Date.module incompatible with views 4.7.0 » Date.module incompatible with views 4.7.0

Seems to work if you change _content_fields() to content_fields() on line 514 of date.module and line 95 of date.install. Don't take my word for it though. I probably destroyed my site somehow :)

dodorama’s picture

I applied the changes you proposed and view settings page is OK now. But what I can't see anymore is date:month, date:day etc. filters when setting up a view. I don't know if there's a connection or there's something wrong on my installation. Is everything ok for you?

RayZ’s picture

Views has not been branched for 4.7. I think it's probably best to use the CVS version.

KarenS’s picture

The date module version must match the cck version (the views version is irrelevant to this issue). I just branched a 4.7 version of the date module which needs the 4.7 version of cck to work (both use _content_fields()). I am in the process of updating the cvs version of the date module to match the cvs version of cck, which is in the process of being updated to work with drupal HEAD. Your current options are:

1) Use the 4.7 version of cck and the 4.7 version of the date module, along with the 4.7 version of Drupal. This grouping should all be working correctly.

2) Use the cvs version of cck and the cvs version of the date module wth the cvs version of Drupal. This grouping is broken right now. Neither cck nor the date module have caught up to drupal HEAD, so you'll have to wait for that to happen. I posted a message on the date module project page warning that the cvs version of date is in limbo until the changes all get made. I'm working on the changes now.

Sorry for the confusion, but there wasn't really any smooth way to accomplish this.

KarenS’s picture

Status: Active » Fixed

New info, turns out the content_fields() function got changed in cck version 4.7 recently so I had to change everything back again. Now both the cvs and 4.7 versions of the date module use that function name.

robomalo’s picture

Status: Fixed » Active

First off, let me say I appreciate the time and work you put into these modules.

At the time of my error I had 4.7 versions of everything installed, but it still gave me the following error message "Fatal error: Call to undefined function: _content_fields() in /webdocs/public_html/modules/contributed/date/date.module on line 514."

I just downloaded the modules again to make sure. And yes, the same error is happening. Any ideas?

Thanks!

KarenS’s picture

Status: Active » Fixed

You'll need to update again, the version I just committed does not use _content_views() any more. You'll have to get it on the cvs repository, the packaged download will still have the old version until whenever it updates (tomorrow??).

For several months there was a difference in the function name between the cvs and 4.7 versions of cck, but sometime in the last week or two they were brought into line with each other. That makes sense, of course, but I didn't realize it had been done.

Anonymous’s picture

Status: Fixed » Closed (fixed)