When editing a node:

* Notice: Undefined variable: collapsible in field_group_field_group_pre_render() (line 504 of /var/aegir/platforms/attiks.7.beta1/sites/all/modules/field_group/field_group.module).
* Notice: Undefined variable: collapsed in field_group_field_group_pre_render() (line 505 of /var/aegir/platforms/attiks.7.beta1/sites/all/modules/field_group/field_group.module).
* Notice: Undefined variable: classes in field_group_field_group_pre_render() (line 507 of /var/aegir/platforms/attiks.7.beta1/sites/all/modules/field_group/field_group.module).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

attiks’s picture

Status: Active » Closed (fixed)

d7 beta1 problem

BenK’s picture

Version: » 7.x-1.x-dev
Status: Closed (fixed) » Active

I just downloaded the -dev version as of today (April 6, 2011) and I'm experiencing the same errors at the top of the admin/modules page.

Ideas on how to fix?

--Ben

BenK’s picture

I'm also getting this error when viewing a node...

BenK’s picture

The error goes away if I use 7.x-1.0-rc2, so it appears that one of the recent commits (after 7.x-1.0-rc2) is causing this error.

--Ben

nils.destoop’s picture

I'll check today what commit introduced the notices, and fix it.
Can someone tell me, what type of groups they are using? So i can test with same type of group.

nils.destoop’s picture

Status: Active » Postponed (maintainer needs more info)
BenK’s picture

Status: Postponed (maintainer needs more info) » Active

I just added a Field Group to the article content type and selected "Fieldset" as my widget. The notices seems to display, however, for other widget types. And I did added the field group on the "Manage Display" page, but the warning also seemed to appear if a field group is added on "Manage Fields", too.

--Ben

Stalski’s picture

Can someone update this issue with the status. We did some reworking and it just might happen this bug is gone too.
Thx in advance.

Stalski’s picture

Status: Active » Fixed

This should really be fixed. I'll close this if there is no action here anymore.

Status: Fixed » Closed (fixed)

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

paulap’s picture

Title: Notice: Undefined variables » Notice: Undefined variables - IS HERE AGAIN
Priority: Normal » Major
Status: Closed (fixed) » Active

We are using the latest dev (30.08.2012) but the error is already in 1.1 too.

We have 2 fieldsets on the form. We get following message:
Notice: Undefined property: stdClass::$collapsible in field_group_pre_render_fieldset() (Zeile 572 von /var/www/virtual/iuseknowhow.com/community/htdocs/sites/all/modules/field_group/field_group.module).
x
Notice: Undefined property: stdClass::$collapsed in field_group_pre_render_fieldset() (Zeile 573 von /var/www/virtual/iuseknowhow.com/community/htdocs/sites/all/modules/field_group/field_group.module).

If we comment out the two lines the messages disappear:
function field_group_pre_render_fieldset(&$element, $group, &$form) {

$element += array(
'#type' => 'fieldset',
'#title' => check_plain(t($group->label)),
/* '#collapsible' => $group->collapsible,
'#collapsed' => $group->collapsed, */
'#pre_render' => array(),
'#attributes' => array('class' => explode(' ', $group->classes)),
'#description' => $group->description,
);
$element['#attached']['js'][] = 'misc/form.js';
$element['#attached']['js'][] = 'misc/collapse.js';

}

nils.destoop’s picture

Status: Active » Closed (cannot reproduce)

Not even answering on this kind of issue titles.

Stalski’s picture

Title: Notice: Undefined variables - IS HERE AGAIN » Notice: Undefined variables

changing issue title back.

@paulap: if you can figure out why it happens on your install and you found a solution, please comment here so others can benefit from your findings.

anthonylindsay’s picture

Issue summary: View changes
Priority: Major » Normal
Status: Closed (cannot reproduce) » Needs review
FileSize
960 bytes

I'm opening this old issue up again because a) it was never really resolved and b) it's still an issue on 7.x-1.6 running PHP7.2.

This was the particular watchdog log entry:

Notice: Undefined property: stdClass::$collapsed in field_group_pre_render_fieldset() (line 707 of field_group/field_group.module).

I'm adding a patch which solves it.

Steps to test:

  1. add a fieldset on an entity. In my case it was a user entity.
  2. go to an entity instance and edit it. This should trigger the error in the logs.