Error in Bp-Blogs-loader.php
-
I have wplms theme installed which is integrated with Buddypress. However after latest wordpress upgrade to 4.2.2 I started getting below error.
"Warning: Invalid argument supplied for foreach() in ../../wp-content/plugins/buddypress/bp-blogs/bp-blogs-loader.php on line 97"Below is details of php file and line 97 (highlighted in BOLD)for which error is displayed
/** * Filters the post types to track for the Blogs component. * * @since BuddyPress (1.5.0) * @deprecated BuddyPress (2.3.0) <strong>$post_types = apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) ); *</strong> * @param array $value Array of post types to track. */ foreach ( $post_types as $post_type ) { add_post_type_support( $post_type, 'buddypress-activity' );Can you please help me with how to resolve this error
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error in Bp-Blogs-loader.php’ is closed to new replies.