Title: Multisite network admin throws exception on non-existing array key
Last modified: January 13, 2026

---

# Multisite network admin throws exception on non-existing array key

 *  Resolved [David Beentjes](https://wordpress.org/support/users/unlocdavid/)
 * (@unlocdavid)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/multisite-network-admin-throws-exception-on-non-existing-array-key/)
 * When the plugin is active on (at least) the main site of a multiste nework, the
   network admin panel throws an exception:
   `Undefined array key "gamipress"` in
   the function `gamipress_admin_menu_fix` in `gamipress/includes/admin.php`
 * The menu item re-ordering is done whether or not the `gamipress` key exists on
   the `$submenu` array. Moving the affecting lines (128-135) inside the conditonal
   above them fixes it. Also see this gist revision I’ve made: [https://gist.github.com/unlocdavid/f9d9f3bcaee8b5f3f9b7d0bf978a4ae3/revisions#diff-bc2bbf2801e44b5801dbd98d39b34f63ce5c7e874d8d1e5a89967b636432578c](https://gist.github.com/unlocdavid/f9d9f3bcaee8b5f3f9b7d0bf978a4ae3/revisions#diff-bc2bbf2801e44b5801dbd98d39b34f63ce5c7e874d8d1e5a89967b636432578c)

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

 *  Plugin Contributor [Tino Calvo](https://wordpress.org/support/users/tinocalvo/)
 * (@tinocalvo)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/multisite-network-admin-throws-exception-on-non-existing-array-key/#post-18784406)
 * Hi [@unlocdavid](https://wordpress.org/support/users/unlocdavid/) ,
 * Thank you for pointing this out!
 * We just released an update fixing this. Please, update GamiPress and try again.
 * Hope it helps!
 *  Thread Starter [David Beentjes](https://wordpress.org/support/users/unlocdavid/)
 * (@unlocdavid)
 * [4 months, 4 weeks ago](https://wordpress.org/support/topic/multisite-network-admin-throws-exception-on-non-existing-array-key/#post-18784438)
 * Hi [@tinocalvo](https://wordpress.org/support/users/tinocalvo/) ,
 * Thank you for the fast release. Works great now!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultisite-network-admin-throws-exception-on-non-existing-array-key%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/gamipress/assets/icon-256x256.png?rev=1699714)
 * [GamiPress - Gamification plugin to reward points, achievements, badges & ranks in WordPress](https://wordpress.org/plugins/gamipress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gamipress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gamipress/)
 * [Active Topics](https://wordpress.org/support/plugin/gamipress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gamipress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gamipress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [David Beentjes](https://wordpress.org/support/users/unlocdavid/)
 * Last activity: [4 months, 4 weeks ago](https://wordpress.org/support/topic/multisite-network-admin-throws-exception-on-non-existing-array-key/#post-18784438)
 * Status: resolved