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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error in Mapping.php line 636
Pages: [1]

Author Topic: Error in Mapping.php line 636  (Read 574 times)

WORC

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
  • CiviCRM version: 4.6.9
  • CMS version: Drupal 7.37
  • MySQL version: 5.6.27
  • PHP version: 5
Error in Mapping.php line 636
December 01, 2014, 04:38:47 pm
The following message appears upon arriving at the Select Fields to Export (step 3 of 3) screen while exporting from an advanced search:

Notice: Undefined index: in CRM_Core_BAO_Mapping::buildMappingForm() (line 636 of /var/www/sites/all/modules/civicrm/CRM/Core/BAO/Mapping.php).

That line of code reads as follows:

$relatedFields = array_merge((array)$relatedMapperFields[$relationshipType->$target_type], (array)$relationshipCustomFields);

This appears whether or not I am using a saved mapping. The error does not prevent me from exporting, I just like to eliminate any and all error messages as they freak my users out. Any help you can offer is appreciated.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error in Mapping.php line 636
December 02, 2014, 02:37:58 am
I *think* our policy is to have no stray Notice messages (might want to check that) so I would report this.

Quote
I just like to eliminate any and all error messages as they freak my users out. Any help you can offer is appreciated.
The obvious answer is to stop error messages being displayed on the screen which is normal practice for a production site (you can continue to log them to aid with debugging).

Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error in Mapping.php line 636
December 02, 2014, 06:56:41 am
Coleman says "I don't think we have many policies about anything. But the practice I've noticed these generally get fixed quickly when brought to the attention of the core team."
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Error in Mapping.php line 636

This forum was archived on 2017-11-26.