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) »
  • OG sync problem
Pages: [1]

Author Topic: OG sync problem  (Read 1960 times)

ancientwizard

  • Guest
OG sync problem
December 20, 2008, 12:37:31 am
I successfully enabled civicrm_og_sync.module ...(removing txt from the .info filename)

on activation, the module as advertised made 1 way sync of my OG groups and drupal users to CiviCRM
1) keeping the users and groups correctly associated
2) making two groups (one admin) for each organic group

so far, so good.

next, tried adding a user to an organic group to see if it updates CiviCRM.  No luck. threw error
Code: [Select]
Sorry. A non-recoverable error has occurred.
We experienced an unexpected error. Please file an issue with the backtrace
Return to home page.

next, tried adding a new organic group.  No luck ... threw same error.

next, tried disabling (but not uninstalling) civicrm_og_sync.module and re-enabling
no effect on the above problem.

Am I doing something wrong or having misplaced expectations?
Does the one way sync work for others?  Or is it just sync the first time the module is installed?

Thanks

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: OG sync problem
December 20, 2008, 03:41:30 am
Can you enable Debugging in CiviCRM (Administer CiviCRM >> Global Settings >> Debugging) and paste here backtrace.

Kurund
Found this reply helpful? Support CiviCRM

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: OG sync problem
December 20, 2008, 05:40:46 am

note that we've only started supported the og_sync.module since v2.1.2

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

ancientwizard

  • Guest
Re: OG sync problem
December 20, 2008, 07:00:59 am
Kurund, Thanks ... I will do the backtrace thing shortly.

Lobo ... You've got me curious.  civicrm_og_synch was included in my 2.0.7 distro that I downloaded.  When you say that youve only supported it since 2.1.2, what does this mean?  Just that it was recent?  Or that it was backported to 2.0?  Or that no one has a lot of experience with it?

Any idea if anyone else has used it successfully with 2.0.7 and any 5.x version of drupal?  Or am I breaking new ground here?

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: OG sync problem
December 20, 2008, 07:12:41 am

In our definitition, support means we will do our best to debug and fix issues reported against it.

The code was included in prior releases more for developers as a starting point. We've cleaned up and tested the code in 2.1.2. We'll also start documenting them in more detail over a period of time

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

ancientwizard

  • Guest
Re: OG sync problem
December 20, 2008, 09:25:51 am
Ok, that's really good to understand.

That may mean that I'm totally out of luck.  My understanding is tha 2.1.2 is just for drupal 6.  Pretty sure I have no upgrade path to 6 for quite a while (missing key modules).

Does anyone in the civicrm community ever do backports to previous versions since the earlier version was not an "officially supported" one?

Perhaps most important, what were people doing about this prior to 2.1.2 from a practical workflow perspective.  If contacts  and groups didn't sync, just what was the connection between drupal and civicrm?  Is there a best practice workflow that is necessary?  Like exporting contacts to delimited text files and importing them to civicrm periodically where they would need to be deduped?

I hope I'm not sounding like a whiner or too demanding... I had the sense that people have been using the products together for a while and I would hate to be reinventing the wheel if good workflow practices have already been evolved that makes the products play well together.

Thanks for taking the time in this thread.  I'm imagining that if there are others who've done this successfully, they might chime in too!

ancientwizard

  • Guest
Re: OG sync problem
December 20, 2008, 09:49:33 am
I might add a bit of info here.  It might be a cause of some of the problem or at least useful to someone who has a similar installation.

Before reading that the CiviCRM autoinstaller required the package to be in the sites/all/modules directory I had originally placed it in my sites/groupsalive.com.grhc/modules directory because I had only intended it to be used on the "grhc" site.  To use the autoinstaller, I copied the civicrm directory to the correct location at sites/all/modules  but did NOT delete the original copy.

I have a multisite drupal installation with one codebase and all sites in the same drupal database with seperate prefixed table sets. There are symlinks in the drupal root pointing users to the respective subsites/subfolders. I did not do a multisite install of CiviCRM because I only intended it to be used with one of the drupal sites.  I don't know if this was correct.  The only config change this seemed to require was including the line

Code: [Select]
define( 'CIVICRM_UF_BASEURL'      , 'http://www.groupsalive.com/grhc/' );
in my civicrm.settings.php file.  Everything seemed to work pretty well.

Until this morning.  In an attempt to clean things up, I removed the original copy of civicrm folder from sites/groupsalive.com.grhc/modules.  This prevented me from accessing any civicrm functionality on my site.  Apparently, CiviCRM as activated in drupal was using the copy in that local site location rather than the one in the sites/all/modules location.  This is not surprising in retrospect since drupal looks first in the individual sites modules files.

What is surprising is that when I removed it, deactivated and then reactivated the module ( correctly, I thought) from the only one left (sites/all/module) ... civicrm did not work.

Everything works correctly again when I copy the civicrm folder back to the original location (sites/groupsalive.com.grhc/modules)

I know this is complicated.

Any idea what I am missing?



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: OG sync problem
December 20, 2008, 05:26:26 pm

1. the cannot install in a site modules directory issue is fixed in 2.2

2. Are there any symptoms of CiviCRM not working?

3. Did u modify and fix your civicrm.settings.php file and the db. You might want to follow the steps here:

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

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

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

This forum was archived on 2017-11-26.