Support » Plugin: bbPress Threaded Replies » [Plugin: bbPress Threaded Replies] PHP error

  • Resolved briantoronto



    I am getting the following error:
    Warning: Invalid argument supplied for foreach() in /home/accnews/public_html/thecommunity/wp-content/plugins/bbpress-threaded-replies/bbpress-threaded-replies.php on line 128
    I am running WP 3.4.1 with bbPress 2.1.2 using PHP 5.2.14
    It is on my dev site, so nothing is broken in production, but any advice would be very helpful.



Viewing 5 replies - 1 through 5 (of 5 total)
  • andrea.ressell


    Brian, I’ve got the same problem. Please post if you find a solution.

    I have the same issue after posting a video. public_html/wp-content/plugins/bbpress-threaded-replies/bbpress-threaded-replies.php on line 128
    Here is where it is located

    I just shut the threaded replies plugin off and everything works fine.

    add the if condition to check whether array is empty or not like
    if (is_array($posts)){
    foreach( $posts as $post ) {
    // Ignore the topic if included.
    if ( bbp_get_reply_post_type() == $post->post_type ) {
    $in_reply_to = get_post_meta( $post->ID, ‘_ucc_btr_in_reply_to’, true );
    if ( empty( $in_reply_to ) || ( bbp_get_reply_topic_id( $post->ID ) == $in_reply_to ) )
    $in_reply_to = 0;
    $post->in_reply_to = $in_reply_to;
    $replies[] = $post;
    } elseif ( bbp_get_topic_post_type() == $post->post_type ) {
    delete_post_meta( $post->ID, ‘_ucc_btr_in_reply_to’ );

    Very cool and thanks.
    Where do we add it to?
    /bbpress-threaded-replies.php on line 128

    Plugin Author Jennifer M. Dodd


    This issue should be resolved in the latest version. Please let me know if it fixes this error.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: bbPress Threaded Replies] PHP error’ is closed to new replies.