same as http://drupal.org/node/1166796 but I don't know where to list it. (new at all this so please advise where this belongs)

After updating to:

Chaos tool suite 7.x-1.x-dev (2011-May-16)
Panels 7.x-3.x-dev (2011-May-10)
Token 7.x-1.x-dev (2011-May-20)

I cannot add or edit Panel content.

get:
Notice: Undefined index: name in ctools_token_content_type_content_types() (line 45 of XXX/html/sites/all/modules/ctools/plugins/content_types/token/token.inc).

Also report show immediately prior another notice:

Notice: Undefined variable: form in page_manager_page_subtask_argument_ajax() (line 1059 of xxx/html/sites/all/modules/ctools/page_manager/plugins/tasks/page.admin.inc)

Comments

davidsanger’s picture

Actually it is not a Notice. It comes up as:

ERROR
Notice: Undefined index: name in ctools_token_content_type_content_types() (line 45 of

davidsanger’s picture

Title: Undefined index Error in Panels when going to panel/content page » Cannot add or change Panel content :: Undefined index Error in Panels when going to panel/content page
Anonymous’s picture

I have this similar error on the Argument settings tab in a Panel.
At:
/admin/structure/pages/nojs/operation/page-my_panel/handlers/page_my_panel_panel_context/content

On that line 1059 in ctools/page_manager/plugins/tasks/page.admin.inc:

page_manager_page_form_argument($form, $clone_state);

The $form indeed has not been set there at that point.

Solution is:

FIND

    page_manager_page_form_argument($form, $clone_state);
    $form = drupal_build_form('page_manager_page_form_argument', $form_state);

CHANGE TO (SWAP THE LINES)

    $form = drupal_build_form('page_manager_page_form_argument', $form_state);
    page_manager_page_form_argument($form, $clone_state);
Letharion’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)