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 Drupal Modules (Moderator: Donald Lobo) »
  • Can't use contact custom data fields in views2
Pages: [1]

Author Topic: Can't use contact custom data fields in views2  (Read 1130 times)

liz

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
Can't use contact custom data fields in views2
August 16, 2010, 05:01:56 pm
I'm trying to make pages that list of board members, staff, teachers, etc. with presized and positioned pictures based on groups of contacts in civicrm. So I added new custom fields to civicrm contacts for bios and pictures. That works fine. I added a bio and picture to my several records. When I try to use views to construct a page, everything works well until I add the custom fields. Views sees them an lets me select them but then I get the following error message:

    user warning: Table 'drupal_brechtforum.civicrm_value_profile_20' doesn't exist query: SELECT civicrm_contact.id AS id, civicrm_contact.first_name AS civicrm_contact_first_name, civicrm_contact.last_name AS civicrm_contact_last_name, civicrm_value_profile_20.bio_66 AS civicrm_value_profile_20_bio_66 FROM brecht_civicrm.civicrm_contact civicrm_contact LEFT JOIN civicrm_value_profile_20 civicrm_value_profile_20 ON civicrm_contact.id = civicrm_value_profile_20.entity_id WHERE (civicrm_contact.last_name) = ('mestres') LIMIT 0, 10 in /home/members/brechtforum/sites/brechtforum.org/web/sites/default/modules/views/includes/view.inc on line 771.

Is there a way to get this to work?

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Can't use contact custom data fields in views2
August 16, 2010, 10:37:49 pm
I think you are missing db_prefix for new custom data table, you need to once again visit  base_url/civicrm/admin/setting/uf?reset=1 (which will give you all updated db_prefix)  and copy db_prefix in your setting.php (http://wiki.civicrm.org/confluence/display/CRMDOC32/Views2+Integration+Module).

Regards,
Rajan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Can't use contact custom data fields in views2

This forum was archived on 2017-11-26.