Closed michelep closed 1 year ago
Hi @michelep , Thanks for reporting this issue.
Which PHP version is running on your server ?
Looking at the code, it is strange that the retrieved value of crowdsec_tls_cert_path
database entry is a boolean:
ltrim($rawConfigs['crowdsec_tls_cert_path'] ?? '', '/')
Could you look in the wp-options
table and share the value of your crowdsec_tls_cert_path
entry ?
[EDIT]: Ok, I can reproduce the bug : I guess you don't have any entry in your database for the crowdsec_tls_cert_path
.
Then the WordPress get_option(crowdsec_tls_cert_path) method returns false => BUG
Anyway, I guess I could force a string cast to avoid such error.
Will work on a fix asap.
Thanks again.
Could you look in the
wp-options
table and share the value of yourcrowdsec_tls_cert_path
entry ?
Column "option_value" is empty and "autoload" is "yes".
Hope this help!
Hi @michelep,
I released a new 2.0.2
version of the plugin with a fix for your issue.
Please let me know if it is ok with this new release.
Thanks
Fatal error: Uncaught TypeError: ltrim() expects parameter 1 to be string, bool given in /website/www/wp-content/plugins/crowdsec/inc/Bouncer.php:67 Stack Trace