CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent Views3 Drupal Calendar Issue
Pages: [1] 2

Author Topic: CiviEvent Views3 Drupal Calendar Issue  (Read 4088 times)

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 07:10:00 am
I get the following error The website encountered an error while retrieving http://webserver/?q=civicrm-events#overlay-context=node/13/delete-items%3Fq%3Dnode/13/delete-items. It may be down for maintenance or configured incorrectly. When I click on the Views link for CiviEvent Views integration.  I have confirmed that I followed the Views 3 integration steps to the T and cleared site cache.  I restarted the server completely just to be sure but to no avail on seeing the Calendar View for CiviEvent items.  Any thoughts on what I am missing?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 07:18:38 am
To follow up just tried to edit the view and I get the following pop-up when entering

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path:
/?q=admin/structure/views/view/civi_events/preview/page/ajax
Status Text: Internal Server Error
Response Text:

Any clues as to the issue?  Is this related to Views Integration? Does the Calendar Views(i.e. Month, Week, Day, Year) need to be set up specifically in a certain way?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 09:22:18 am
Okay that error is due to the auto preview in Views 3. Can anyone else confirm this issue?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 09:39:18 am
Can anyone confirm issues with the Calendar View being deprecated and changed into templates in latest version of module?  Is this possibly the issue I am having with Views and CiviEvent?  If I delete the View how do I go about recreating it properly?  -Thanks.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 10:33:14 am
Here is what I get from CiviEvent View

Notice: Undefined property: calendar_plugin_row_civicrm::$date_argument in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_fields in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Warning: Invalid argument supplied for foreach() in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_argument in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_fields in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Warning: Invalid argument supplied for foreach() in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_argument in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_fields in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Warning: Invalid argument supplied for foreach() in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_argument in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_fields in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Warning: Invalid argument supplied for foreach() in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_argument in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_fields in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Warning: Invalid argument supplied for foreach() in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_argument in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Trying to get property of non-object in calendar_plugin_row_civicrm->render() (line 158 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Notice: Undefined property: calendar_plugin_row_civicrm::$date_fields in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
Warning: Invalid argument supplied for foreach() in calendar_plugin_row_civicrm->render() (line 178 of /var/www/alga_civicrm/sites/all/modules/civicrm/drupal/modules/views/plugins/calendar_plugin_row_civicrm.inc).
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 11:44:18 am
Okay I think that there are issues with Views 3 since the deprecation of Calendar explicitly to being only a Views template.  Can anyone confirm this issue?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 11:50:50 am
I tried removing the View created by default from Views integration and creating a new view based on the template for start-date CiviEvent.  I get page not found every time.  Anyone know what I might be doing wrong?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 01:44:09 pm
Seems that URL Encoding Reference may be an issue here although replacing those is still resulting in not finding the page.

http://www.w3schools.com/tags/ref_urlencode.asp is where I got the references

Here is my address for the View I created from the CiviEvent Template for start-date as a calendar view.

http://webserver/?q=calendar-start-date/month#overlay-context=civicrm/dashboard%3Fq%3Dcivicrm/dashboard

I tried replacing "%3F" with "?" and "%3D" with "=" which results in page still not found.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
February 29, 2012, 01:45:04 pm
I am also getting

Notice: Undefined index: civicrm_relationship in calendar_plugin_row->pre_render() (line 259 of /var/www/alga_civicrm/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined index: controller class in entity_get_controller() (line 7617 of /var/www/alga_civicrm/includes/common.inc).
Notice: Undefined index: civicrm_relationship in calendar_plugin_row->pre_render() (line 259 of /var/www/alga_civicrm/sites/all/modules/calendar/includes/calendar_plugin_row.inc).
Notice: Undefined index: controller class in entity_get_controller() (line 7617 of /var/www/alga_civicrm/includes/common.inc).

At the top of the views page now.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
March 01, 2012, 11:44:10 am
Okay, so I was having a moment of idiocy and was seeing civi_relationship but translating that to civi_event.  Anyone know if there are view templates yet for civi_event base table?
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

Matt N.

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.2.8
  • CMS version: Drupal 7
  • MySQL version: 10.0 (MariaDB)
  • PHP version: 5.4
Re: CiviEvent Views3 Drupal Calendar Issue
March 04, 2012, 04:17:43 pm
I'm having the same problem that there is no View template for any of the civi_event base table fields.

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
March 05, 2012, 08:48:40 am
I have the same issue.  In fact I made the same mistake NASACT did and tried to use a different table to no avail.  The civievent view is missing, and the other views are hard coded to different tables.  I will poke at the code for a bit and see what turns up.

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
March 05, 2012, 10:50:38 am
Thank god you both had issues too. I was beating my head against the wall over this.  I am stuck on the feed-node method with iCal Feed Parser
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Re: CiviEvent Views3 Drupal Calendar Issue
March 05, 2012, 06:47:36 pm
Ok, first step.  I did a clean install of drupal 7.12, views 3.3, date 2.2, calendar 3.0 and civicrm 4.1.1, accepting all of the defaults, so I have an installation with no inherited configuration errors.  The civi_event view still does not appear but the other views templates are there.  That points to a bug rather than a misconfiguration.

Matt N.

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.2.8
  • CMS version: Drupal 7
  • MySQL version: 10.0 (MariaDB)
  • PHP version: 5.4
Re: CiviEvent Views3 Drupal Calendar Issue
March 05, 2012, 07:06:30 pm
Some ideas from when I was debugging:
  • Should the code be implementing the hook for date_views_extra_tables?  IIRC, I saw some references in the code that civi_event should be a base table.  When I tried implementing this, the hook was only being called when I cleared the cache but the Civi additions would not persist so future calls didn't return the base tables I added.  This led me to...
  • I played with the module weights in the `system` table to see if it was a problem of hook ordering but I couldn't find a combination that worked.
  • This comment from the Views 3 API Upgrade docs seemed relevant:
    Quote
    Entity type Key on Base tables

    During the development of the drupal7 version of views the entity type associated with a table got added to $data['name']['table']['base']['entity type']. It should be moved to $data['name']['table']['entity type'].
      If you have the Advanced Help module installed, you can get to it at the path /help/views/api-upgrading on your drupal site.  I'm not sure if there should be a civi_event entity though?

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent Views3 Drupal Calendar Issue

This forum was archived on 2017-11-26.