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 Profiles (Moderator: Dave Greenberg) »
  • Undefined index on Profile
Pages: [1]

Author Topic: Undefined index on Profile  (Read 962 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Undefined index on Profile
August 23, 2011, 07:49:36 am
When visiting I user/124/edit/Name%20and%20Address on a D7/C4.0.5 site I get:

Code: [Select]
Notice: Undefined index: 1 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 1993 of /home/xxx/www/www/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).
I fixed this by adding isset here:

Code: [Select]
     if (isset( $value['phone'][$phoneTypeId]) ) {
Similar issue here: http://forum.civicrm.org/index.php/topic,21281.0.html This site was upgraded from Drupal 6 and an earlier CiviCRM version.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Undefined index on Profile
August 24, 2011, 05:00:08 am
Issue created: http://issues.civicrm.org/jira/browse/CRM-8706
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Undefined index on Profile

This forum was archived on 2017-11-26.