Closed (fixed)
Project:
Conditional Fields
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2011 at 19:44 UTC
Updated:
18 May 2012 at 15:10 UTC
getting the following errors when I try to access the manage display screen for my content types with conditional fields:
Undefined index: field_urgent_tags in conditional_fields_form_after_build() (line 456 of .../sites/all/modules/conditional_fields/conditional_fields.module).
Recoverable fatal error: Argument 2 passed to drupal_array_get_nested_value() must be an array, null given, called in .../sites/all/modules/conditional_fields/conditional_fields.module on line 457 and defined in drupal_array_get_nested_value() (line 6341 of .../includes/common.inc).
Comments
Comment #1
justmagicmaria commentedSame error. Subscribe.
I have temporarily worked around the issue by adding these three lines to the top of the foreach loop at line 415 of condition_fields.module. I'm sure it's not the correct fix, so I won't bother with a patch.
Comment #2
peterpoe commentedI need some information to verify this issue:
What page is "the manage display screen for my content types"? admin/structure/types/manage/CONTENT_TYPE/fields or admin/structure/types/manage/CONTENT_TYPE/dependencies?
What kind of field/widget is field_urgent_tags?
Comment #3
laroccadahouse commentedfield_urgent_tags is a term reference field
I have a date field that is dependent on that field
"manage display" refers to: admin/structure/types/manage/CONTENT_TYPE/fields
Comment #4
peterpoe commentedSome more questions:
- Have you updated to the latest dev? Conditional Fields shouldn't do anything in that page.
- Which kind of widgets are those fields? (textfield, select, autocomplete, etc)
Comment #5
laroccadahouse commentedI'm using 7.x-3.x-dev (2011-Aug-30). I will update to the latest release this afternoon.
the term reference field is a select list and the date field uses the pop-up calendar.
Comment #6
laroccadahouse commentedupdated to sept 2 release. still getting error.
Comment #7
eliasdelatorreGetting the same error listed here, at lines 415 and 416.
I'm running:
My widgets are only:
Fixed with JustMagicMaria 's solution tho.
Thank you guys, I'm on due date and this helped me at this very moment.
Comment #8
somanyfish commentedsubscribe
Comment #9
jyee commentedsubscribe
Comment #10
froeser commentedsubscribe
Comment #11
peterpoe commentedI'm stuck here: conditional_fields_form_after_build() should never run on that page. This error probably arises in conditional_fields_element_after_build(), where $form['#conditional_fields'] is populated. But in my setup (latest dev), $element['#field_name'] at the beginning of the function is correctly not found and the function returns immediately.
Comment #12
peterpoe commentedThis was fixed in commit 890c237.