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
In version 4.0, some php 8 only functions were introduced, like str_starts_with()
. This gives fatal error on activation. Still it says “Requires PHP >= 7.3”.
I would like to write to the console from inside my plugin class. When I user apply_filters(‘console’, ‘testing’) and load my site nothing displays in the console in the backend.
Does something different need to be done inside a class?
]]>SQL code row styling issue.
Sometimes some extremely long queries from wp-options table break the visual readable table. We need something like:
#glbb-debug-bar code, #glbb-debug-bar pre {
white-space: pre-wrap;
}
#glbb-debug-bar td, #glbb-debug-bar tr {
flex-direction: column;
}
Without this I have to scroll for a long time horizontally to find all other SQL queries. It’s just optimal which can be fixed with some CSS when there are edge cases of very long queries.
]]>]]>This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Hello,
It would be nice to have a detailed description on how to profile plugins performance with the profiler.
]]>Hello @geminilabs,
I get an “Uncaught TypeError: Cannot read property ‘addEventListener’ of null” message in my Chrome Console Bar when I activate your plugin (version 2.1.1). The message originates from the main.js file in the assets folder.
I don’t experience any issues with it, but I thought you might want to know about it.
]]>Impressed with Black Bar.
Is it possible to restrict visibility to admins only?
Although probably intended to just be installed on dev environments, it would be good to have the option of using it to debug something quickly on a live site without it being visible to all users.
]]>Used Black Box for years. Decided to try your adopted version. Can’t find anything that actually shows the debug bar.
]]>