Answers.Body: <p>Similar issue is being filed here <a href="https://issues.civicrm.org/jira/browse/CRM-17831" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-17831</a>.</p>
  
  <p>This has been fixed in 4.7.2 at <a href="https://github.com/civicrm/civicrm-core/pull/7770/files" rel="nofollow">https://github.com/civicrm/civicrm-core/pull/7770/files</a>.</p>
  
  <p>Update: As xml files are not included in the downloaded Civi. For the time being, can you please make the following changes at <code>fields()</code> function in <code>CRM/Contact/DAO/Contact.php</code>.</p>
  
  <pre><code>'formal_title' =&gt; array(
     'name' =&gt; 'formal_title',
     .
     .
     .
     'export' =&gt; true,
     'html' =&gt; array(        &lt;--- include this
       'type' =&gt; 'Text',
     ) ,
   ) ,
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T03:28:13.687Z
Answers.Text: I'm not sure how to make the change to the xml file. I tried downloading the master and upgrading but get a white screen of death. then i tried just updating the  CRM/Contact/Form/Edit/Individual.php file but still get the same error. No clue where to update the  xml/schema/Contact/Contact.xml file.
Answers.UserDisplayName: frTommy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-10T05:41:15.373Z
Answers.Text: @frTommy My bad, I missed to mention xml are not included in the downloaded civi. Updated the answer to work for now.
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-11T03:38:41.563Z
Answers.Text: After making the edit to the file, I realized it should be 'Text' instead of 'Select'. The Formal Title field is just a regular text field instead of a select field. But after changing it to 'Text' that fixed the issue.
Answers.UserDisplayName: frTommy
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-11T05:30:42.960Z
Answers.Text: yeah, thats correct, was a typo ;)
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-09T11:29:25.173Z
Answers.LastActivityDate: 2016-02-11T05:29:53.300Z
Answers.LastEditDate: 2016-02-11T05:29:53.300Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>I get the following error and backtrace. If I disable the Formal title option in Admin Display Settings then I dont' get the error. </p>
  
  <p>Exception: "Unsupported html-element "</p>
  
  <pre><code>#0 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Contact/Form/Edit/Individual.php(81): CRM_Core_Form-&gt;addField("formal_title", (Array:0))
  #1 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php(766): CRM_Contact_Form_Edit_Individual::buildQuickForm(Object(CRM_Contact_Form_Contact))
  #2 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Core/Form.php(540): CRM_Contact_Form_Contact-&gt;buildQuickForm()
  #3 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(92): CRM_Core_Form-&gt;buildForm()
  #4 /home/saintfran/www/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display-&gt;perform(Object(CRM_Contact_Form_Contact), "display")
  #5 /home/www/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller-&gt;handle(Object(CRM_Contact_Form_Contact), "display")
  #6 /home/www/www/sites/all/modules/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page-&gt;handle("display")
  #7 /home/www/www/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(113): CRM_Core_Controller-&gt;run()
  #8 /home/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(286): CRM_Utils_Wrapper-&gt;run("CRM_Contact_Form_Contact", "New Contact", (Array:1))
  #9 /home/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:13))
  #10 /home/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  #11 /home/www/www/sites/all/modules/civicrm/drupal/civicrm.module(454): CRM_Core_Invoke::invoke((Array:3))
  #12 [internal function](): civicrm_invoke("contact", "add")
  #13 /home/www/www/includes/menu.inc(527): call_user_func_array("civicrm_invoke", (Array:2))
  #14 /home/www/www/index.php(21): menu_execute_active_handler()
  #15 {main}
  </code></pre>
  
  <p><a href="https://issues.civicrm.org/jira/browse/CRM-17831" rel="noreferrer">https://issues.civicrm.org/jira/browse/CRM-17831</a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-02-08T06:46:44.717Z
Comments.Text: replicated on [dmaster](http://dmaster.demo.civicrm.org/), seems to be an issue.
Comments.UserDisplayName: jitendra - fuzion
Tags: <contacts><error>
Title: After upgrade to 4.7 on Drupal 7, Can't edit a contact
ThreadText: # After upgrade to 4.7 on Drupal 7, Can't edit a contact
  
  (Asked by: username_0 on 2016-02-07)
  
  I get the following error and backtrace. If I disable the Formal title option in Admin Display Settings then I dont' get the error. 
  Exception: "Unsupported html-element "
  #0 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Contact/Form/Edit/Individual.php(81): CRM_Core_Form->addField("formal_title", (Array:0))
  #1 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php(766): CRM_Contact_Form_Edit_Individual::buildQuickForm(Object(CRM_Contact_Form_Contact))
  #2 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Core/Form.php(540): CRM_Contact_Form_Contact->buildQuickForm()
  #3 /home/saintfran/www/www/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(92): CRM_Core_Form->buildForm()
  #4 /home/saintfran/www/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contact_Form_Contact), "display")
  #5 /home/www/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Contact), "display")
  #6 /home/www/www/sites/all/modules/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page->handle("display")
  #7 /home/www/www/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(113): CRM_Core_Controller->run()
  #8 /home/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(286): CRM_Utils_Wrapper->run("CRM_Contact_Form_Contact", "New Contact", (Array:1))
  #9 /home/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:13))
  #10 /home/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  #11 /home/www/www/sites/all/modules/civicrm/drupal/civicrm.module(454): CRM_Core_Invoke::invoke((Array:3))
  #12 [internal function](): civicrm_invoke("contact", "add")
  #13 /home/www/www/includes/menu.inc(527): call_user_func_array("civicrm_invoke", (Array:2))
  #14 /home/www/www/index.php(21): menu_execute_active_handler()
  #15 {main}
  
  https://issues.civicrm.org/jira/browse/CRM-17831
  
  **Tags:** contacts, error
  
  > **Comments:**
  > **username_1**: replicated on [dmaster](http://dmaster.demo.civicrm.org/), seems to be an issue.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-09. Score: 4 | Accepted answer
  
  Similar issue is being filed here https://issues.civicrm.org/jira/browse/CRM-17831.
  This has been fixed in 4.7.2 at https://github.com/civicrm/civicrm-core/pull/7770/files.
  Update: As xml files are not included in the downloaded Civi. For the time being, can you please make the following changes at fields() function in CRM/Contact/DAO/Contact.php.
  'formal_title' => array(
     'name' => 'formal_title',
     .
     .
     .
     'export' => true,
     'html' => array(        <--- include this
       'type' => 'Text',
     ) ,
   ) ,
  
  > **Comments:**
  > **username_0**: I'm not sure how to make the change to the xml file. I tried downloading the master and upgrading but get a white screen of death. then i tried just updating the  CRM/Contact/Form/Edit/Individual.php file but still get the same error. No clue where to update the  xml/schema/Contact/Contact.xml file.  
  > **username_1**: @username_0 My bad, I missed to mention xml are not included in the downloaded civi. Updated the answer to work for now.  
  > **username_0**: After making the edit to the file, I realized it should be 'Text' instead of 'Select'. The Formal Title field is just a regular text field instead of a select field. But after changing it to 'Text' that fixed the issue.  
  > **username_1**: yeah, thats correct, was a typo ;)  
  
  ---
  
  