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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
Pages: 1 [2]

Author Topic: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module  (Read 9422 times)

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 06, 2009, 09:25:51 am
Could I please ask for a bit more help with this?  I'm getting the same error messages.

a) My host only gives me one database, so I can't do the separate database solution. I have my tables prefixed with drupal_ and civicrm_ respectively.

b) I don't really care about a calendar view, but I do want to display civicrm events listings in drupal.  I followed the instructions for integrating drupal's calendar module and civievents (was this overkill?), and the 'upcoming events' block and individual events listings are displaying just fine. I do get that Table 'xxx.drupal_civicrm_event' doesn't exist message on the view admin page though - isn't that a bit odd, since the block works?  Anyway, I want to create an events list page with more detail for all listings, but I get those errors and the page doesn't work. 

I found the above discussion a bit hard to follow, so not sure whether I should be able to make this work or should be giving up.
I tried Herschel's trick going to civicrm/admin/setting/uf?reset=1 but that only allows me to specify the drupal user table.  Is there something more fundamental I need to set for views integration?

I'd appreciate a steer to the relevant docs or some tips please, as I'm struggling to help myself.

Thanks,
Julie

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 07, 2009, 06:17:27 am
Quote from: JulieR on October 06, 2009, 09:25:51 am
I tried Herschel's trick going to civicrm/admin/setting/uf?reset=1 but that only allows me to specify the drupal user table.  Is there something more fundamental I need to set for views integration?

Yes. Please read carefully what I wrote:

Quote
All you have to do for Views integration is visit civicrm/admin/setting/uf?reset=1 on your site and find the View Integration instructions there--you add a bit of code to your settings.php to tell Views about your CiviCRM database and that's it.

The important step is you add a bit of code to your settings.php. You should find the code on civicrm/admin/setting/uf?reset=1 which you must add to settings.php (in /sites/default/)

HTH
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.

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 07, 2009, 02:18:37 pm
Sorry Herschel, I did read carefully what you wrote, and didn't mean to cause offence.  I suspect my config is different somehow.  When I go to that url I get the page

Home › CiviCRM › Administer CiviCRM › Global Settings ›
Settings - Drupal Integration

...which gives me a form to set the drupal version and user table only.  I don't see any instructions or code or anything that sounds like it relates to views.  Could you perhaps describe the page or its title so I know what to look for, rather than giving me a url?

Thanks for helping.
Julie

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 07, 2009, 02:38:52 pm
If you don't have a section called "Views integration settings" then you are probably missing some Drupal modules. You need Views and either Calendar or Date or both (I forget which exactly). Please post a list of your modules if you don't have that "Views integration settings" section on that page.
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.

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 10, 2009, 12:53:20 pm
Thanks, I found this page http://wiki.civicrm.org/confluence/display/CRMDOC/Views2+Integration+Module which gave me the code to add to settings.php - that seems to have solved the problem.

BUT, while trying to delete a particular page out of the civicrm_events view, I accidentally managed to delete the whole view (blush). Can I get an import file somewhere to recreate it?

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: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 10, 2009, 08:11:58 pm

the default view code is in the distribution here: drupal/modules/views/civicrm.views_default.inc

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

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 14, 2009, 04:56:06 am
Thanks lobo.  Could I trouble you for a little more info on what to do with this?  I tried going to the import tab and pasting the content of the .inc file into it, but I wasn't sure whether to include or exclude the <?php tag, or even whether that was the right thing to do.  It clearly wasn't, since I kept getting "Unable to interpret view code", although... that might be fckeditor getting in the way..?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 14, 2009, 05:12:52 am
You must turn off FCKeditor to this import. Try importing the attached code--it's the relevant part from that file Lobo mentioned, AFAIK.
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.

JulieR

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 5
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
October 14, 2009, 06:17:25 am
Thanks herschel, that looks like it would have worked if I still had the calendar module installed, so I think I know what to do now :-)

najoory

  • Guest
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
April 12, 2010, 02:15:41 pm
Help me plz!
civicrm_views enabled and I saw correct calendar on preview page, but path /events not working for me - Page not found. I enable to launch another views like default /calendar but can't get /events. Thanks in advance.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
April 13, 2010, 07:48:33 am
In the Edit View screen, did you create a Page and assign the path 'events'? IIRC that step is necessary.
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.

najoory

  • Guest
Re: HELP! DB errors from my Drupal/CiviCRm instalation & Views Module
April 14, 2010, 02:25:59 pm
Quote from: hershel on April 13, 2010, 07:48:33 am
In the Edit View screen, did you create a Page and assign the path 'events'? IIRC that step is necessary.

Yes I did. This is some bug with menu cache, I can't reproduce it on my live system, only on localhost.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • HELP! DB errors from my Drupal/CiviCRm instalation & Views Module

This forum was archived on 2017-11-26.