I've been getting notices where variables are empty and not being checked for that:

Notice: Undefined index: profiles in simple_access_form() (line 339 of modules/contrib/simple_access/simple_access.module).
Notice: Undefined index: groups in simple_access_form() (line 344 of modules/contrib/simple_access/simple_access.module).
Notice: Undefined index: owner in Drupal\simple_access\Element\SimpleAccessGroups::processSimpleAccessGroups() (line 74 of modules/contrib/simple_access/src/Element/SimpleAccessGroups.php).

I made a patch to "fix" it simply by checking whether they are empty before using them but I don't know if there is some deeper problem that is causing them to be empty. So this may be more of a bandage than a cure.

Comments

Michelle created an issue. See original summary.

michelle’s picture

StatusFileSize
new1.5 KB
michelle’s picture

Status: Active » Needs review
michelle’s picture

StatusFileSize
new1.5 KB

Found an issue with my previous patch. The default needs to be set to an empty array, not empty string. Updated the patch.

acbramley’s picture

Status: Needs review » Closed (outdated)

This has been fixed in the 4.x branch.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.