Thanks for the report. I’ll take a look. Do you know if the error appears in earlier PHP versions too?
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.
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
//@ini_set( 'display_errors', 1 );
[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