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) »
  • Extended search view: shows no group names
Pages: [1]

Author Topic: Extended search view: shows no group names  (Read 3463 times)

laborg

  • Guest
Extended search view: shows no group names
March 19, 2008, 03:15:26 am
Hi!

Using civicrm 2.0 with drupal 5.7.
When using the extended search the organizations/groups selector doesn't show the right group names anymore (attached screenshot).

following HTML Code is created:
Code: [Select]
<div class="listing-box">
<div class="odd-row">
<input id="qf_6df4e3" class="form-checkbox" type="checkbox" value="1" name="group[1]"/>
<label for="qf_6df4e3">Object id #51</label>
</div>
<div class="even-row">
<input id="qf_4de848" class="form-checkbox" type="checkbox" value="1" name="group[6]"/>
<label for="qf_4de848">Object id #55</label>
</div>

In the "manage groups" view the groups and their names are shown as they should be. Maybe its usefull to know, that some of the groups where created by og_sync.
Any ideas?

[EDIT]
Could this be caused through a corrupted  templates_c directory? It looks like my hosting-provider has troubles with me deleting the template folder...
« Last Edit: March 19, 2008, 03:59:01 am by laborg »

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: Extended search view: shows no group names
March 19, 2008, 04:49:15 am
I created few groups using "civicrm_og_sync" module. I am getting correct display.  Can you give more details about your CiviCRM setting.

kurund
Found this reply helpful? Support CiviCRM

laborg

  • Guest
Re: Extended search view: shows no group names
March 19, 2008, 07:01:15 am
I managed to delete the templatefiles, but nothing has changed. The problem only occurs on my production site. The same databases(drupal+civicrm) on my development server don't cause the error...

smartyDebug for the advanced search:.

Code: [Select]
Individual => Array (9)
    name => contact_type[Individual]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_39a355
    label => empty
    html => <input name="contact_type[Individual]...
  Household => Array (9)
    name => contact_type[Household]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_a314f9
    label => empty
    html => <input name="contact_type[Household]"...
  Organization => Array (9)
    name => contact_type[Organization]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_85b2ff
    label => empty
    html => <input name="contact_type[Organizatio...
group => Array (15)
  1 => Array (9)
    name => group[1]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_67b485
    label => empty
    html => <input name="group[1]" type="checkbox...
  6 => Array (9)
    name => group[6]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_c6320a
    label => empty
    html => <input name="group[6]" type="checkbox...
  7 => Array (9)
    name => group[7]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_4d8fe3
    label => empty
    html => <input name="group[7]" type="checkbox...
  8 => Array (9)
    name => group[8]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_43c7ae
    label => empty
    html => <input name="group[8]" type="checkbox...
  9 => Array (9)
    name => group[9]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_76e3bd
    label => empty
    html => <input name="group[9]" type="checkbox...
  10 => Array (9)
    name => group[10]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_1ae275
    label => empty
    html => <input name="group[10]" type="checkbo...
  11 => Array (9)
    name => group[11]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_038ae4
    label => empty
    html => <input name="group[11]" type="checkbo...
  12 => Array (9)
    name => group[12]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_27e680
    label => empty
    html => <input name="group[12]" type="checkbo...
  13 => Array (9)
    name => group[13]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_bd99d1
    label => empty
    html => <input name="group[13]" type="checkbo...
  14 => Array (9)
    name => group[14]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_9d097f
    label => empty
    html => <input name="group[14]" type="checkbo...
  15 => Array (9)
    name => group[15]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_f0ac24
    label => empty
    html => <input name="group[15]" type="checkbo...
  16 => Array (9)
    name => group[16]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_d1b22e
    label => empty
    html => <input name="group[16]" type="checkbo...
  17 => Array (9)
    name => group[17]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_3cfaf5
    label => empty
    html => <input name="group[17]" type="checkbo...
  20 => Array (9)
    name => group[20]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_b90d80
    label => empty
    html => <input name="group[20]" type="checkbo...
  21 => Array (9)
    name => group[21]
    value =>
    type => checkbox
    frozen =>
    required =>
    error => empty
    id => qf_b62787
    label => empty
    html => <input name="group[21]" type="checkbo...

laborg

  • Guest
Re: Extended search view: shows no group names
March 19, 2008, 07:52:02 am
Another observation:
No group is shown with the right name regardless of the way/time they were created. When selecting one of the wrong named groups the search finds the contacts as expected. So only the labels are wrong...

Can anybody tell me where the html code of the <input> fields is generated?

thx


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: Extended search view: shows no group names
March 19, 2008, 03:53:17 pm

CRM/Contact/Form/Search/Criteria.php, line 50

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

laborg

  • Guest
Re: Extended search view: shows no group names
March 20, 2008, 03:42:00 am
Hi!

Could a different PHP version be the reason for my problem? (production server (5.1.2) => problem;  development server(5.2.3) => no problem)

For the time being I changed the code in line 58 (Criteria.php) to help myself:
Code: [Select]
58             $groupLabel = "$group";
to
Code: [Select]
58            $groupLabel = $group->name;

