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 with Views 3 in D7
Pages: [1]

Author Topic: CiviEvent with Views 3 in D7  (Read 1205 times)

mikeweezer

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
CiviEvent with Views 3 in D7
May 11, 2011, 06:21:49 am
Hello All,

I'm working with CiviEvent in my D7 install.  I would like to add a block for Events from CiviEvent.  I go into Views 3, I am able to specify CiviEvent as the type of information to pull in the query (great!)  When I hit submit, I get this error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'acquia_drupal.civicrm_event' doesn't exist

My civicrm install is in a different db, so this is to be expected.  Is there a way to make it point to civicrm.civicrm_event?

Thanks for your help!

Mike

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviEvent with Views 3 in D7
May 11, 2011, 06:54:42 am
See here http://wiki.civicrm.org/confluence/display/CRMDOC40/Views2+Integration+Module

The second step there is what you need.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

mikeweezer

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: CiviEvent with Views 3 in D7
May 12, 2011, 09:54:00 am
Thanks Hershel -

I'm poking around with the instructions, but Drupal 7 doesn't look like it follows them.  I don't have anything in settings.php with $db_url

I did find $databases and tried the following without luck:
 $databases = array (
  'default' =>
  array (
    'default' =>
    array (
      'database' => 'acquia_drupal',
      'username' => 'drupaluser',
      'password' => '',
      'host' => '127.0.0.1',
      'port' => '33066',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
  'civicrm' =>
  array (
    'civicrm' =>
    array (
      'database' => 'civicrm',
      'username' => 'drupaluser',
      'password' => '',
      'host' => '127.0.0.1',
      'port' => '33066',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
);

Any ideas on what I am missing?   ???


mikeweezer

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: CiviEvent with Views 3 in D7
May 12, 2011, 10:19:22 am
Nevermind - got it!

Had to paste the $databases['default']['default']['prefix']= array(  etc, etc...  found on this page:
http://MYSITE/civicrm/admin/setting/uf?reset=1

just below my $databases = array( etc. in Settings.php

Thanks for your help!   ;D

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviEvent with Views 3 in D7
May 12, 2011, 10:24:07 am
My pleasure. Glad you got it to work.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent with Views 3 in D7

This forum was archived on 2017-11-26.