thebrandonallen / wp-fail2ban-redux

Records various WordPress events to your server's system log for integration with Fail2Ban.
GNU General Public License v2.0
63 stars 13 forks source link

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback #9

Closed einkoro closed 5 years ago

einkoro commented 5 years ago

WP Fail2Ban Redux 0.4.0 WordPress 4.9.8

With WP Fail2Ban Redux enabled the following warning is logged on every request: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_return_true' not found or invalid function name in www/wordpress/wp-includes/class-wp-hook.php on line 286

thebrandonallen commented 5 years ago

Are you using any of the filters from the following wiki page? https://github.com/thebrandonallen/wp-fail2ban-redux/wiki/Filters

I had a type in a few of the filter examples that had the callback __return_true as _return_true. Note that the correct version has two leading underscores, not one.

If you're not using any of these filters, then I couldn't tell you what's happening.

einkoro commented 5 years ago

Looks like that was it–thanks.