Undefined property: stdClass::$collapsible After creating a vertical tab in my installation profile I keep getting these notices:

Notice: Undefined property: stdClass::$collapsible in field_group_pre_render_tab()

and

Notice: Undefined property: stdClass::$collapsed in field_group_pre_render_tab()

Here is the code I use to make a vertical tab in my installation profile:

$verticalTab = new stdClass();
$verticalTab-&gt;disabled = FALSE;
$verticalTab-&gt;identifier = 'group_attachments|node|foo|form';
$verticalTab-&gt;group_name = 'group_attachments';
$verticalTab-&gt;entity_type = 'node';
$verticalTab-&gt;bundle = 'foo';
$verticalTab-&gt;mode = 'form';
$verticalTab-&gt;label = 'Attachments';
$verticalTab-&gt;children = array( 1 =&gt; 'attachment');
$verticalTab-&gt;format_type = 'tab';
$verticalTab-&gt;weight = '0';


So am I missing something? or has this notice got nothing to do with the vertical tab and do I have to look elsewhere?

Any help to fix this notice would be appreciated.
Normally the collapsed and collapsible properties are used on fieldsets.
It looks like field_group is expecting for an undefined property on the vertical tabs object.

You could try adding them to your definition as such:

$verticalTab-&gt;collapsible = FALSE;
$verticalTab-&gt;collapsed = FALSE;


That should keep the field_group module happy.