Not sure if this is best in this queue or Fieldable Panels Panes.
Drupal 7.14
Fieldable Panels Panes 7.x-1.0
Panels 7.x-3.2+6-dev
CTools 7.x-1.0
I created a fieldable pane within a panel node, and a few days latter, tried to set the CSS styles on this pane. This was the resulting notice seen in the popup:
Notice: Undefined index: title in panels_renderer_editor->ajax_pane_css() (line 1195 of sites\all\modules\panels\plugins\display_renderers\panels_renderer_editor.class.php).
[void] panels_renderer_editor->ajax_pane_css('1')
#1369 call_user_func_array(Array, Array)
[void] panels_ajax_router('editor', 'pane-css', '1', '1')
#516 call_user_func_array('panels_ajax_router', Array)
#21 menu_execute_active_handler()
So in relation to this code in the panels_renderer_editor class
$pane = &$this->display->content[$pid];
$subtype = ctools_content_get_subtype($pane->type, $pane->subtype);
$form_state = array(
'display' => &$this->display,
'pane' => &$pane,
'ajax' => TRUE,
'title' => t('Configure CSS on !subtype_title', array('!subtype_title' => $subtype['title'])),
);
The pane dpm() is:
.. (Object) stdClass
pid (String, 1 characters ) 1
did (String, 1 characters ) 1
panel (String, 3 characters ) top
type (String, 21 characters ) fieldable_panels_pane
subtype (String, 6 characters ) fpid:3
shown (String, 1 characters ) 1
access (Array, 0 elements)
configuration (Array, 0 elements)
cache (Array, 0 elements)
style (Array, 1 element)
settings (NULL)
css (Array, 0 elements)
extras (Array, 0 elements)
position (String, 1 characters ) 0
locks (Array, 0 elements)
The subtype return by ctools_content_get_subtype() is an empty array.
Tracing this into ctools_content_get_subtype(), the $panel->subtype passed in is "fpid:3" rather than the real bundle "fieldable_panels_pane", thus breaking the chain.
function fieldable_panels_panes_entity_info() {
return array(
'fieldable_panels_pane' => array(
'bundles' => array(
'fieldable_panels_pane' => array())));
}
The latest dev version clean up almost all panel notices and warnings, but I'll report the remaining ones that I find. The trace error handler is useful in tracing these :)
Comments
Comment #0.0
alan d. commentedAdded more context to the notice
Comment #1
japerryDrupal 7 is no longer supported, closing.