I just updated to Calendar 7.x-3.4 which makes many changes (for the better I am sure) and removes some old classes and files (see git output below).
My site also uses CiviCRM and the code uses an old class that was removed (see grep output below): calendar_plugin_row_node
The error is causing a white screen on the site. Here is the error line from the error.log:
[Mon May 21 13:52:42 2012] [error] [client 127.0.0.1] PHP Fatal error: Class 'calendar_plugin_row_node' not found in /var/www/my-domain-name/htdocs/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc on line 25
Link to calendar_plugin_row_civicrm.inc
----------------------------------------
grep output:
grep -r calendar_plugin_row_node .
./sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc:class calendar_plugin_row_civicrm extends calendar_plugin_row_node {
./sites/all/modules/calendar/includes/calendar_plugin_style.inc: return $this->row_plugin instanceof calendar_plugin_row || $this->row_plugin instanceof calendar_plugin_row_node;
./sites/all/modules/calendar/includes/calendar.views.inc: 'handler' => 'calendar_plugin_row_node',
----------------------------------------
Git output:
# modified: sites/all/modules/calendar/CHANGELOG.txt
# modified: sites/all/modules/calendar/calendar.info
# modified: sites/all/modules/calendar/calendar.module
# deleted: sites/all/modules/calendar/calendar_ical/calendar-row-ical-node.tpl.php
# deleted: sites/all/modules/calendar/calendar_ical/calendar-style-ical.tpl.php
# deleted: sites/all/modules/calendar/calendar_ical/calendar_ical.info
# deleted: sites/all/modules/calendar/calendar_ical/calendar_ical.install
# deleted: sites/all/modules/calendar/calendar_ical/calendar_ical.module
# deleted: sites/all/modules/calendar/calendar_ical/calendar_plugin_row_ical_node.inc
# deleted: sites/all/modules/calendar/calendar_ical/calendar_plugin_style_ical.inc
# deleted: sites/all/modules/calendar/calendar_ical/theme.inc
# modified: sites/all/modules/calendar/includes/calendar.views_template.inc
# modified: sites/all/modules/calendar/includes/calendar_plugin_row.inc
# deleted: sites/all/modules/calendar/includes/calendar_plugin_row_node.inc
# modified: sites/all/modules/calendar/includes/calendar_plugin_style.inc
# deleted: sites/all/modules/calendar/theme/calendar-row-node.tpl.php
Comments
Comment #1
karens commentedI added a warning a couple releases ago that that class was going away and should not be used. CivicCRM should be using the replacement class, the generic row class that works with all types of entities, not that one that only worked with nodes.
The release notes and project page have had a warning for several releases about this.
The class still exists in 7.x-3.3 if you want to roll back. Which is not the solution I recommend. I recommend CivicCRM update their code.
Comment #2
jdieter commentedI rolled back to 7.x.3.3 and still get this error
(oops - after clearing the caches 3.3 did work. ok. )
Why would you remove a class anyway?
Comment #3
sonicthoughts commented+1 on this bug
Comment #4
sonicthoughts commentedI have not found a resolution to this. I have seen some people on CiviCRM forums mention it and their solution seems to be using an alternative module. I'd like to use calendar but need a workaround if anyone has one. thanks. see discussion: http://forum.civicrm.org/index.php?topic=8911.30
Comment #5
colemanw commentedHi, I have pushed a fix for http://issues.civicrm.org/jira/browse/CRM-10634 into 4.2. Since that release is imminent, it would be great to get your feedback on it.
Basically if you enable the civi event calendar view... it should work. (clear your views cache first after updating civi 4.2 from svn)
Comment #5.0
colemanw commentededit link to file