Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author invisnet

    (@invisnet)

    What have you defined WP_FAIL2BAN_LOG_COMMENTS_EXTRA as?

    Thread Starter sleeplessindc

    (@sleeplessindc)

    I don’t have that. This is what I have:

    /** Fail2Ban logs */
    define('WP_FAIL2BAN_LOG_SPAM', true);
    define('WP_FAIL2BAN_BLOCKED_USERS', ['admin', 'administrator', 'competition', 'rootuser', 'root', 'blog', 'test', 'stcwdc']);
    define('WP_FAIL2BAN_BLOCK_USER_ENUMERATION', true);
    define('WP_FAIL2BAN_LOG_COMMENTS', true);
    define('WP_FAIL2BAN_COMMENT_EXTRA_LOG', LOG_LOCAL5);
    define('WP_FAIL2BAN_COMMENT_LOG', LOG_LOCAL3);
    define('WP_FAIL2BAN_LOG_COMMENTS_EXTRA', WPF2B_EVENT_COMMENT_NOT_FOUND | WPF2B_EVENT_COMMENT_CLOSED | WPF2B_EVENT_COMMENT_DRAFT | WPF2B_EVENT_COMMENT_PASSWORD);
    define('WP_FAIL2BAN_LOG_PASSWORD_REQUEST', true);
    define('WP_FAIL2BAN_LOG_PINGBACKS', true);
    Plugin Author invisnet

    (@invisnet)

    WP_FAIL2BAN_LOG_COMMENTS_EXTRA

    You need to use the actual numeric values of the constants, not the constant names, as they’re not defined at that point. In this case, define('WP_FAIL2BAN_LOG_COMMENTS_EXTRA', 0x00020002 | 0x00020004 | 0x00020010 | 0x000A0020);.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Non-numeric value in /admin/config/logging.php on line 160’ is closed to new replies.