Skip to:
Content
Pages
Categories
Search
Top
Bottom

Shortcodes and Widgets broken in Beta


  • rotlichtluzern
    Participant

    @rotlichtluzern

    Hi

    after the last update, i got an error on line 1800 in functions.php when opening the forum page. according to forum entry here i downloaded and installed beta3. it worked again.

    but now bbpress widgets as well as the shortcodes like this:
    [bbp_recent_topics max_shown=”5″]
    they, spit out all topics instead of only 5…

    what to do? install beta2? here is the link (NSFW!):

    Home

    i leave the error in there for a moment, so you can see it.

    thanks!!

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

  • Robin W
    Moderator

    @robin-w

    Suspect you are using php 7.1
    so 3 fixes
    1. downgrade to a lesser version of php
    2. upgrade to bbpress 2.6rc3
    3. in bbpress 2.5.13 in includes/forums/functions.php
    change line 1851 from
    $meta_query = $posts_query->get( ‘meta_query’ );
    to
    $meta_query = $posts_query->get( ‘meta_query’, array() );
    and change line 1796 from
    $post_stati = $posts_query->get( ‘post_status’ );

    to

    $post_stati = $posts_query->get( ‘post_status’ );
    if (!is_array($post_stati)){
    $post_stati = array($post_stati);
    }


    rotlichtluzern
    Participant

    @rotlichtluzern

    gee Robin, thank you!

    i just moved the site from shared hosting to a VPS and didn’t notice that only PHP 7.1 was activated. added 5.6 to the vps, activated it on the site and reuploaded the official current release of bbpress. all peachy now.

    again, thanks, especially for the superquick answer, it’s very apreciated!


    Robin W
    Moderator

    @robin-w

    no problem – glad you are fixed !!

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