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) »
  • Civimember roles sync error
Pages: [1]

Author Topic: Civimember roles sync error  (Read 441 times)

nsjski

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.6.17
  • PHP version: 5.5.13
Civimember roles sync error
April 27, 2014, 10:43:55 am

Hi there,

I just set up member association rules and clicked the manual sync button, but the drupal accounts were not updated.  My site log shows a screed of error messages

Unable to sync role member

and

Undefined offset: 6 in _civicrm_member_roles_sync() (line 559 of sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module).

Line 559 of the above is
if (is_array($memberroles[$membership['membership_type_id']])) {

Any ideas?   

Thank you.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Civimember roles sync error
April 27, 2014, 12:47:06 pm
Do you have a membership type with an ID of 6?  Is it enabled?

Is it possible you changed your membership type settings after you set up the role sync, and are trying to sync a membership type to a role that doesn't exist or vice versa?
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

nsjski

  • I’m new here
  • *
  • Posts: 22
  • Karma: 1
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.28
  • MySQL version: 5.6.17
  • PHP version: 5.5.13
Re: Civimember roles sync error
April 27, 2014, 04:36:52 pm
We do have a membership type 6, and it is enabled.   However I did not make an association rule for it. 

So I added a rule for membership type 6 and tried the manual sync again.  This looks slightly better but still does not give the drupal users the roles that they should have, and in the site log page there are many reports of

Unable to sync role member

In the error log details the type is civicrm_group_roles, location & referrer are the manual sync page and message is the same unable to sync role member.

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

This forum was archived on 2017-11-26.