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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Undefined index: url in CRM_Core_BAO_UFGroup::setProfileDefaults()
Pages: [1]

Author Topic: Undefined index: url in CRM_Core_BAO_UFGroup::setProfileDefaults()  (Read 1953 times)

shashikant

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: civicrm 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: Mysql 5.1.56
  • PHP version: PHP Version 5.3.6
Undefined index: url in CRM_Core_BAO_UFGroup::setProfileDefaults()
July 17, 2012, 06:20:36 am
Hi
I have just updated just site from civicrm 3.2.5 to civicrm 4.1.3(incremental upgrade in small-small update) and drupal 6.26 to drupal 7.14.
I am getting notice like this
Code: [Select]
Notice: Undefined index: url in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2241 of /home/mysite/staging/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).I am not able to find why this notice is appearing and how to remove it.
Please help me about this.

shashikant

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
  • CiviCRM version: civicrm 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: Mysql 5.1.56
  • PHP version: PHP Version 5.3.6
Re: Undefined index: url in CRM_Core_BAO_UFGroup::setProfileDefaults()
July 17, 2012, 11:41:37 pm
Thanks to yashodha
as per reply on IRCChat
I replace my code from  $defaults[$fldName] = $val['url'];   to  $defaults[$fldName] = CRM_Utils_Array::value('url', $val);
in line no 2241 of CRM/Core/BAO/UFGroup.php
now the notice is gone and it is working fine.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Undefined index: url in CRM_Core_BAO_UFGroup::setProfileDefaults()

This forum was archived on 2017-11-26.