PHP Deprecated: xprofile cover image
-
WordPress: 5.4.2
BuddyPress: Version 6.1.0
Theme: Buddyapp
https://ecodominicana.comHello, I’m having a small issue, and can’t figure out how to fix it. Already read a lot of threads and documentation, but It seems I’m missing something.
Yesterday this error appeared:
PHP Deprecated: bp_before_xprofile_cover_image_settings_parse_args is deprecated since version 6.0.0! Use bp_before_members_cover_image_settings_parse_args instead. in /var/www/wptbox/wp-includes/functions.php on line 5088And it appears only on profile pages, like this one:
https://ecodominicana.com/members/ecodominicana/profileSo I created a buddypress.css in my child theme’s CSS folder: wp-content\themes\buddyapp-child\buddypress\css
And added this code:
$theme_handle = 'bp-parent-css'; $settings['theme_handle'] = $theme_handle; /** * Then you'll probably also need to use your own callback function * @see the previous snippet */ $settings['callback'] = 'bp_legacy_theme_cover_image'; return $settings; } add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 ); add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 );
Here is the the code in main functions.php
function kleo_load_files_plugin_compat() { //enqueue child theme style only if activated if ( is_child_theme() ) { if ( is_rtl() ) { wp_enqueue_style( 'kleo-rtl' ); } wp_enqueue_style( 'kleo-style' ); }
Any help would be very appreciated. Sorry, I’m a noob in programming, we are a non-profit botanical project, so we can’t afford a programmer…😔
- You must be logged in to reply to this topic.