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) »
  • custom fields disappear from search
Pages: [1]

Author Topic: custom fields disappear from search  (Read 475 times)

vincent

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal
  • MySQL version: 10.0.12-MariaDB
  • PHP version: 5.4.4
custom fields disappear from search
June 19, 2014, 11:13:46 am
Hi,

I really don't know where else to turn anymore. We have a civi-drupal installation with some custom fields, about 50000 records. Everything works fine. Until after a while. Then the search builder doesn't show custom fields anymore after selecting "contacts". It's very strange, the search builder will work without a glitch, until it doesn't. Reproducing it so far means: waiting long enough until it breaks. It works after we clear the civi-caches. At least for a while and then it breaks again. So we've been looking at cron-jobs, turning off (some) cache, nothing seems to help.

Same story for the advanced search: if we search by a custom value then sometimes, all of a sudden, it won't take that part of the query in to account. Does anyone have any pointers, at all? I know it's a vague question but I don't know what else to say. There doesn't seem to be a specific trigger, it just... happens.

Thanks in advance,
Vincent

vincent

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal
  • MySQL version: 10.0.12-MariaDB
  • PHP version: 5.4.4
Re: custom fields disappear from search
June 21, 2014, 02:35:01 am
So, I have some more information on this. I looked in the DOM. It seems that the drop-down menus of the search builder are completely javascript-based. When I said that the custom fields have "disappeared", this seems to be the wrong way of putting it. Instead, they have moved from "contacts" to "household", where they do not belong.

So in short: clear civi cache, go to search builder, custom fields show up under "contacts", wait X minutes, reload page, custom fields show up under "household" until you clear the civi cache again. This is because they are put in the wrong place in the javascript that builds these drop-downs on the fly. So it's not cache related, not cron related, it's related to whatever constructs that javascript.

Any ideas?

Thanks,
Vincent
« Last Edit: June 21, 2014, 02:45:52 am by vincent »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • custom fields disappear from search

This forum was archived on 2017-11-26.