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) »
  • Views2 Integration
Pages: [1]

Author Topic: Views2 Integration  (Read 786 times)

emmy

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Views2 Integration
September 17, 2013, 03:30:38 am
Hi

I am new to civicrm and have encountered a few problems with the integration of civicrm and drupal . Also to make known, am working from a web shared hosting environment.

I have followed all the steps that I have found on a few posts that i came across however am at my wits end at the moment.

Drupal: v6.28
Civicrm: v3.4.8

Civicrm db: db1114980_xxxx_DB
Drupal db: db1114980_xxxx_14

When I try to view civievents through drupal views i have been getting a few warning and with all the modifications I done to the settings.php and civicrm.views.inc files, the current warning is as follows:

user warning: Table 'db1114980_xxxx_DB.civicrm_eventcivicrm_event' doesn't exist query: SELECT civicrm_event.id AS id, civicrm_event.start_date AS civicrm_event_start_date, civicrm_event.title AS civicrm_event_title FROM `db1114980_xxxx_DB`.civicrm_eventcivicrm_event civicrm_event WHERE ((civicrm_event.is_active <> 0) AND (civicrm_event.is_public <> 0)) AND ((DATE_FORMAT(ADDTIME(civicrm_event.start_date, SEC_TO_TIME(3600)), '%Y-%m') <= '2013-09' AND DATE_FORMAT(ADDTIME(civicrm_event.start_date, SEC_TO_TIME(3600)), '%Y-%m') >= '2013-09')) ORDER BY civicrm_event_start_date ASC in /usr/local/pem/vhosts/260664/webspace/httpdocs/fightingwords.co.uk/sites/all/modules/views/includes/view.inc on line 814.

Settings.php file currently being used:

$db_url['default'] = 'mysqli://u1114980_user1:******@mysql1853int.cp.test.com:4406/db1114980_xxxx_14';
$db_url['civicrm'] = 'mysqli://u1114980_user2:******@mysql919int.cp.test.com:4406/db1114980_xxxx_DB';
$db_prefix = array(
  'default'                            =>   '`db1114980_xxxx_14`.',
  'civicrm_acl'                              => '`db1114980_xxxx_DB`.civicrm_acl',
  'civicrm_acl_cache'                        => '`db1114980_xxxx_DB`.civicrm_acl_cache',
  'civicrm_acl_contact_cache'                => '`db1114980_xxxx_DB`.civicrm_acl_contact_cache',
  'civicrm_acl_entity_role'                  => '`db1114980_xxxx_DB`.civicrm_acl_entity_role',
etc......

civicrm.view.inc file:

I added the following key/value pair 'database' => 'civicrm', to all the $data['table_name']['table']['base'] array definitions.

If anyone can advice or help me solve this issue I will be so grateful.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Views2 Integration
September 17, 2013, 03:33:45 am
Did you copy and paste the integration code? Because it's wrong. The right side shouldn't have the table name. The first one should not be:

Code: [Select]
  'civicrm_acl'                              => '`db1114980_xxxx_DB`.civicrm_acl',
rather it should be:

Code: [Select]
  'civicrm_acl'                              => '`db1114980_xxxx_DB`.',
Try fixing all to be like that.
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.

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: Views2 Integration
September 17, 2013, 07:09:36 am

any reason why you are still on 3.4? that version is fairly obsolete at this stage :(

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

emmy

  • I post occasionally
  • **
  • Posts: 37
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Views2 Integration
September 17, 2013, 09:00:06 am
Hi Guys,

Thank you so much that did work brilliantly..., again Hersel thank you.....

Donald am still using the 3.4 version due to the fact that our shared hosting provider has not upgraded mysql to version 5.1 or better... still using version 5.0

Thanks guys
Much appreciate ;D


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

This forum was archived on 2017-11-26.