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 Import (Moderator: Yashodha Chaku) »
  • Undefined Index Prefix Id
Pages: [1]

Author Topic: Undefined Index Prefix Id  (Read 1508 times)

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Undefined Index Prefix Id
August 14, 2011, 01:37:45 pm
I recently added 3 Individual prefixes to Civi in order to handle some imports:

Prof.
Capt.
Amb.

Upon an otherwise successful import, on the final screen (step 4 of 4) I get the following notification in red (multiple times).

Notice: Undefined index: prefix_id in _civicrm_add_formatted_param() (line 226 of /var/www/drupal7/sites/all/modules/civicrm/api/v2/utils.v2.php).


Am I perhaps missing something like a cache flush/refresh or something or the sort?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Undefined Index Prefix Id
August 14, 2011, 01:54:48 pm
This is compliance with a coding standard rather than a problem - you can adjust reporting of this

http://www.citytree.be/blog/undefined-index-quick-fix-in-drupal7-error-reporting
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

circlebails

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
  • CiviCRM version: 4.1.X 4.2.X
  • CMS version: Drupal-6.X / Drupal-7.X
  • MySQL version: 5.1
  • PHP version: 5.2.16/17, 5.3
Re: Undefined Index Prefix Id
September 21, 2011, 04:32:25 am
I've just encountered this and as I see it the best way to avoid this is to set

variable_set('error_level', '0');

In your install profile, if you aren't using one just add it to the end of default.


DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Undefined Index Prefix Id
October 19, 2011, 07:47:51 pm
Thanks, that did the trick.


One more question: Is it possible to "export" the custom prefixes to another civi site?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • Undefined Index Prefix Id

This forum was archived on 2017-11-26.