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

Author Topic: Drupal Views Integration  (Read 7030 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal Views Integration
March 06, 2013, 08:34:24 am
What is your version of CiviCRM and Views?
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Drupal Views Integration
March 06, 2013, 09:16:53 am
Hi Hershel,

Thanks for responding, especially so quickly!

Civi 4.2.7
D7.20
Views 7.x -3.5

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal Views Integration
March 06, 2013, 10:15:10 am
If Views is enabled then you should see the array on civicrm/admin/setting/uf?reset=1

Can you clear your CiviCRM template cache and flush all Drupal caches and try again?
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Drupal Views Integration
March 06, 2013, 10:24:36 am
Hi Hershel,

I tried that twice and still the same result.

Thanks,
Michael

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal Views Integration
March 06, 2013, 10:34:02 am
I do not know. You could try upgrading to 4.2.8 and if it still fails, create a new thread and post the full details there.
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Drupal Views Integration
March 06, 2013, 10:54:10 am
Thank you Hershel, I'll try that and post the results here.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Drupal Views Integration
March 06, 2013, 12:46:25 pm
Hi Hershel,

Tried to do that (and followed all instructions carefully) but now have a new issue that needs to be resolved before moving on, maybe I should create a new topic?

We backed everything up, edit the civicrm settings file and uploaded the new version but when we try to fun the upgrade script we get this error:

"Sorry but we are not able to provide this at the moment.
Your database has already been upgraded to CiviCRM 4.2.7
Return to home page."

However, that's the version we are upgrading from, not to. So we are stuck at that point. I have a page redirection module installed that sends the user to the civicrm dashboard as their homepage after login. I'll try switching that module off and try again then update the results here.

UPDATE:  After upgrading to 4.2.8 and deleting all of the cached files in the template_C directory and then running the script file:

civicrm/admin/setting/uf?reset=1

 that should show the array I still get no array data displayed.
« Last Edit: March 07, 2013, 01:09:15 pm by Michael »

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Drupal Views Integration
March 06, 2013, 02:34:09 pm
I did create a new thread regarding the inability to get the upgrade script to run as per Hershel's suggestion. (Thanks, Hershel!)

I deactivated the Front Page Redirection module but the problem remains, no difference at all. So, the problem remains the same ... I get the "Settings - Drupal Integration" page but nothing else, no php array.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Drupal Views Integration
March 07, 2013, 01:11:09 pm
UPDATE:  After upgrading to 4.2.8 and deleting all of the cached files in the template_C directory and then running the script file:

civicrm/admin/setting/uf?reset=1

 that should show the array I still get no array data displayed.


PS ... I have Views enabled and also Views PHP is installed and enabled.
« Last Edit: March 08, 2013, 09:08:20 am by Michael »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal Views Integration
March 08, 2013, 04:09:45 am
Something is odd. I would suggest you try making a fresh install somewhere else (like a subdomain) as a test and just install CiviCRM and then Views and then see if that page works.
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.

Michael

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 2
  • Isn't this just terrific?
  • CiviCRM version: 4.4.0
  • CMS version: Drupal 7.23
  • MySQL version: 5.3.19
  • PHP version: 5.5.30
Re: Drupal Views Integration
March 08, 2013, 09:17:47 am
I don't know if this is the equivalent of your suggestion Hershel, but rather than doing a separate installation I used the sandbox instead on the assumption it would be running the latest versions with this URL:

http://sandbox.drupal.civicrm.org/civicrm/admin/setting/uf?reset=1

... and there is no visible array information there, either. Does that mean there's either a change in CiviCRM so this is normal (now) or could it possibly be a bug, do you think? Or is my testing method flawed? 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal Views Integration
March 09, 2013, 10:27:23 am
That site doesn't have Views installed AFAIK and I'm not sure if that array appears without Views enabled.
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.

ewlyn

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: CiviCRM Stater Kit 7.x-2.8-rc2
  • CMS version: Drupal 7.2
  • MySQL version: 5.5.30-log
  • PHP version: 5.3.22
Re: Drupal Views Integration
March 30, 2013, 08:48:47 pm
Drupal 7.2
CiviCRM Starter Kit (civicrm_starterkit-7.x-2.8-rc2)
Database system version - 5.5.30-log
PHP - 5.3.22
Views - 7.x-3.6

I'm experiencing a problem which I believe is the result of having one MySQL for Drupal and one MySQL for CiviRM.  For whatever reason which I didn't notice initially, the Drupal db has a prefix of dr_ before every table while the CiviCRM one does not.

I've followed the instructions found here to the letter: wiki.civicrm.org/confluence/display/CRMDOC40/Views3+Integration

I get the whole long list of arrays to add to the settings.php file. When I add them I get this error:

Error
The website encountered an unexpected error. Please try again later.
Error message
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ewlyncom_jvmf.semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] => variable_init ) in lock_may_be_available() (line 167 of /home7/ewlyncom/public_html/working/jvmf/includes/lock.inc).
Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ewlyncom_jvmf.semaphore' doesn't exist: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 19849718265157b043753c01.47273538 ) in lock_release_all() (line 269 of /home7/ewlyncom/public_html/working/jvmf/includes/lock.inc).


When I add the suggested 'default' => '', to the array, I get this:

Error
The website encountered an unexpected error. Please try again later.
Error message
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ewlyncom_jvmf.semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] => variable_init ) in lock_may_be_available() (line 167 of /home7/ewlyncom/public_html/working/jvmf/includes/lock.inc).
Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'ewlyncom_jvmf.semaphore' doesn't exist: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 2686623085157af00475238.53983167 ) in lock_release_all() (line 269 of /home7/ewlyncom/public_html/working/jvmf/includes/lock.inc).


Without anything added to my settings.php file, I get this error in views:

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

I am officially at a lost.  I managed to get it to acknowledge the second database for a while - I can't even remember how I did it now and unfortunately did not think to keep a copy of it - with the settings.php file enough to change that error to read the name of the CiviCRM database, but couldn't figure out how to get it to understand that there is not dr_ before anything in it. I put in the prefix as being '' instead of 'dr_' but it didn't seem to do anything. I think I simply have my settings.php file wrong, but don't know enough about it to configure it correctly.

Basically, I am at a loss and would appreciate any help anyone can offer.

Thank you so much!

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: Drupal Views Integration
March 30, 2013, 09:40:41 pm

what happens if u change

default => ''

to something like

default => 'dr_'

or some variation of the above (please check and read drupal docs for exact syntax for prefixed drupal tables)

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

ewlyn

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: CiviCRM Stater Kit 7.x-2.8-rc2
  • CMS version: Drupal 7.2
  • MySQL version: 5.5.30-log
  • PHP version: 5.3.22
Re: Drupal Views Integration
March 30, 2013, 09:58:04 pm
Why didn't I think of that?  Lobo, that fixed it!  It's always the most obvious thing that one overlooks, right?  I can't believe I didn't try that.

Thank you so, so much!

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal Views Integration

This forum was archived on 2017-11-26.