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) »
  • Error modifying custom fields
Pages: [1]

Author Topic: Error modifying custom fields  (Read 436 times)

sibro

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Error modifying custom fields
May 12, 2014, 04:10:52 pm
Civi 4.4.5 Drupal 7.27
I have a date field  as part of a custom group. When the field was created the value for prior year was set to 0.  I now need to increase it so dates from prior years can be entered. It hits with an error. I tried eliminating it as a search criteria but that filed the same way.

$backTrace =
#0 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/Error.php(322): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php(745): CRM_Core_Error::fatal()
#2 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Custom/Form/Field.php(109): CRM_Core_DAO::getFieldValue("CRM_Core_DAO_CustomGroup", NULL, "is_reserved", "id")
#3 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/Form.php(351): CRM_Custom_Form_Field->preProcess()
#4 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(93): CRM_Core_Form->buildForm()
#5 /home/fjmcprod/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Custom_Form_Field), "display")
#6 /home/fjmcprod/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Custom_Form_Field), "display")
#7 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php(339): HTML_QuickForm_Page->handle("display")
#8 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(117): CRM_Core_Controller->run()
#9 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(297): CRM_Utils_Wrapper->run("CRM_Custom_Form_Field", "Custom Field - Edit", NULL)
#10 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:13))
#11 /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:6))
#12 /home/fjmcprod/public_html/sites/all/modules/civicrm/drupal/civicrm.module(456): CRM_Core_Invoke::invoke((Array:6))
#13 [internal function](): civicrm_invoke("admin", "custom", "group", "field", "update")
#14 /home/fjmcprod/public_html/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:5))
#15 /home/fjmcprod/public_html/index.php(21): menu_execute_active_handler() #16 {main}
Bruce

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: Error modifying custom fields
May 28, 2014, 06:08:12 am
Did you ever resolve this or discover a workaround?

I have encountered the same error, but this time with a Checkbox field which I needed to alter, so I tried to alter it, and no matter which button I press (Save, Save and New, or Cancel) I get the same error.
I got this with both 4.4.4 and 4.4.5

Mark   ::)

sibro

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 2
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5
  • PHP version: 5.4
Re: Error modifying custom fields
May 29, 2014, 02:06:54 pm
For some reason the backtrace stopped. I am now trying to update a custom field which is radio buttion. I am unable to update it.
I am seeing
Quote
Notice: Undefined index: 61_ in CRM_Contact_Form_Relationship->buildQuickForm() (line 364 of /home/fjmcprod/public_html/sites/all/modules/civicrm/CRM/Contact/Form/Relationship.php).

If I create the relationship I can set the field value.
Bruce

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error modifying custom fields

This forum was archived on 2017-11-26.