• Malae

    (@malae)


    Hello John,
    Please fix the following PHP warning:
    PHP Warning: Undefined array key "file" in /query-monitor/collectors/php_errors.php on line 367

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks, can you let me know which errors are being logged in the “PHP Errors” panel in Query Monitor please? A screenshot of that panel would be good.

    Thread Starter Malae

    (@malae)

    The above warning was in the wp-debug file, but nothing is showing in the panel. Assuming that this may be thrown by another plugin, I have gone through the site and the only issue I found is that if I try to open Customise, I get a fatal error:

    Fatal error: Uncaught Error: strnatcasecmp(): Argument #1 ($string1) must be of type string, array given
    in /home/u675030324/domains/chronographia.eu/public_html/wp-includes/class-wp-customize-widgets.php on line 1

    Call stack:

    strnatcasecmp()
    wp-includes/class-wp-customize-widgets.php:1131

    WP_Customize_Widgets::_sort_name_callback()

    usort()
    wp-includes/class-wp-customize-widgets.php:1050

    WP_Customize_Widgets::get_available_widgets()
    wp-includes/class-wp-customize-widgets.php:714

    WP_Customize_Widgets::enqueue_scripts()
    wp-includes/class-wp-hook.php:308

    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:332
    `

    WP_Hook::do_action()
    wp-includes/plugin.php:517

    do_action()
    wp-admin/customize.php:1

    Query Monitor

    • This reply was modified 3 years ago by Malae.
Viewing 2 replies - 1 through 2 (of 2 total)

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