OK
Now I have removed the code above and reset PHP to version 7.0 and it is working
Is there going to be a fix so BBPress works with PHP 7.1?
I just tried entering the code:
if (!is_array($post_stati)){
$post_stati = array($post_stati);
}
and now I get to: https://ebps.org.uk/forums/forum/biology/ and get a “Not found”