How to stop certain warning logging in error.log?


bbPress has an annoying error about bbp_setup_current_user was called incorrectly. bbPress topic and bbPress ticket #2412, and it looks like nothing will change to fix it.

On the site we used to use forum as a support platform, but has since then moved to a ticket system, so I’ve closed the forums, but you can look through them. I’ve also commented out the notice that was thrown in the backend because of it, but the problem is that the error.log on the server is filled with such errors (it’s 85MB during the last 4 days). It’s all like this:

[Fri Aug 26 02:00:52.251831 2016] [:error] [pid 1832] [client xx.xx.xx.xx:32824] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘bbp_setup_current_user’ not found or invalid function name in /var/www/html/wp-includes/plugin.php on line 524

So is there any kind of command I can use to suppress the writing of this specific warning in the error log? I’d still like to have possible errors written here.

, dingo_d 2 years 2020-01-01T08:38:22-05:00 0 Answers 95 views 0

Leave an answer