Title: Undefined array key
Last modified: July 26, 2023

---

# Undefined array key

 *  [Jarko Piironen](https://wordpress.org/support/users/ipajen/)
 * (@ipajen)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-33/)
 * Not sure, is the issue in `twentytwentythree` or in `query-monitor` ? **on PHP
   8.3 beta 1 with 6.3 RC2**
 * `PHP Warning: Undefined array key "C:/wamp64/www/wordpress/wp-content/themes/
   twentytwentythree/parts/header.html" in C:\wamp64\www\wordpress\wp-content\plugins\
   query-monitor\output\html\theme.php on line 167
 * `PHP Warning: Undefined array key "C:/wamp64/www/wordpress/wp-content/themes/
   twentytwentythree/parts/footer.html" in C:\wamp64\www\wordpress\wp-content\plugins\
   query-monitor\output\html\theme.php on line 167`
 * === Environment
   – WordPress: 6.3-RC2– PHP: 8.3.0beta1– Server: Apache/2.4.54 (
   Win64) PHP/8.3.0beta1 mod_fcgid/2.3.10-dev– Database: mysqli (Server: 8.0.31 /
   Client: mysqlnd 8.3.0beta1)– Browser: Edge 115.0.1901.183 (Windows 10/11)– Theme:
   Twenty Twenty-Three 1.1
 * – Plugins:
      * Query Monitor 3.13.1
 * Thanks!

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

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-33/#post-16924956)
 * Thanks for the report. I’ll take a look. Do you know if the error appears in 
   earlier PHP versions too?
 *  Thread Starter [Jarko Piironen](https://wordpress.org/support/users/ipajen/)
 * (@ipajen)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-33/#post-16925090)
 * Changed to PHP 8.2.8 and it still exist but not sure but the stack trace are 
   longer in the debug file. To recreate I just activate the QM plugin and visit
   the start page as admin user. The QM doesn’t show the PHP warning its only in
   the debug file.
 * Hope this helps.
 *     ```wp-block-code
       define( 'WP_DEBUG_LOG', true );
       define( 'WP_DEBUG_DISPLAY', true );
       //@ini_set( 'display_errors', 1 );
       ```
   
 *     ```wp-block-code
       [26-Jul-2023 16:46:54 UTC] PHP Warning:  Undefined array key "C:/wamp64/www/wordpress/wp-content/themes/twentytwentythree/parts/header.html" in C:\wamp64\www\wordpress\wp-content\plugins\query-monitor\output\html\theme.php on line 167
       [26-Jul-2023 16:46:54 UTC] PHP Stack trace:
       [26-Jul-2023 16:46:54 UTC] PHP   1. shutdown_action_hook() C:\wamp64\www\wordpress\wp-includes\load.php:0
       [26-Jul-2023 16:46:54 UTC] PHP   2. do_action($hook_name = 'shutdown') C:\wamp64\www\wordpress\wp-includes\load.php:1252
       [26-Jul-2023 16:46:54 UTC] PHP   3. WP_Hook->do_action($args = [0 => '']) C:\wamp64\www\wordpress\wp-includes\plugin.php:517
       [26-Jul-2023 16:46:54 UTC] PHP   4. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php:334
       [26-Jul-2023 16:46:54 UTC] PHP   5. QM_Dispatcher_Html->dispatch('') C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php:310
       [26-Jul-2023 16:46:54 UTC] PHP   6. QM_Output_Html_Theme->output() C:\wamp64\www\wordpress\wp-content\plugins\query-monitor\dispatchers\Html.php:326
       [26-Jul-2023 16:46:54 UTC] PHP Warning:  Undefined array key "C:/wamp64/www/wordpress/wp-content/themes/twentytwentythree/parts/comments.html" in C:\wamp64\www\wordpress\wp-content\plugins\query-monitor\output\html\theme.php on line 167
       [26-Jul-2023 16:46:54 UTC] PHP Stack trace:
       [26-Jul-2023 16:46:54 UTC] PHP   1. shutdown_action_hook() C:\wamp64\www\wordpress\wp-includes\load.php:0
       [26-Jul-2023 16:46:54 UTC] PHP   2. do_action($hook_name = 'shutdown') C:\wamp64\www\wordpress\wp-includes\load.php:1252
       [26-Jul-2023 16:46:54 UTC] PHP   3. WP_Hook->do_action($args = [0 => '']) C:\wamp64\www\wordpress\wp-includes\plugin.php:517
       [26-Jul-2023 16:46:54 UTC] PHP   4. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php:334
       [26-Jul-2023 16:46:54 UTC] PHP   5. QM_Dispatcher_Html->dispatch('') C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php:310
       [26-Jul-2023 16:46:54 UTC] PHP   6. QM_Output_Html_Theme->output() C:\wamp64\www\wordpress\wp-content\plugins\query-monitor\dispatchers\Html.php:326
       [26-Jul-2023 16:46:54 UTC] PHP Warning:  Undefined array key "C:/wamp64/www/wordpress/wp-content/themes/twentytwentythree/parts/footer.html" in C:\wamp64\www\wordpress\wp-content\plugins\query-monitor\output\html\theme.php on line 167
       [26-Jul-2023 16:46:54 UTC] PHP Stack trace:
       [26-Jul-2023 16:46:54 UTC] PHP   1. shutdown_action_hook() C:\wamp64\www\wordpress\wp-includes\load.php:0
       [26-Jul-2023 16:46:54 UTC] PHP   2. do_action($hook_name = 'shutdown') C:\wamp64\www\wordpress\wp-includes\load.php:1252
       [26-Jul-2023 16:46:54 UTC] PHP   3. WP_Hook->do_action($args = [0 => '']) C:\wamp64\www\wordpress\wp-includes\plugin.php:517
       [26-Jul-2023 16:46:54 UTC] PHP   4. WP_Hook->apply_filters($value = '', $args = [0 => '']) C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php:334
       [26-Jul-2023 16:46:54 UTC] PHP   5. QM_Dispatcher_Html->dispatch('') C:\wamp64\www\wordpress\wp-includes\class-wp-hook.php:310
       [26-Jul-2023 16:46:54 UTC] PHP   6. QM_Output_Html_Theme->output() C:\wamp64\www\wordpress\wp-content\plugins\query-monitor\dispatchers\Html.php:326
       ```
   

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

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

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jarko Piironen](https://wordpress.org/support/users/ipajen/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-33/#post-16925090)
 * Status: not resolved