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) »
  • Civi member roles not syncing
Pages: [1]

Author Topic: Civi member roles not syncing  (Read 937 times)

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
Civi member roles not syncing
July 15, 2012, 06:34:04 pm
We are using D6 and just upgraded to 4.1.5  but are now finding that no members are not being synced to the appropriate drupal roles.

Running the syn manually lead to a white screen and an error in the logs  cannot find function  civicrm_contact_memberships_get in line 504 of civicrm_member_roles.module

The code has in the line before   

Quote
require_once 'api/v2/MembershipContact.php';
  (the function is in Membership.php not MembershipContact.php)
while the line in version 4.1.3 had
Quote
civicrm_api_include('membership', FALSE, 2);

adding that line  or using Membership.php in the require_once api call fixes the white screen error, but leads to an unrecoverable error message (still trying to find anything useful in the reports)  and no synchronization.  (this seems related to the issue reported about civigroups not syncing with Drupal roles) CRM-10525 - If user belongs to group sync to Drupal role, non-recoverable error on login or when adding to a group

Any help in debugging welcome !!!




Merlise Clyde

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Civi member roles not syncing
July 21, 2012, 01:00:57 pm
Hi mclyde
I'm seeing what looks like a closely related issue on a D6 site that I've just upgraded to 4.1.5. What I'm seeing is a fatal error when a new user tries to create a user account on the site:

Fatal error: Call to undefined function civicrm_contact_memberships_get() in /home/html/example.com/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module on line 504

An immediate option for us would be to downgrade. Can you let me know which version you were previously using - presumably with successful and error-free member/role synching?

I'm not a developer, but I thought CiviCRM had moved on to API v3 some while ago so I'm surprised that this module appears to still be referencing v2. Maybe the development effort on this module has been focussed on D7, leaving D6 support somewhat orphaned?
Graham Mitchell
http://mc3.coop

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Civi member roles not syncing
July 21, 2012, 01:05:30 pm
Just come across this: http://issues.civicrm.org/jira/browse/CRM-10541

which may help.
Graham Mitchell
http://mc3.coop

CherylT

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.95
  • PHP version: 5.2.17
Re: Civi member roles not syncing
July 25, 2012, 05:17:50 pm
I am also having this problem after upgrading from 3.x to 4.1.5: members not being synced to the appropriate drupal roles. I applied the patch from here: http://issues.civicrm.org/jira/browse/CRM-10541 , which eliminated the Fatal error, but syncing is still not working. I'm not a programmer so not even sure how to troubleshoot this issue.

Any help would be greatly appreciated!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Civi member roles not syncing

This forum was archived on 2017-11-26.