Fatal Error after plugin update to version 4.0.2

[ad_1]

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer