Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm trying to create a calendar using the calendar module and the date module, in order to display forthcoming events. I've installed the latest version of Calendar, Date, CCK and Views but when I go to enable the date module I receive the following error:
Fatal error: Class date_views_argument_handler: Cannot inherit from undefined class views_handler_argument_date2 in /home/thegreat/public_html/community/sites/all/modules/date/date/date.views.inc on line 49
Each module is up to date and I can't see what the problem is
Any ideas?
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedBump up to latest -dev versions of Date and Views (and Calendar, if you're using it).
When you're using beta code, 'up to date' means the latest -dev version.
Comment #2
GPirie CreditAttribution: GPirie commentedThanks, but I'm still having problems with this. I uploaded the latest dev version of Date and received the following error:
Fatal error: Class date_api_argument_handler: Cannot inherit from undefined class views_handler_argument_date in /home/thegreat/public_html/community/sites/all/modules/date/date_api.views.inc on line 96
I've since returned to the beta version and after enabling PHP Filter, then Date PHP 4, Date Popup and Date Repeat API are enabled successfully, but date timezone and date will still not work and the following error is received.
Fatal error: Call to undefined function: timezone_identifiers_list() in /home/reachfur/public_html/beyond9to5/sites/all/modules/date/date_timezone/date_timezone.install on line 208
Any ideas?
Comment #3
gvdvenis CreditAttribution: gvdvenis commentedComment #4
KarenS CreditAttribution: KarenS commentedI just released a new 6.2-beta2 version for Date, so update to the latest code for both 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 still have problems after that, open a new issue marked with the beta2 version so I know it's still a problem there.
Comment #5
Fayna CreditAttribution: Fayna commentedJust wanted to confirm that upgrading to the latest -dev version of Views fixes the problem. Thanks!
Comment #6
GPirie CreditAttribution: GPirie commentedIt didn't solve it unfortunately, although I now receive a different error
Comment #7
KarenS CreditAttribution: KarenS commentedUnless you give me some kind of clue what error you received there's nothing I can do with this report.
Comment #8
GPirie CreditAttribution: GPirie commentedThe error that is receive is:
Fatal error: Call to undefined function: timezone_identifiers_list() in /home/thegreat/public_html/community/sites/all/modules/date/date_timezone/date_timezone.install on line 213
Comment #9
Fuzzytek CreditAttribution: Fuzzytek commentedSame situation as ExiledICT and Views-6.x-2.0-beta4.tar.gz is installed now (which appears to be a sizeable change from prior releases, went from 241kb to 2698kb.)
Comment #10
KarenS CreditAttribution: KarenS commented#8 That is a completely different error from the one originally reported in this issue, you need to open a new issue for a different error. If you get the message that timezone_identifiers_list is an undefined function, you need the Date PHP4 module. That is a native function in PHP 5.2.
Comment #11
adminfor@inforo.com.ar CreditAttribution: adminfor@inforo.com.ar commentedSeems that you are running PHP 4.x
I've both PHP versions installed in my server, but PHP 4.x is now the default.
So, I've added in the home .htaccess for this Drupal 6.x installation the handler instructions to manage all php as php5 and timezone install went fine
AddHandler application/x-httpd-php5 .php
hope this helps
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.