After receiving the following errors when installing with Filter Permissions, and then going to the Permissions page:
Notice: Undefined offset: 1 in theme_fpa_user_admin_permissions() (line 112 of C:\Users\[my-path]\sites\all\modules\contrib\fpa\fpa.theme.inc). Notice: Undefined index: empty in theme_fpa_user_admin_permissions() (line 190 of C:\Users\[my-path]\sites\all\modules\contrib\fpa\fpa.theme.inc). Notice: Undefined offset: 1 in theme_fpa_user_admin_permissions() (line 209 of C:\Users\[my-path]\sites\all\modules\contrib\fpa\fpa.theme.inc). Notice: Undefined index: #checked in theme_fpa_user_admin_permissions() (line 226 of C:\Users\[my-path]\sites\all\modules\contrib\fpa\fpa.theme.inc). Notice: Undefined offset: 1 in theme_fpa_user_admin_permissions() (line 239 of C:\Users\[my-path]\all\modules\contrib\fpa\fpa.theme.inc). Notice: Undefined index: #return_value in theme_fpa_user_admin_permissions() (line 250 of C:\Users\[my-path]\sites\all\modules\contrib\fpa\fpa.theme.inc). Notice: Undefined index: #return_value in theme_fpa_user_admin_permissions() (line 254 of C:\Users\[my-path]\sites\all\modules\contrib\fpa\fpa.theme.inc).
Using:
- Drupal 7.34
- filter_perms 7.x-1.0
- fpa 7.x-2.6
Actions:
- Go to the Permissions page
- In the Permissions filters, set to:
- All Roles
- All Modules
- Click 'Filter Permissions' button
...used the admin/reports/status/rebuild to rebuild the permissions, and returning to the Permissions page didn't show any errors. Will update this ticket if anything changes, but rebuilding the permissions may be the solution for others.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 0001-fix.patch | 840 bytes | AmirL2 |
| #3 | fpa-resolve_notices_thrown_in_theme_hook-2554991-3.patch | 7.21 KB | danielmrichards |
Comments
Comment #2
circuscowboy commentedRebuilding permissions did not solve the problem for me. Any other ideas?
Comment #3
danielmrichards commentedHi @rajmataj, I have run into the same issue as you. It particularly appears to happen when viewing a filtered list of permissions e.g.
admin/people/permissions/5.Attached is a patch which solves the issue for me.
Comment #4
rajmataj commentedThanks for the patch. Changing ticket status.
Comment #5
AmirL2 commentedI had same problems as topic starter. And patch #3 didn't work for me.
Comment #6
MisterSpeed commentedI've tested the #5 patch and it works well. Let's consider this RTBC and move it to the main module pls.
Comment #7
sgdev commentedPatch #5 fixes one problem and creates another. Undefined offset errors are resolved, but creates a new problem later in the same function.
This code on lines 255/259 now throws errors that
#sortedis undefined.Comment #8
sgdev commentedAlso this is a code issue, not a documentation problem.
Comment #9
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.