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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Undefined offset notice whenever I add a new website for a contact
Pages: [1]

Author Topic: Undefined offset notice whenever I add a new website for a contact  (Read 478 times)

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Undefined offset notice whenever I add a new website for a contact
November 12, 2012, 12:59:35 am
Whenever I edit a Contact (in CiviCRM version 4.2.6 with Drupal 7.17) I get, eg for the 3rd website...
Notice: Undefined offset: 3 in CRM_Contact_Form_Contact->blockSetDefaults() (line 461 of .../sites/all/modules/civicrm/CRM/Contact/Form/Contact.php).

Clearly this is just a notice, ie a minor bug, and not a real error but it looks a bit off-putting, and could confuse an inexperienced user.

Mark

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: Undefined offset notice whenever I add a new website for a contact
November 12, 2012, 08:26:37 am

Would be great if you can investigate and submit a patch for this notice.

Please file an issue and attach the patch.

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

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Re: Undefined offset notice whenever I add a new website for a contact
November 13, 2012, 01:17:56 am
Issue created... http://issues.civicrm.org/jira/browse/CRM-11269
...but my PHP is not (as yet) up to creating a patch

Mark

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Undefined offset notice whenever I add a new website for a contact

This forum was archived on 2017-11-26.