Skip to:
Content
Pages
Categories
Search
Top
Bottom

HTTP ERROR 500


  • AndrewLeonard
    Participant

    @andrewleonard

    I am getting a HTTP ERROR 500 when I click on a Forum e.g.: https://ebps.org.uk/forums/forum/biology/
    If I click on a post – it works, i.e: https://ebps.org.uk/forums/topic/sporangia-under-the-microscope/
    If I click on “All Forums” from the dashboard, I get the 500 error
    If I click on “NEW Forum” it works
    The error_log says:
    functions.php:1800
    Stack trace:
    #0 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
    #1 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #2 /var/sites/e/ebps.org.uk/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #3 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(1683): do_action_ref_array(‘pre_get_posts’, Array)
    #4 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(3248): WP_Query->get_posts()
    #5 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(617): WP_Query->query(Array)
    #6 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(735): WP->query_posts()
    #7 /var/sites/e/ebps.org.uk/public_html/wp-includes/functions.php(955): WP->main(”)
    #8 /var/sites/e/ebp in /var/sites/e/ebps.org.uk/public_html/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800

    This is the code
    1793 /** Default ***********************************************************/
    1794
    1795 // Get any existing post status
    1796 $post_stati = $posts_query->get( ‘post_status’ );
    1797
    1798 // Default to public status
    1799 if ( empty( $post_stati ) ) {
    1800 $post_stati[] = bbp_get_public_status_id();

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)

  • AndrewLeonard
    Participant

    @andrewleonard

    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”


    AndrewLeonard
    Participant

    @andrewleonard

    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?


    w-sky
    Participant

    @w-sky

    Yes, I got the same error when switching from PHP 7.0 to 7.1 – ifaik this problem is fixed in bbPress 2.6. My advice: Switch back to PHP 7.0 until the update for bbPress has arrived.


    Siam
    Participant

    @siamlottery

    2.6 is work fine now

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar