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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • smart groups not evaluating properly?
Pages: [1]

Author Topic: smart groups not evaluating properly?  (Read 1365 times)

tmcnulty1982

  • Guest
smart groups not evaluating properly?
December 04, 2008, 07:39:24 am
I created a smart group of current members.  It was working fine for awhile.  Now, when I go to Manage Groups and click "Members" on the group in question, I get an empty list.  If I click "Edit Smart Group Search Criteria for <group name>", I see a all the right search criteria and the correct list of contacts.

I've seen this in the past and successfully "fixed" the group by resaving the smart group criteria.  I'm worried that it keeps happening, though.  Is this a bug?  I am leaving the "broken" group in its current state in case it would be helpful for debugging purposes.

I'm using CiviCRM 2.1.2 with Drupal 6.6.

Thanks
Tobias

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: smart groups not evaluating properly?
December 05, 2008, 12:33:52 am
Tobias:

Might be bug ? Can you give exact steps to replicate this ? May be try replicating it on http://drupal.demo.civicrm.org .

Kurund
Found this reply helpful? Support CiviCRM

tmcnulty1982

  • Guest
Re: smart groups not evaluating properly?
January 09, 2009, 10:22:48 am
this was supposedly fixed in http://fisheye.civicrm.org/changelog/CiviCRM/branches/v2.1?cs=18625

but I'm still seeing it in CiviCRM 2.1.4 (incl. above patch)

It pops up very randomly so it is hard to reproduce/debug.  And if you touch the Smart Group the strange behavior disappears.

Any ideas?

tmcnulty1982

  • Guest
Re: smart groups not evaluating properly?
March 25, 2009, 12:17:45 pm
This is still happening for our client and it is a big issue for them - the feature is a big selling point for new members.

Is there a way to just turn off whatever caching is causing this to break, so that it works 100% of the time?

Thanks
Tobias

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: smart groups not evaluating properly?
March 25, 2009, 02:25:09 pm

i'm assuming u r on 2.1 (same for 2.2, line numbers might differ)

CRM/Contact/BAO/GroupContactCache.php, comment out lines 116-117

Code: [Select]
       CRM_Core_DAO::executeQuery( $sql,
                                    CRM_Core_DAO::$_nullArray );

should disable caching. ping me on IRC if that does not work

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • smart groups not evaluating properly?

This forum was archived on 2017-11-26.