• 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

    (@johnbillion)

    WordPress Core Developer

    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

    (@ipajen)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined array key’ is closed to new replies.