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

Comments

jherencia’s picture

Status: Active » Needs review
StatusFileSize
new1.28 KB

I'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.

Status: Needs review » Needs work

The last submitted patch, 1360310.patch, failed testing.

jherencia’s picture

Status: Needs work » Needs review
StatusFileSize
new1.15 KB
acbramley’s picture

Status: Needs review » Reviewed & tested by the community

Was previously getting 12 undefined index notices every time I saved a new Content Context, this patch fixes it. Applies cleanly to latest dev release

mthomas’s picture

Status: Reviewed & tested by the community » Needs review

This patch worked for me. Thank you for it.

mthomas’s picture

Status: Needs review » Reviewed & tested by the community

Sorry, accidentally changed the status.

freeform.steph’s picture

This 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?

TheMGamer’s picture

1: 1360310.patch queued for re-testing.

The last submitted patch, 1: 1360310.patch, failed testing.

freeform.steph’s picture

3: 1360310.patch queued for re-testing.

robbertnl’s picture

3: 1360310.patch queued for re-testing.

maximpodorov’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.76 KB

I'd suggest this more accurate patch, though the result for this particular forms should be the same.

maximpodorov’s picture

Patch is updated (new undefined variable and undefined index are defined).

maximpodorov’s picture

StatusFileSize
new2.29 KB

A quick fix (array_parent was missed).

japerry’s picture

Status: Needs review » Fixed
maximpodorov’s picture

Th patch #14 rerolled for the current dev.

maximpodorov’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.