I'm using drupal 7 with CiviCRM 4.4.6.
I'm using CiviMember Roles Sync with below Association Rules:
Rule ID: 3
"CiviMember Membership Type" --> "Drupal Role": Member (PG) --> member
Current Codes: New, Current
Expired Codes: Grace, Expired, Pending, Cancelled, Deceased
Rule ID: 4
"CiviMember Membership Type" --> "Drupal Role": Member (KK) --> member
Current Codes: New, Current
Expired Codes: Grace, Expired, Pending, Cancelled, Deceased
In setting "Automatic Synchronization Method", I select "Synchronize whenever a user logs in or logs out."
When user login, error appear as below:
Notice: Undefined index: 4 in _civicrm_member_roles_sync() (line 541 of /home/warrior/www/beta/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module).
Here are drupal user roles available on my site:
ID 3: Web Developer
ID 4: Content & Membership
ID 5: member
ID 6: Membership Admin
I tried to change "Automatic Synchronization Method", but the error still appears.
When I change to "Synchronize when membership is updated", error appears after payment made (membership updated).
When I change to "Synchronize when Drupal cron is ran", error appears when I run cron.
Any idea how to solve this error?