Undefined property: stdClass::$region in field_group_form_process()

Created on 5 June 2019, about 5 years ago
Updated 27 July 2023, 11 months ago

Hi there!

On 8.x-3.0-rc1 I got this notice:

Notice: Undefined property: stdClass::$region in field_group_form_process() (line 318 of modules/contrib/field_group/field_group.module).

After looking into this method, I found that on the following line it is assumed the region property is set:
$group_parents[] = empty($group->parent_name) ? $group->region : $group->parent_name;

I don't know if the above is actually correct or if $group->region should be replaced with $group->parent_name since that one is being checked on being empty() or not.

I've also related https://www.drupal.org/project/field_group/issues/3054195 πŸ› Watchdog notice: Undefined property: stdClass: Needs work to this issue since it's probably coming from a same kind of situation.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands frankgraave

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jakegibs617

    #48 and #37 are no longer working for me having upgraded to d10. "drupal/field_group": "^3.4"

    looks like the code is now in the new version so we don't need the patch anymore. Can someone confirm?

Production build 0.69.0 2024