• Resolved mgordyi99

    (@mgordyi99)


    After updating plugin to the latest version (4.0.2) I got a fatal error:

    Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/wp-includes/blocks.php:841

    According to the stack trace the issue is here:
    #8 /var/www/html/wp-content/plugins/blackbar/plugin/Controller.php(46): array_map() #9 /var/www/html/wp-includes/class-wp-hook.php(357): GeminiLabs\BlackBar\Controller->initConsole()

    If Black Bar plugin is disabled – there is no error and website works normally.

    WP version: 6.3.1
    PHP version: 8.0.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    How are you using the console?

    apply_filters('console', 'Enter something to debug here');
    Plugin Author Gemini Labs

    (@geminilabs)

    Fixed logging of non-scalar values in the console.

    Please update to v4.0.3.

    Thread Starter mgordyi99

    (@mgordyi99)

    Thank you very much for so fast reply and fix!

    After updating to 4.0.3 everything is working fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error after plugin update to version 4.0.2’ is closed to new replies.