Notice: Undefined property: stdClass::$collapsible in field_group_pre_render_tab() (line 829 of [path]/sites/all/modules/field_group/field_group.module).
Notice: Undefined property: stdClass::$collapsed in field_group_pre_render_tab() (line 830 of [path]/sites/all/modules/field_group/field_group.module).

This appears on almost all pages that have grouped fields on them. I did have these configured first to be horizontal tabs. I got a similar notice, so I changed them to collapsible fieldsets. I've since made them all open fieldsets, cleared all caches using Drush. This PHP notice persists. Anyone else?

CommentFileSizeAuthor
#3 Afbeelding 14.png279.79 KBknalstaaf
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Hanpersand’s picture

Want to add that the fields I'm working with are core user profile fields, not node/content type fields. In case that helps. Thank you!

Hanpersand’s picture

Adding some more:
My mistake... the error was appearing when there were horizontal tabs set on those fields for the Display Suite user display. I turned off the horizontal tabs, and the notice is gone now. This makes more sense. I'll report if it comes back. But there is a problem with horizontal tabs and user fields on my site.

knalstaaf’s picture

FileSize
279.79 KB

I'm having the same error (not sure what you mean with "horizontal tabs" though) with a Display Suite display:

Notice: Undefined property: stdClass::$collapsible in field_group_pre_render_fieldset() (line 583 of /home/usr1/domain/public_html/sites/all/modules/field_group/field_group.module).
Notice: Undefined property: stdClass::$collapsed in field_group_pre_render_fieldset() (line 584 of /home/usr1/domain/public_html/sites/all/modules/field_group/field_group.module).

The result is that the field group is not collapsible at all. It behaves like the jQuery-script has been turned off.

Another weird thing is that in the Manage Display UI the settings don't change if you pick another FieldGroup display (eg: Div to Fieldset) automatically as usual. You only seem to get the options when you click the gear. And even after that, the previous settings seems to be displayed in the UI.

Edit: hold on, it looks like it's ok now. No idea what fixed it, it was probably a cache issue.

SocialNicheGuru’s picture

Issue summary: View changes

I am using field_group
I have setup horizontal tabs.
I do not have DS enabled.
the line in code
There are modules which add fieldgroups that do not have collapsed or collapsable field sets defined.
In my case it was the print module.

here are the lines from the error in fieldgroup.module

    '#collapsible' => $group->collapsible,
    '#collapsed' => $group->collapsed,
sime’s picture

Status: Active » Closed (outdated)

This issue is over 2 years old, so marking it outdated, it is possibly fixed in subsequent versions.
Please reopen if this is an ongoing concern, as a fix shouldn't be difficult.

yasheshb’s picture

I had a similar issue which i was seeing when i did the following operation on a node

http://examplesite.com/node/1
and then do edit
http://examplesite.com/node/1

Notice: Undefined property: stdClass::$collapsible in field_group_pre_render_fieldset() (line 697 of sites/all/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$collapsed in field_group_pre_render_fieldset() (line 698 of sites/all/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$collapsible in field_group_pre_render_fieldset() (line 704 of sites/all/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$collapsed in field_group_pre_render_fieldset() (line 704 of sites/all/modules/contrib/field_group/field_group.module).

Essentially if I did an edit directly it did not show the warning.
Hence the php notice i was getting was due to the view.

So i checked the content type (CT1)
which had field groups
and then i checked the Manage Display for the fields of CT1.

http://examplesite.com/admin/structure/types/manage/CT1/display
and then added the Field group settings to collapsible
and saved it.

Field group format: fieldset
Field group label
Inward Details
Please enter a label for collapsible elements
Fieldgroup settings

works fine after that.