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.

Comments

rajmataj created an issue. See original summary.

circuscowboy’s picture

Rebuilding permissions did not solve the problem for me. Any other ideas?

danielmrichards’s picture

Hi @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.

rajmataj’s picture

Status: Active » Needs review

Thanks for the patch. Changing ticket status.

AmirL2’s picture

StatusFileSize
new840 bytes

I had same problems as topic starter. And patch #3 didn't work for me.

MisterSpeed’s picture

I've tested the #5 patch and it works well. Let's consider this RTBC and move it to the main module pls.

sgdev’s picture

Version: 7.x-2.6 » 7.x-2.x-dev
Status: Needs review » Needs work

Patch #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 #sorted is undefined.

      if (!empty($rid)) {
        $row['title'] = array(
          $form['checkboxes'][$rid][$key]['#return_value'],
        );
        
        $row[FPA_ATTR_SYSTEM_NAME] = array(
          $form['checkboxes'][$rid][$key]['#return_value'],
        );
      }
sgdev’s picture

Component: Documentation » Code

Also this is a code issue, not a documentation problem.

astonvictor’s picture

Status: Needs work » Closed (outdated)

D7 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.

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

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

Maintainers, please credit people who helped resolve this issue.