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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | simple_access-3283853-3.patch | 1.5 KB | michelle |
| #2 | simple_access-3283853-2.patch | 1.5 KB | michelle |
Comments
Comment #2
michelleComment #3
michelleComment #4
michelleFound an issue with my previous patch. The default needs to be set to an empty array, not empty string. Updated the patch.
Comment #5
acbramley commentedThis has been fixed in the 4.x branch.