• Resolved George Sexton

    (@gsexton)


    I’m using the free version, and I have in my wp-config.php

    define('WP_FAIL2BAN_BLOCK_USER_ENUMERATION','true);

    My logs are filled with php errors:

    PHP Notice: Constant WP_FAIL2BAN_BLOCK_USER_ENUMERATION already defined in /foo/bar/wp-config.php on line 111

    I looked at the code in wp-fail2ban/lib/loader.php, and it looks like it’s trying to see if things are already defined, but that’s failing. I think it has to do with the namespace.

    I played around with this, but just can’t seem to figure out the magic.

    If you could look into this, it would be appreciated.

    Thanks.

    George

Viewing 1 replies (of 1 total)
  • Plugin Author invisnet

    (@invisnet)

    You need define any WPf2b constants above the line in wp-config.php that says /* That's all, stop editing! Happy blogging. */.

    (This has now become a genuine FAQ – I’ll update the docs and readme).

Viewing 1 replies (of 1 total)

The topic ‘Error when Configured via wp-config.php’ is closed to new replies.