Skip to:
Content
Pages
Categories
Search
Top
Bottom

PHP 7.1 Fatal Error


  • Niresh
    Participant

    @niresh12495

    Please add PHP 7.1 Support

    [27-Mar-2017 05:50:06 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /home/user/public_html/wp-content/plugins/bbpress/includes/forums/functions.php:1800
    Stack trace:
    #0 /home/user/public_html/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
    #1 /home/user/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #2 /home/user/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #3 /home/user/public_html/wp-includes/class-wp-query.php(1681): do_action_ref_array(‘pre_get_posts’, Array)
    #4 /home/user/public_html/wp-includes/class-wp-query.php(3238): WP_Query->get_posts()
    #5 /home/user/public_html/wp-includes/class-wp.php(617): WP_Query->query(Array)
    #6 /home/user/public_html/wp-includes/class-wp.php(735): WP->query_posts()
    #7 /home/user/public_html/wp-includes/functions.php(955): WP->main(”)
    #8 /home/user/public_html/wp-blog-h in /home/user/public_html/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800

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

  • 5lions
    Participant

    @5lions

    I ran into all kinds of issues with php 7.1.
    A bunch of stuff doesnt work with it yet.

    I would try version 7.0.16.

    That was the latest version that would work with everything for me.

    try bbpress 2.6


    Niresh
    Participant

    @niresh12495

    Im getting blank pages, the bug still exist

    [31-Jul-2017 08:12:42 UTC] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in /home/user/public_html/wp-content/plugins/bbpress/includes/forums/functions.php:1800
    Stack trace:
    #0 /home/user/public_html/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
    #1 /home/user/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #2 /home/user/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #3 /home/user/public_html/wp-includes/class-wp-query.php(1683): do_action_ref_array('pre_get_posts', Array)
    #4 /home/user/public_html/wp-includes/class-wp-query.php(3248): WP_Query->get_posts()
    #5 /home/user/public_html/wp-includes/class-wp.php(617): WP_Query->query(Array)
    #6 /home/user/public_html/wp-includes/class-wp.php(735): WP->query_posts()
    #7 /home/user/public_html/wp-includes/functions.php(955): WP->main('')
    #8 /home/user/public_html/wp-blog-h in /home/user/public_html/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800
    

    Robin W
    Moderator

    @robin-w

    try

    in bbpress 2.5.12 change line 1800 from

    if ( empty( $post_stati ) ) {
                $post_stati = (array) bbp_get_public_status_id();

    w-sky
    Participant

    @w-sky

    I got the same error with bbPres 2.5.13 when I switched from PHP 7.0 to 7.1 (and HTTP error 500 on the forum page).
    Afaik this problem is fixed in bbPress 2.6. My advice: Switch back to PHP 7.0 until the update for bbPress has arrived.

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