Re: Anybody on PHP5?
If you’re getting that error when WP_BB is set, you’re probably not including wp-config.php correctly.
You do not need to load wp-config.php in order to integrate cookies or most anything else.
See https://bbpress.org/documentation/integration-with-wordpress/
and https://bbpress.org/documentation/faq/#integration-plugins