what other plugins do you have?
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Thanks for the tip!
Yes I pinned-it down to a conflict with one plugin, Easy Digital Downloads – Currency Converter.
I’ve just notified the plugin authors on their site.
Just found this thread. Getting the error and can’t identify why. Disabling plugins didn’t help.
Editing line 1446 and adding the array() call around the 2nd argument works fine and solves the problem. Is there any reason this is not done in the main code?
Are you on a local development enviroment like XAMPP??
Nope, its on WP Engine. I went to look through the logs because I was having the capabilities problem. I couldn’t access any of the wp-admin bbpress screens without permissions errors. I used User Role Editor, and hit reset to fix that.
Then looking through the logs the were just filled with the same error from the same line as this person who started this thread. Changed the path to HIDDEN here:
Warning: in_array() expects parameter 2 to be array, null given in HIDDEN\wp-content\plugins\bbpress\includes\common\functions.php on line 1446
Going into functions.php and changing the second parameter to be wrapped in an array() call fixes it.
hmm I might have to report a bug.
before you fixed it, what did the url of your site look like (you can of course not put your actual site link)?? I am wondering if this could cause any issues that are at least similar to users having trouble installing on a local development installation.
It was https://thedomain.com/ for wordpress and bbpress was standard, so https://thedomain.com/forums/
For the path, it was standard for WP Engine:
The log was just getting spammed with that error until I added that array(). But it wasn’t the big problem, so I wouldn’t have looked or noticed it unless I was having some other unrelated issue.
alright thanks for telling me, I guess I will keep a look on this then.
Apologies for the late reply, this is not a bbPress bug, per above it’s a known issue with Easy Digital Downloads – Currency Converter., and in the following topic it is actually an issue with Yoast’s SEO or News SEO plugin.
News SEO & BBPress Conflict