Giter Club home page Giter Club logo

Comments (3)

julienloizelet avatar julienloizelet commented on June 4, 2024

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.

from cs-wordpress-bouncer.

michelep avatar michelep commented on June 4, 2024

Could you look in the wp-options table and share the value of your crowdsec_tls_cert_path entry ?

Column "option_value" is empty and "autoload" is "yes".

Hope this help!

from cs-wordpress-bouncer.

julienloizelet avatar julienloizelet commented on June 4, 2024

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

from cs-wordpress-bouncer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.