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) »
  • CiviCRM Drupal integration
Pages: [1]

Author Topic: CiviCRM Drupal integration  (Read 2641 times)

Matthias de MAUROY - CYIM

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 4
  • Working at CYIM
    • CYIM
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 5.1.66-community-log
  • PHP version: 5.3
CiviCRM Drupal integration
July 26, 2013, 01:50:39 am
Hi everybody !

I'm having troubles integrating CiviCRM to Drupal.

Here's what i've got : Drupal module CiviCRM Rules Integration, Drupal Module CiviCRM Entities and even Drupal module Webform CiviCRM Integration.

What's more i've added the code given by CiviCRM for integrating CiviCRM to Drupal Views. But whatever i'm trying to do I can't get Civi tables in my View.

It work's perfectly fine on my local but on the dev environment it doesn't.

Could it be because of the params given here "$databases['default']['default']['prefix']"

Thank's !
Matthias de MAUROY
Analyste Web Developpeur
BU WEB
Tél. : +33 (0)2 99 22 83 40
Fax : +33 (0)2 99 22 83 41
Mail : m.mauroy@cyim.com
CYIM
31, rue de la Frébardière
35135 CHANTEPIE
FRANCE

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM Drupal integration
July 26, 2013, 05:00:55 am
Yes, it sounds like the issue is the $databases code. Did you redo the code given by CiviCRM for integrating CiviCRM to Drupal Views on your dev install? The code is probably different than your local site.
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.

kreynen

  • I post occasionally
  • **
  • Posts: 105
  • Karma: 8
Re: CiviCRM Drupal integration
July 26, 2013, 05:14:03 am
It doesn't really sound like you are having trouble w/ the integration, but with replicating your local integration in a different environment.  The fact that you are using Rules, Webform, and (unsupported, still experimental?) Entity integration is unnecessarily complicating a failure at a much more basic level.

The array that is output from Administer > System Settings > CMS Integration that is added to Drupal's settings.php only needs to be used when the Drupal tables and CiviCRM tables are in separate database.  That requires the user being used to access the Drupal database ALSO be able to access the CiviCRM database.

It's hard to help without more details about what you've done, but since this was working on in your local environment, I'm guessing the issues is either that the database names in your dev environment are different so the Drupal settings.php needs to be updated w/ a new export from Administer > System Settings > CMS Integration OR the Drupal user doesn't have access to the CiviCRM database in the dev environment.

If you can't figure out what needs to be changed, start troubleshooting this by configuring a clean Drupal/CiviCRM integration on you dev environment and following the steps in the documentation.  Without any information about that environment, we have to assume that it might not support sharing permissions between different CiviCRM and Drupal databases and you may need to consider changing your local dev environment.  I know Pantheon requires a single database with both the Drupal and CiviCRM tables.

Hope this helps!

Matthias de MAUROY - CYIM

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 4
  • Working at CYIM
    • CYIM
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 5.1.66-community-log
  • PHP version: 5.3
Re: CiviCRM Drupal integration
July 26, 2013, 05:26:31 am
Thank's guys !

While waiting for answers I've found that the real problem was me, not CiviCRM nor Drupal...

When creating the view instead of basing it on CiviCRM memberships I based it on Drupal Nodes so... everything's ok !

Thank's a lot !

See ya
Matthias de MAUROY
Analyste Web Developpeur
BU WEB
Tél. : +33 (0)2 99 22 83 40
Fax : +33 (0)2 99 22 83 41
Mail : m.mauroy@cyim.com
CYIM
31, rue de la Frébardière
35135 CHANTEPIE
FRANCE

Matthias de MAUROY - CYIM

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 4
  • Working at CYIM
    • CYIM
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 5.1.66-community-log
  • PHP version: 5.3
Re: CiviCRM Drupal integration
July 29, 2013, 02:42:08 am
Hi everyone,

I'm having another issue... when trying to display my View, drupal show me this nice message :

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'prefix-XX.civicrm_membership' doesn't exist.

prefix-XX being in fact the Drupal prefix and not the CiviCRM prefix.

The problem is that I can't understand why, even having settings.php filled with CiviCRM tables integration, Drupal can't found my CiviCRM tables.

By the way, I checked my $databases and the prefix is correctly inserted into it.
Matthias de MAUROY
Analyste Web Developpeur
BU WEB
Tél. : +33 (0)2 99 22 83 40
Fax : +33 (0)2 99 22 83 41
Mail : m.mauroy@cyim.com
CYIM
31, rue de la Frébardière
35135 CHANTEPIE
FRANCE

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviCRM Drupal integration
July 29, 2013, 04:09:09 am
Hi,

Do you have drupal and civi in a different database? (prefix for what I remember is something different, it's to change the name of the tables when you put several drupals in the same db)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Matthias de MAUROY - CYIM

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 4
  • Working at CYIM
    • CYIM
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7
  • MySQL version: 5.1.66-community-log
  • PHP version: 5.3
Re: CiviCRM Drupal integration
July 29, 2013, 07:28:30 am
Everything's ok now !

My problem wasn't CiviCRM integration but the PHP filter in my Drupal View.

Since my database is in dev environment, it's kind of messed up... my incremential ids were broken.

After restoring them everything went fine !

Thank's a lot guys !!
Matthias de MAUROY
Analyste Web Developpeur
BU WEB
Tél. : +33 (0)2 99 22 83 40
Fax : +33 (0)2 99 22 83 41
Mail : m.mauroy@cyim.com
CYIM
31, rue de la Frébardière
35135 CHANTEPIE
FRANCE

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

This forum was archived on 2017-11-26.