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) »
  • SmartGroup: foreach warning "mapper" key in CRM/Core/BAO/Mapping.php on line 589
Pages: [1]

Author Topic: SmartGroup: foreach warning "mapper" key in CRM/Core/BAO/Mapping.php on line 589  (Read 1391 times)

JacobSingh

  • Guest
SmartGroup: foreach warning "mapper" key in CRM/Core/BAO/Mapping.php on line 589
May 22, 2007, 02:02:56 pm
I'm not sure what is causing this, but after upgrade a site from 1.6->1.7 this warning shows up when viewing the members of all smart groups, although nothing seems wrong with the page.

Any idea what is causing this?

Thanks,
Jacob

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: SmartGroup: foreach warning "mapper" key in CRM/Core/BAO/Mapping.php on line
May 22, 2007, 05:58:21 pm

try changing line 587 to:

        if ( empty( $params ) || ! isset( $params['mapper'] ) ) {
            return $fields;
        }

i've fixed the code in 1.8 for this

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) »
  • SmartGroup: foreach warning "mapper" key in CRM/Core/BAO/Mapping.php on line 589

This forum was archived on 2017-11-26.