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) »
  • Drupal and CiviCRM views intergration Issue
Pages: [1]

Author Topic: Drupal and CiviCRM views intergration Issue  (Read 847 times)

emmy

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Drupal and CiviCRM views intergration Issue
July 14, 2014, 05:49:42 am
Hi

I am trying to integrate my Drupal views with Civicrm.

Am using drupal 7 and civicrm version 4.2.0

My Drupal database and civicrm database are separate on the same host

Am getting this error when I try to create views: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxxxxxx.civicrm_event' doesn't exist.

I have added the required code to my settings.php drupal file but still getting the error.

My settings.php code:

$databases = array (
  'default' =>
  array (
    'default' =>
    array (
      'database' => 'drupal7',
      'username' => 'bobby',
      'password' => '******',
      'host' => 'host.com',
      'port' => '3306',
      'driver' => 'mysql',
      'prefix' => '',
    ),
  ),
);

 $databases['civicrm']['default'] = array (
      'database' => 'dru7_civi',
      'username' => 'droopy',
      'password' => '******',
      'host' => 'host.com',
      'port' => '3306',
      'driver' => 'mysql',
      'prefix' => '',
);


$databases['civicrm']['default']['prefix']= array(

  'default'                                 => '',
  'civicrm_acl'                              => '`dru7_civi`.',
  'civicrm_acl_cache'                        => '`dru7_civi`.',
  'civicrm_acl_contact_cache'                => '`dru7_civi`.',
  'civicrm_acl_entity_role'                  => '`dru7_civi`.',


Can anyone please help?

regards
« Last Edit: July 14, 2014, 08:17:40 am by emmy »

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Drupal and CiviCRM views intergration Issue
July 14, 2014, 11:41:46 pm
I assume you have seen this wiki page? http://wiki.civicrm.org/confluence/display/CRMDOC/Views3+Integration
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal and CiviCRM views intergration Issue
July 15, 2014, 03:48:26 am
emmy, you copied the code precisely from the correct page on your CiviCRM install?
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.

emmy

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Drupal and CiviCRM views intergration Issue
July 18, 2014, 08:29:47 am
Hi Hershel,

I am copying the exact code from the civicrm installation.

I have been reading up on the issue from different individuals on the forum and have gone through the required steps a few times now.

Am using different user credentials  for my CiviCRM DB  and my Drupal DB.

In drupal 6 this is pretty easy to setup when you know how.

Any help or advice with this issue would greatly be appreciated

emmy

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Drupal and CiviCRM views intergration Issue
July 23, 2014, 06:07:11 am
Hi guys,

I managed to resolve my issue. By Installing both the Civicrm and the drupal on the same database.

I followed the instructions that Erick Hommle suggested at link: http://wiki.civicrm.org/confluence/display/CRMDOC/Views3+Integration.

I read up on a few other suggestions on the issue by Hershel and I was home free.

Thanks guys until the next time

Cheers

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal and CiviCRM views intergration Issue

This forum was archived on 2017-11-26.