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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • D7 civiCMS 4.0, views related error message
Pages: [1]

Author Topic: D7 civiCMS 4.0, views related error message  (Read 847 times)

martinyde

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3.3
D7 civiCMS 4.0, views related error message
May 18, 2011, 01:58:33 am
Hello

I have a fresh install of civiCRM 4.0 , d7.
I have on top of this installed ctools and views and i'm now trying to get the views integration working.
It all seems to be working, but i get the following errormessage when working with views.

    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5897 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5901 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5904 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5897 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5901 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5904 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5897 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5901 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5904 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5897 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5901 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5904 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5897 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5901 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5904 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5897 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5901 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5904 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5897 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5901 af /modules/views/civicrm.views.inc).
    Notice: Undefined index: type i civicrm_views_add_fields() (linje 5904 af /modules/views/civicrm.views.inc).

I tried following: http://forum.civicrm.org/index.php/topic,19793.0.html -> into -> http://forum.civicrm.org/index.php/topic,4712.0.html deleting the Config.IDS.ini file with no luck.

The documentation mentions that views2, Drupal 6 has to use database prefixes for getting views working. Is this needed for D7 as well?
I should mention that i have access to the civiCRM views, and though it's not tested fully it seems to be working. The errors however remain.

/Martin

IsaacMars

  • Guest
Re: D7 civiCMS 4.0, views related error message
May 22, 2011, 06:38:39 am
I just added the Views module and get the exact same error set.  I'm using 4.01.

Haven't tried yet and not sure if it applies to V3 in D7 and Civi 4.0 but maybe http://wiki.civicrm.org/confluence/display/CRMDOC40/Views2+Integration+Module
is worth a try?

That, or this is another "teething" issue of Civi 4.0 coming of age. 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: D7 civiCMS 4.0, views related error message
May 22, 2011, 09:02:04 am

this will be fixed for the next release. u can get the patch here:

https://fisheye2.atlassian.com/changelog/CiviCRM?cs=34385 (later today)

Drupal 6 did not emit notices by default, Drupal 7 does. hence we see these messages. Civi is not NOTICE compliant as yet. In future would be great if you can take the time and investigate and submit a patch to help fix these "teething" issues as Civi 4.0 comes of age

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • D7 civiCMS 4.0, views related error message

This forum was archived on 2017-11-26.