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) »
  • Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup
Pages: [1]

Author Topic: Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup  (Read 1244 times)

Martin Fuggle

  • I post frequently
  • ***
  • Posts: 172
  • Karma: 3
    • Travel and Photography
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 6.x and 7.x
  • MySQL version: 5.1.36-cll
  • PHP version: 5.3.6
Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup
October 24, 2013, 08:21:11 pm
I am using Drupal 7.x with CiviCRM 4.4. I am getting the above error which is in full as follows:

Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 2370 of ~/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).

I have been unable to see what might be causing this so any help would be appreciated. BTW is it possible to hide notices in a production site?

Cheers
Martin Fuggle

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup
October 24, 2013, 08:26:04 pm
It's just a warning, should be harmless.
On production sites you should choose not to display them. Visit yoursite.org/admin/config/development/logging to set this.
Try asking your question on the new CiviCRM help site.

Martin Fuggle

  • I post frequently
  • ***
  • Posts: 172
  • Karma: 3
    • Travel and Photography
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 6.x and 7.x
  • MySQL version: 5.1.36-cll
  • PHP version: 5.3.6
Re: Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup
October 24, 2013, 08:49:38 pm
I have all entries set to 'No' (Enable Debugging = No, Enable Drupal Watchdog Logging = No and Display Backtrace = No) but the Notice continues to display. I have also flushed Drupal, CiviCRM and Browser caches but the Notice still displays. I have also switched off Drupal Developer Modules. Am I on the wrong track? Maybe there is something I am missing.

Cheers
Martin Fuggle

OH ignore - I was looking in the wrong spot, sorry for the trouble. I should have read your response a little more carefully.
« Last Edit: October 24, 2013, 08:54:17 pm by Martin Fuggle »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup
October 24, 2013, 08:54:16 pm
Did you follow the link I posted above? It goes to a drupal admin page, not a civi admin page.
Try asking your question on the new CiviCRM help site.

Martin Fuggle

  • I post frequently
  • ***
  • Posts: 172
  • Karma: 3
    • Travel and Photography
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x, 4.5.x
  • CMS version: Drupal 6.x and 7.x
  • MySQL version: 5.1.36-cll
  • PHP version: 5.3.6
Re: Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup
October 24, 2013, 08:55:01 pm
Sorry - I screwed up by not reading your response correctly.

Cheers
Martin Fuggle

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: Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup
October 25, 2013, 09:19:49 am

thanx for reporting. i fixed this for 4.4.1

in general, notices are harmless. but we are also trying to fix all of them to give folks a 'notice-free' program :)

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 Profiles (Moderator: Dave Greenberg) »
  • Error - Notice: Undefined index: country_id in CRM_Core_BAO_UFGroup

This forum was archived on 2017-11-26.