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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • error rermoving contact from group
Pages: [1]

Author Topic: error rermoving contact from group  (Read 1180 times)

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
error rermoving contact from group
December 29, 2011, 05:15:41 pm
Removing a contact from a group creates a white screen with the error
Code: [Select]
Fatal error: Call to undefined function civicrm_api3_error() in /home/public_html/drupal-7/sites/all/modules/civicrm/drupal/modules/civicrm_group_roles/civicrm_group_roles.module on line 289
I heard it a few times, CiviCRM does not maintain civicrm integrated drupal modules. Maybe somebody knows the way to a solution. 


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: error rermoving contact from group
December 30, 2011, 12:56:37 pm
Try this patch:


Index: drupal/modules/civicrm_group_roles/civicrm_group_roles.module
===================================================================
--- drupal/modules/civicrm_group_roles/civicrm_group_roles.module   (revision 38131)
+++ drupal/modules/civicrm_group_roles/civicrm_group_roles.module   (working copy)
@@ -286,7 +286,7 @@
   $params = array( 'version'=> 3, 'contact_id' => $contact_id );
   $result = civicrm_api('group_contact', 'get', $params);
   
-  if ( civicrm_api3_error($result ) ) {
+  if ( civicrm_error($result ) ) {
       return true;
   }
   else {

HTh

Kurund
Found this reply helpful? Support CiviCRM

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
Re: error rermoving contact from group
December 30, 2011, 03:20:35 pm
Tested: removing contact from a group goes without errors.

Thanks!
 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • error rermoving contact from group

This forum was archived on 2017-11-26.