The full error text is:

Notice: Undefined index: #verbs in theme_permissions_grid_admin_node_permissions_form() (line 151 of /private/var/www/awesome/site/sites/all/modules/contrib/permission_grid/permissions_grid.admin.inc).
Warning: array_merge(): Argument #2 is not an array in theme_permissions_grid_admin_node_permissions_form() (line 152 of /private/var/www/awesome/site/sites/all/modules/contrib/permission_grid/permissions_grid.admin.inc).
Warning: Invalid argument supplied for foreach() in element_children() (line 6400 of /private/var/www/awesome/site/includes/common.inc).

and occurs when you access the permission grid for a role but don't have any vocabularies configured in the site. Adding a vocabulary (without any terms) resolves the error. Removing the vocabulary and the error returns.

Admit this is an edge case but should be easy to resolve.

Comments

my-family’s picture

I experienced the same problem

joachim’s picture

Issue summary: View changes
Status: Active » Fixed

Committed a fix. Thanks for reporting!

  • Commit 6b16db2 on 7.x-1.x by joachim:
    Issue #1963902 by joachim: Fixed notice when no vocabularies exist.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

oryx’s picture

I tried with 7.x-1.3 and 7.x-1.x : they are both still showing this error. I though the above patch was committed to 7.x-1.x ?

Thanks,