• Your plugin is ironically displaying the following error:

    Trying to access array offset on value of type bool
    wp-content/plugins/query-monitor/collectors/environment.php:264
    do_action(‘shutdown’)
    wp-includes/load.php:960
    shutdown_action_hook()
    Unknown location

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

    (@johnbillion)

    WordPress Core Developer

    Thanks. Is this in a Docker container? Or another environment where the uid of the user running the application isn’t present in /etc/passwd?

    I’m not sure how common this particular configuration is but it’s been reported before so I’ll get a fix in place.

    Thread Starter Filipe Seabra

    (@filiprimo)

    Thank you for your response.

    Actually, it is Docker. My sysuser on my OS is filipecsweb and it is not present within the container. It could be, but it is not.

    I added PHP null coalescing operator to solve it in my machine:

    
    $g     = posix_getgrgid( $u['gid'] ?? 0 );
    $php_u = $u['name'] ?? '' . ':' . $g['name'] ?? '';
    

    But that is only compatible with PHP 7+.

    Anyway, I’d appreciate any action from your end.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error with php 7.4 (Trying to access array offset on value of type bool)’ is closed to new replies.