Is this hack legal? Or a misuse of the $group object?
thx

gerhard

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: Extended search view: shows no group names
March 20, 2008, 07:17:53 am

can u add the following statemen:

CRM_Core_Error::debug( 'group', $group );

and show us the output for both 5.1 and 5.2

note that we officially only support 5.2.x

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

laborg

  • Guest
Re: Extended search view: shows no group names
March 20, 2008, 07:36:30 am
I took the first group of many:

Php 5.2.3
Code: [Select]
CRM_Contact_BAO_Group Object
(
    [id] => 1
    [domain_id] => 1
    [name] => Mitglieder
    [title] => Mitglieder
    [description] => Gruppe der Mitglieder
    [source] =>
    [saved_search_id] =>
    [is_active] => 1
    [visibility] => User and User Admin Only
    [where_clause] =>  ( `civicrm_group_contact-1`.group_id IN (1) AND `civicrm_group_contact-1`.status IN ("Added") )
    [select_tables] => a:10:{s:15:"civicrm_contact";i:1;s:15:"civicrm_address";i:1;s:22:"civicrm_state_province";i:1;s:15:"civicrm_country";i:1;s:13:"civicrm_email";i:1;s:13:"civicrm_phone";i:1;s:10:"civicrm_im";i:1;s:19:"civicrm_worldregion";i:1;s:25:"`civicrm_group_contact-1`";s:114:" LEFT JOIN civicrm_group_contact `civicrm_group_contact-1` ON contact_a.id = `civicrm_group_contact-1`.contact_id ";s:6:"gender";i:1;}
    [where_tables] => a:2:{s:15:"civicrm_contact";i:1;s:25:"`civicrm_group_contact-1`";s:114:" LEFT JOIN civicrm_group_contact `civicrm_group_contact-1` ON contact_a.id = `civicrm_group_contact-1`.contact_id ";}
    [group_type] => 1
    [_DB_DataObject_version] => 1.8.4
    [__table] => civicrm_group
    [N] => 15
    [_database_dsn] =>
    [_database_dsn_md5] => 14310cc682720dc03d1357f9b0d0a455
    [_database] => civicrm
    [_DB_resultid] => 11
    [_resultFields] =>
    [_link_loaded] =>
    [_join] =>
    [_lastError] =>
    [order_by] => title ASC
)

Php 5.1.2
Code: [Select]
CRM_Contact_BAO_Group Object
(
    [id] => 1
    [domain_id] => 1
    [name] => Mitglieder
    [title] => Mitglieder
    [description] => Gruppe der Mitglieder
    [source] =>
    [saved_search_id] =>
    [is_active] => 1
    [visibility] => User and User Admin Only
    [where_clause] =>  ( `civicrm_group_contact-1`.group_id IN (1) AND `civicrm_group_contact-1`.status IN ("Added") )
    [select_tables] => a:10:{s:15:"civicrm_contact";i:1;s:15:"civicrm_address";i:1;s:22:"civicrm_state_province";i:1;s:15:"civicrm_country";i:1;s:13:"civicrm_email";i:1;s:13:"civicrm_phone";i:1;s:10:"civicrm_im";i:1;s:19:"civicrm_worldregion";i:1;s:25:"`civicrm_group_contact-1`";s:114:" LEFT JOIN civicrm_group_contact `civicrm_group_contact-1` ON contact_a.id = `civicrm_group_contact-1`.contact_id ";s:6:"gender";i:1;}
    [where_tables] => a:2:{s:15:"civicrm_contact";i:1;s:25:"`civicrm_group_contact-1`";s:114:" LEFT JOIN civicrm_group_contact `civicrm_group_contact-1` ON contact_a.id = `civicrm_group_contact-1`.contact_id ";}
    [group_type] => 1
    [_DB_DataObject_version] => 1.8.4
    [__table] => civicrm_group
    [N] => 15
    [_database_dsn] =>
    [_database_dsn_md5] => c2e98553c2a9324ac2c4beb01fdfd431
    [_database] => civicrm
    [_DB_resultid] => 11
    [_resultFields] =>
    [_link_loaded] =>
    [_join] =>
    [_lastError] =>
    [order_by] => title ASC
)

Diff shows me that they are the same (besides the differing database_dsn_md5)

thx
« Last Edit: March 20, 2008, 07:39:18 am by laborg »

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: Extended search view: shows no group names
March 20, 2008, 07:47:45 am

its a php version issue :)

upgrade to php 5.2.x :)

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

laborg

  • Guest
Re: Extended search view: shows no group names
March 20, 2008, 07:54:32 am
just phoned with my hosting provider - no luck with a php upgrade. Are there any other known problems with 5.1.2?

thx
Gerhard

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: Extended search view: shows no group names
March 20, 2008, 09:02:34 am

no idea, we dont run under 5.1.2. I suspect u'll discover any issues for this version in your production testing :)

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) »
  • Extended search view: shows no group names

This forum was archived on 2017-11-26.