Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress 11.1.0

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

  • ito
    Participant

    @itmonline

    Hello, still unable to read messages after installing 11.0 – will the new 11.1 update remedy this?


    Try IT Works
    Participant

    @tryitworks

    I’m not sure why my last comment isn’t being approved, but I need help with buddypress 11.1 in wordpress. It’s displaying a warning error on my website. If I could upload a screen shot to show what I mean, I would. But for now, I’ll just write out what the error message says.

    “Warning: Undefined array key 731 in /homepages/40/d950647655/htdocs/clickandbuilds/tryitworks/wp-includes/nav-menu-template.php on line 211”


    blackossian
    Participant

    @blackossian

    i’ve got this issue in my website few hours after the last update

    Wed Feb 22 00:08:12.570500 2023] [fcgid:warn] [pid 19091:tid 47439327049472] [remote 79.24.19.87:54619] mod_fcgid: can’t apply process slot for /usr/local/cpanel/cgi-sys/sp-ea-php74


    armaanfromatg
    Participant

    @armaanfromatg

    Hi there,

    After upgrading to 11.1.0, each time I try to edit my wordpress website I get an error saying:

    Warning: Udefined array key “bp_docs” in C:\****\***\******\wp-content\plugins\buddypress\bp-core\classes\class-bp-rest-components-endpoint.php on line 416

    Can someone please tell me how to fix this?

    Thankyou in advance

    Hi @armaanfromatg

    Thanks for your feedback & sorry for the inconvenient. In your wp-config.php file are you setting the WP_DEBUG constant to true? If so, you shouldn’t use it on a production site, I think the WordPress Site Health tool should advise you to avoid this practice.

    We’ll fix this notice in 11.2.0. In the meantime, you can use this filter to disable the REST controller causing this error:
    add_filter( 'bp_core_rest_api_controllers', '__return_empty_array' );

    👋


    ezway
    Participant

    @ezway

    Hi

    After upgrading I lost my cover image…

    For a visual explanation please see my screencast below:

    https://www.dropbox.com/s/fbdrek03xrcth6q/Upgrade%20issue.mp4?dl=0

    Found this in the logs not sure how relevant

    AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “groups” in /var/www/vhosts/priceless-rosalind.66-42-113-170.plesk.page/httpdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-core-bp-nav-backcompat.php on line 111; PHP message: PHP Warning: Undefined array key “forums” in /var/www/vhosts/priceless-rosalind.66-42-113-170.plesk.page/httpdocs/wp-content/plugins/buddypress/bp-core/classes/class-bp-core-bp-nav-backcompat.php on line 111’, referer: https://priceless-rosalind.66-42-113-170.plesk.page/sitemap_index.xml

    Looking forwards to your advice on how to fix this

    EZ


    werny
    Participant

    @werny

    I got 2 error messages on my new installation :

    Warning: Attempt to read property "base" on null in /customers/2/b/1/mydomain.com/httpd.www/wp-content/plugins/buddypress/bp-members/bp-members-notifications.php on line 211
    Warning: Attempt to read property "id" on null in /customers/2/b/1/mydomain.com/httpd.www/wp-content/plugins/buddypress/bp-core/classes/class-bp-admin.php on line 732

    What does that mean?
    How can I solve that?
    I cannot even access my Customizer Settings


    christiangsimon
    Participant

    @christiangsimon

    I had this problem and I couldn’t find a solution anywhere. I believe something caused some activities to be created in the database without any data, hence NULL. In my case I think it was too many plugins. I disabled them all, deleted the unused ones, including their proper tables in Mysql. So there in Mysql, while I was doing that, I found such activities with NULL. I deleted them all. Everything went back to normal.


    fantamily
    Participant

    @fantamily

    Hi all, I noticed that when I send friend request with another member, the other member, in the requests section, does not receive the friend request and therefore it is “You have no pending friendship requests” 🙂 Can anyone help me? I tried disabling all plugins but the problem persists. Thank you


    markwood007
    Participant

    @markwood007

    I’m uncertain why my previous comment has not been approved, but I require assistance with Buddypress 11.1 on my WordPress website. I am encountering a warning error that is being displayed on my website. If possible, I would provide a screenshot to illustrate the issue. However, I’ll simply explain the error message for now:

    “There is a warning that states: Undefined array key 731 in.”


    alirazamakki
    Participant

    @alirazamakki

    Thank you for the update on BuddyPress 11.1.0! It’s great to hear that there have been some bug fixes in this maintenance release. WordPress users who have been experiencing issues should definitely consider updating as soon as possible to take advantage of these improvements. It’s always great to see open source software being maintained and improved upon by dedicated contributors, so kudos to the team behind this release!


    uranoz
    Participant

    @uranoz

    BuddyPress messages previews truncate the message to one line, and then append an horizontal ellipsis. This HTML entity displays as a string, and is not parsed to display as the HTML ellipse. We have tried all the HTML charset codes for ellipse, all display as strings. Here is the function that controls this in the /plugins/bp-core/bp-core-template.php file (start line 878)

    Any idea how to fix this? Many thanks in advance!

    function bp_create_excerpt( $text, $length = 225, $options = array() ) {
    
    	// Backward compatibility. The third argument used to be a boolean $filter_shortcodes.
    	$filter_shortcodes_default = is_bool( $options ) ? $options : true;
    
    	$r = bp_parse_args(
    		$options,
    		array(
    			'ending'            => __(  ' [U+02026] '  , 'buddypress' ),
    			'exact'             => false,
    			'html'              => true,
    			'filter_shortcodes' => $filter_shortcodes_default,
    			'strip_tags'        => false,
    			'remove_links'      => false,
    		),
    		'create_excerpt'
    	);
    
    	// Save the original text, to be passed along to the filter.
    	$original_text = $text;
    
    	/**
    	 * Filters the excerpt length to trim text to.
    	 *
    	 * @since 1.5.0
    	 *
    	 * @param int $length Length of returned string, including ellipsis.
    	 */
    	$length = apply_filters( 'bp_excerpt_length',      $length      );
    
    	/**
    	 * Filters the excerpt appended text value.
    	 *
    	 * @since 1.5.0
    	 *
    	 * @param string $value Text to append to the end of the excerpt.
    	 */
    	$ending = apply_filters( 'bp_excerpt_append_text', $r['ending'] );
    
    	// Remove shortcodes if necessary.
    	if ( ! empty( $r['filter_shortcodes'] ) ) {
    		$text = strip_shortcodes( $text );
    	}
    
    	// When $html is true, the excerpt should be created without including HTML tags in the
    	// excerpt length.
    	if ( ! empty( $r['html'] ) ) {
    
    		// The text is short enough. No need to truncate.
    		if ( mb_strlen( preg_replace( '/<.*?>/', '', $text ) ) <= $length ) {
    			return $text;
    		}
    
    		$totalLength = mb_strlen( strip_tags( $ending ) );
    		$openTags    = array();
    		$truncate    = '';
    
    		// Find all the tags and HTML comments and put them in a stack for later use.
    		preg_match_all( '/(<\/?([\w+!]+)[^>]*>)?([^<>]*)/', $text, $tags, PREG_SET_ORDER );
    
    		foreach ( $tags as $tag ) {
    			// Process tags that need to be closed.
    			if ( !preg_match( '/img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param/s',  $tag[2] ) ) {
    				if ( preg_match( '/<[\w]+[^>]*>/s', $tag[0] ) ) {
    					array_unshift( $openTags, $tag[2] );
    				} elseif ( preg_match('/<\/([\w]+)[^>]*>/s', $tag[0], $closeTag ) ) {
    					$pos = array_search( $closeTag[1], $openTags );
    					if ( $pos !== false ) {
    						array_splice( $openTags, $pos, 1 );
    					}
    				}
    			}
    
    			$truncate     .= $tag[1];
    			$contentLength = mb_strlen( preg_replace( '/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', ' ', $tag[3] ) );
    
    			if ( $contentLength + $totalLength > $length ) {
    				$left = $length - $totalLength;
    				$entitiesLength = 0;
    				if ( preg_match_all( '/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', $tag[3], $entities, PREG_OFFSET_CAPTURE ) ) {
    					foreach ( $entities[0] as $entity ) {
    						if ( $entity[1] + 1 - $entitiesLength <= $left ) {
    							$left--;
    							$entitiesLength += mb_strlen( $entity[0] );
    						} else {
    							break;
    						}
    					}
    				}
    
    				$truncate .= mb_substr( $tag[3], 0 , $left + $entitiesLength );
    				break;
    			} else {
    				$truncate .= $tag[3];
    				$totalLength += $contentLength;
    			}
    			if ( $totalLength >= $length ) {
    				break;
    			}
    		}
    	} else {
    		// Strip HTML tags if necessary.
    		if ( ! empty( $r['strip_tags'] ) ) {
    			$text = strip_tags( $text );
    		}
    
    		// Remove links if necessary.
    		if ( ! empty( $r['remove_links'] ) ) {
    			$text = preg_replace( '#^\s*(https?://[^\s"]+)\s*$#im', '', $text );
    		}
    
    		if ( mb_strlen( $text ) <= $length ) {
    			/**
    			 * Filters the final generated excerpt.
    			 *
    			 * @since 1.1.0
    			 *
    			 * @param string $text          Generated excerpt.
    			 * @param string $original_text Original text provided.
    			 * @param int    $length        Length of returned string, including ellipsis.
    			 * @param array  $options       Array of HTML attributes and options.
    			 */
    			return apply_filters( 'bp_create_excerpt', $text, $original_text, $length, $options );
    		} else {
    			$truncate = mb_substr( $text, 0, $length - mb_strlen( $ending ) );
    		}
    	}
    
    	// If $exact is false, we can't break on words.
    	if ( empty( $r['exact'] ) ) {
    		// Find the position of the last space character not part of a tag.
    		preg_match_all( '/<[a-z\!\/][^>]*>/', $truncate, $_truncate_tags, PREG_OFFSET_CAPTURE );
    
    		// Rekey tags by the string index of their last character.
    		$truncate_tags = array();
    		if ( ! empty( $_truncate_tags[0] ) ) {
    			foreach ( $_truncate_tags[0] as $_tt ) {
    				$_tt['start'] = $_tt[1];
    				$_tt['end']   = $_tt[1] + strlen( $_tt[0] );
    				$truncate_tags[ $_tt['end'] ] = $_tt;
    			}
    		}
    
    		$truncate_length = mb_strlen( $truncate );
    		$spacepos = $truncate_length + 1;
    		for ( $pos = $truncate_length - 1; $pos >= 0; $pos-- ) {
    			// Word boundaries are spaces and the close of HTML tags, when the tag is preceded by a space.
    			$is_word_boundary = ' ' === $truncate[ $pos ];
    			if ( ! $is_word_boundary && isset( $truncate_tags[ $pos - 1 ] ) ) {
    				$preceding_tag    = $truncate_tags[ $pos - 1 ];
    				if ( ' ' === $truncate[ $preceding_tag['start'] - 1 ] ) {
    					$is_word_boundary = true;
    					break;
    				}
    			}
    
    			if ( ! $is_word_boundary ) {
    				continue;
    			}
    
    			// If there are no tags in the string, the first space found is the right one.
    			if ( empty( $truncate_tags ) ) {
    				$spacepos = $pos;
    				break;
    			}
    
    			// Look at each tag to see if the space is inside of it.
    			$intag = false;
    			foreach ( $truncate_tags as $tt ) {
    				if ( $pos > $tt['start'] && $pos < $tt['end'] ) {
    					$intag = true;
    					break;
    				}
    			}
    
    			if ( ! $intag ) {
    				$spacepos = $pos;
    				break;
    			}
    		}
    
    		if ( $r['html'] ) {
    			$bits = mb_substr( $truncate, $spacepos );
    			preg_match_all( '/<\/([a-z]+)>/', $bits, $droppedTags, PREG_SET_ORDER );
    			if ( !empty( $droppedTags ) ) {
    				foreach ( $droppedTags as $closingTag ) {
    					if ( !in_array( $closingTag[1], $openTags ) ) {
    						array_unshift( $openTags, $closingTag[1] );
    					}
    				}
    			}
    		}
    
    		$truncate = rtrim( mb_substr( $truncate, 0, $spacepos ) );
    	}
    	$truncate .= $ending;
    
    	if ( !empty( $r['html'] ) ) {
    		foreach ( $openTags as $tag ) {
    			$truncate .= '</' . $tag . '>';
    		}
    	}
    
    	/** This filter is documented in /bp-core/bp-core-template.php */
    	return apply_filters( 'bp_create_excerpt', $truncate, $original_text, $length, $options );
    }
    add_filter( 'bp_create_excerpt', 'stripslashes_deep'  );
    add_filter( 'bp_create_excerpt', 'force_balance_tags' );
    
Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar