Title: Undefined array key &#8220;wp_the_query&#8221;
Last modified: January 12, 2023

---

# Undefined array key “wp_the_query”

 *  Resolved [gripenk](https://wordpress.org/support/users/gripenk/)
 * (@gripenk)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-wp_the_query/)
 * Environment: Kinsta, , MySQL:10.5.18-MariaDB-1:10.5.18+maria~ubu2004 WordPress:
   5.8.3 WordPress database:49752 php:8.0.26
 * wp_users: 18,426 rows, wp_usermeta: [400,786](https://mysqleditor-staging-clonen-dev.kinsta.cloud/index.php?route=/database/structure/real-row-count&ajax_request=1&db=clonen&table=wp_usermeta)
   rows
 * Installed version: 1.1.3 
 * The plugin can be installed and loaded, but no option/setting is shown. The following
   PHP error are logged:
 *     ```wp-block-code
       2023/01/12 03:54:21 [error] 76263#76263: *1839 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "wp_the_query" in /www/clonen_338/public/wp-includes/query.php on line 114" while reading response header from upstream, client: 175.159.181.163, server: staging-clonen-dev.kinsta.cloud, request: "GET /wp-admin/users.php?page=index-wp-users-for-speed HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-clonen.sock:", host: "staging-clonen-dev.kinsta.cloud:56149", referrer: "https://staging-clonen-dev.kinsta.cloud/wp-admin/users.php?page=users-user-role-editor.php"
       2023/01/12 03:54:21 [error] 76263#76263: *1839 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function IndexWpUsersForSpeed\get_user_count() in /www/clonen_338/public/wp-content/plugins/index-wp-users-for-speed/includes/indexer.php:330
       Stack trace:
       #0 /www/clonen_338/public/wp-content/plugins/index-wp-users-for-speed/admin/views/page.php(37): IndexWpUsersForSpeed\Indexer::getNetworkUserCount()
       #1 /www/clonen_338/public/wp-content/plugins/index-wp-users-for-speed/admin/admin.php(219): include_once('/www/clonen_338...')
       #2 /www/clonen_338/public/wp-includes/class-wp-hook.php(303): IndexWpUsersForSpeed\Admin->render_admin_page('')
       #3 /www/clonen_338/public/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
       #4 /www/clonen_338/public/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
       #5 /www/clonen_338/public/wp-admin/admin.php(259): do_action('users_page_inde...')
       #6 /www/clonen_338/public/wp-admin/users.php(11): require_once('/www/clonen_338...')
       #7 {main}
         thrown in /www/clonen_338/public/wp-content/plug" while reading upstream, client: 175.159.181.163, server: staging-clonen-dev.kinsta.cloud, request: "GET /wp-admin/users.php?page=index-wp-users-for-speed HTTP/1.1", upstream: "fastcgi://unix:/var/run/php8.0-fpm-clonen.sock:", host: "staging-clonen-dev.kinsta.cloud:56149", referrer: "https://staging-clonen-dev.kinsta.cloud/wp-admin/users.php?page=users-user-role-editor.php"
       ```
   

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

 *  Plugin Author [OllieJones](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-wp_the_query/#post-16367556)
 * Thank you for the defect report! I am investigating it.
 *  Plugin Author [OllieJones](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-wp_the_query/#post-16367904)
 * This defect is due to my incomplete testing on WordPress pre 5.9. Sorry about
   that, and thanks for your patience. Fixed in 1.1.4.
 * [https://github.com/OllieJones/index-wp-users-for-speed/issues/8](https://github.com/OllieJones/index-wp-users-for-speed/issues/8)

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

The topic ‘Undefined array key “wp_the_query”’ is closed to new replies.

 * ![](https://ps.w.org/index-wp-users-for-speed/assets/icon-128x128.png?rev=2706957)
 * [Index WP Users For Speed](https://wordpress.org/plugins/index-wp-users-for-speed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/index-wp-users-for-speed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/index-wp-users-for-speed/)
 * [Active Topics](https://wordpress.org/support/plugin/index-wp-users-for-speed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/index-wp-users-for-speed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/index-wp-users-for-speed/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [OllieJones](https://wordpress.org/support/users/olliejones/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/undefined-array-key-wp_the_query/#post-16367904)
 * Status: resolved