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 Profiles (Moderator: Dave Greenberg) »
  • User's group is removed by API
Pages: [1]

Author Topic: User's group is removed by API  (Read 1212 times)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
User's group is removed by API
January 20, 2011, 12:18:59 am
I add users to CiviCRM via Profile, and these users are assigned a group automatically.

After the users are added and upon inspection of its Groups, the status is listed "Removed (by API)". Please see screen dump.

What would trigger this removal?

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: User's group is removed by API
January 20, 2011, 04:00:03 am
Do you allow user to unsubscribe from group?

Kurund
Found this reply helpful? Support CiviCRM

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: User's group is removed by API
January 20, 2011, 04:07:04 am
Quote from: Kurund Jalmi on January 20, 2011, 04:00:03 am
Do you allow user to unsubscribe from group?

Kurund

Hi Kurund

There is only me using the application, for testing purpose.

I cannot find "unsubscribe" option in Drupal's Permissions page.

Any idea what could trigger the group delete by API?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: User's group is removed by API
January 20, 2011, 06:31:16 am
Can you check if the field 'is active' is switched on for the group?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: User's group is removed by API
January 20, 2011, 07:11:18 am
Quote from: Erik Hommel on January 20, 2011, 06:31:16 am
Can you check if the field 'is active' is switched on for the group?

I'm totally lost. The group in CiviCRM is not disabled, and I searched through all areas within the Group Settings page, there is no "is active" button.

"Access Control" and "Mailing List" are both checked.

In Drupal roles, there are no buttons to choose from, just "Association Rules"

Please advise more.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: User's group is removed by API
January 20, 2011, 07:22:30 am
There is no 'is_active' button on the screen, but there is an 'is_active' field in the database for the table civicrm_group. But on second thoughts, I believe there is a problem somewhere in the import so that records are added to the table civicrm_group_contact, but not with the complete data picture. So the contacts are added as 'deleted by API'. Are you able to check this in the import script?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: User's group is removed by API
January 20, 2011, 07:26:09 am
Quote from: Erik Hommel on January 20, 2011, 07:22:30 am
There is no 'is_active' button on the screen, but there is an 'is_active' field in the database for the table civicrm_group. But on second thoughts, I believe there is a problem somewhere in the import so that records are added to the table civicrm_group_contact, but not with the complete data picture. So the contacts are added as 'deleted by API'. Are you able to check this in the import script?

Yes I can check, but I don't know how.

Appreciate your further instructions.

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: User's group is removed by API
January 20, 2011, 07:40:21 am
FYI, the civicrm_group_contact table has the following fields in 3.2.5

id
group_id
contact_id
status
location_id
email_id

The last contact_id has only 1 row, which has status = "Removed". There is not a corresponding "Added" above it.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: User's group is removed by API
January 20, 2011, 07:48:51 am
Yep, that is what I was referring to, something in the import script incorrectly adds the status 'removed'. I am willing to have a go at checking this, but it will not be before tomorrow morning....
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

charleslcso

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 0
  • CiviCRM version: 3.2.5
  • CMS version: Drupal 6.19
  • MySQL version: 5.1.50
  • PHP version: 5.3.2
Re: User's group is removed by API
January 20, 2011, 03:42:50 pm
Quote from: Erik Hommel on January 20, 2011, 07:48:51 am
Yep, that is what I was referring to, something in the import script incorrectly adds the status 'removed'. I am willing to have a go at checking this, but it will not be before tomorrow morning....

Much appreciated!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • User's group is removed by API

This forum was archived on 2017-11-26.