Undefined index notices when using Panels with Chaos tools 7.x-1.x-dev installed.
Location http://***/ctools/context/ajax/add/page_manager_context%3A%3Anode_view/relationship/temp/og_group_from_node/form
Referrer http://***/admin/structure/pages/nojs/operation/node_view/actions/configure/context
Message Notice: Undefined index: complete form in form_builder() (line 1764 of /***/includes/form.inc).
Location http://***/ctools/context/ajax/add/page_manager_context%3A%3Anode_view/relationship/temp/og_group_from_node/form
Referrer http://***/admin/structure/pages/nojs/operation/node_view/actions/configure/context
Message Notice: Undefined index: process_input in _form_builder_handle_input_element() (line 1945 of /***/includes/form.inc).
Location http://***/ctools/context/ajax/add/page_manager_context%3A%3Anode_view/relationship/temp/og_group_from_node/form
Referrer http://***/admin/structure/pages/nojs/operation/node_view/actions/configure/context
Message Notice: Undefined index: programmed in _form_builder_handle_input_element() (line 1945 of /***/includes/form.inc).
Location http://***/ctools/context/ajax/add/page_manager_context%3A%3Anode_view/relationship/temp/og_group_from_node/form
Referrer http://***/admin/structure/pages/nojs/operation/node_view/actions/configure/context
Message Notice: Undefined index: #array_parents in form_builder() (line 1807 of /***/includes/form.inc).
Location http://***/ctools/context/ajax/add/page_manager_context%3A%3Anode_view/relationship/temp/og_group_from_node/form
Referrer http://***/admin/structure/pages/nojs/operation/node_view/actions/configure/context
Message Notice: Undefined index: #parents in form_builder() (line 1754 of /***/includes/form.inc).
Location http://***/ctools/context/ajax/add/page_manager_context%3A%3Anode_view/relationship/temp/og_group_from_node/form
Referrer http://***/admin/structure/pages/nojs/operation/node_view/actions/configure/context
Message Warning: implode() [function.implode]: Invalid arguments passed in form_builder() (line 1754 of /***/includes/form.inc).
Drupal 7.9
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | ctools-undefined_in_context_admin_forms-1360310-16.patch | 1.82 KB | maximpodorov |
| #14 | ctools-undefined_in_context_admin_forms-1360310-14.patch | 2.29 KB | maximpodorov |
| #12 | ctools-undefined_in_context_admin_forms-1360310-12.patch | 1.76 KB | maximpodorov |
| #3 | 1360310.patch | 1.15 KB | jherencia |
| #1 | 1360310.patch | 1.28 KB | jherencia |
Comments
Comment #1
jherencia commentedI've found this issue too, but I think it only happens with PHP 5.3.17 not in 5.3.3.
Here is the patch that points what probably could fix it.
Comment #3
jherencia commentedComment #4
acbramley commentedWas previously getting 12 undefined index notices every time I saved a new Content Context, this patch fixes it. Applies cleanly to latest dev release
Comment #5
mthomas commentedThis patch worked for me. Thank you for it.
Comment #6
mthomas commentedSorry, accidentally changed the status.
Comment #7
freeform.steph commentedThis patch worked for me as well, thank you! I tested it on both the stable release (7.x-1.3) and the latest dev release (7.x-1.x-dev September 30, 2013), worked for both. Any chance this could get committed since it passed testing more than a year ago?
Comment #8
TheMGamer commented1: 1360310.patch queued for re-testing.
Comment #10
freeform.steph commented3: 1360310.patch queued for re-testing.
Comment #11
robbertnl commented3: 1360310.patch queued for re-testing.
Comment #12
maximpodorov commentedI'd suggest this more accurate patch, though the result for this particular forms should be the same.
Comment #13
maximpodorov commentedPatch is updated (new undefined variable and undefined index are defined).
Comment #14
maximpodorov commentedA quick fix (array_parent was missed).
Comment #15
japerryTested, fixed, and committed!
http://drupalcode.org/project/ctools.git/commit/3491b8dbd5f7780f9f56ed06...
Comment #16
maximpodorov commentedTh patch #14 rerolled for the current dev.
Comment #17
maximpodorov commentedMoving to #2186167: Undefined index notices in context-admin.inc