Title: undefined array
Last modified: October 31, 2024

---

# undefined array

 *  Resolved [OX](https://wordpress.org/support/users/oxindustries/)
 * (@oxindustries)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/undefined-array-4/)
 * Hi,
 * I’ve installed the Groups plugin on a local staging site. I’m getting the following
   error message:
   “Warning: Undefined array key 1 in /Applications/MAMP/htdocs/riders2025/
   wp-admin/menu-header.php on line 202”
 * When I go there it’s this:
 *     ```wp-block-code
       if ( ! current_user_can( $sub_item[1] ) ) {
       ```
   
 * Any ideas how to resolve this?
 * Best, K

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/undefined-array-4/#post-18208371)
 * Hi,
 * Do you still get this with the latest version? If yes, can you please provide
   a full stack trace and describe when exactly this happens? I.e. which actions
   do you take on the site that yield this warning?
 *  Plugin Author [Kento](https://wordpress.org/support/users/proaktion/)
 * (@proaktion)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/undefined-array-4/#post-18218836)
 * Assuming this is resolved, please feel free to follow up with details if the 
   issue persists.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘undefined array’ is closed to new replies.

 * ![](https://ps.w.org/groups/assets/icon-256x256.png?rev=983146)
 * [Groups](https://wordpress.org/plugins/groups/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/groups/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/groups/)
 * [Active Topics](https://wordpress.org/support/plugin/groups/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/groups/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/groups/reviews/)

## Tags

 * [group](https://wordpress.org/support/topic-tag/group/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kento](https://wordpress.org/support/users/proaktion/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/undefined-array-4/#post-18218836)
 * Status: resolved