Dear Team,
I trust this message finds you well. I am encountering a compatibility issue between BuddyPress and my website, particularly on pages built using Divi (Ally theme). While other sections of the website function smoothly, the BuddyPress-integrated pages are experiencing disruptions, notably at the URL: https://kiero.tempurl.host/activity/.
Here are the relevant details:
• WordPress Version: 6.4.2
• BuddyPress Version: 12.2.0
• Paid Memberships Pro – bbPress Add On Version: 1.7.4
• RegistrationMagic Version: 5.2.5.9
• WooCommerce Version: 8.5.2
I’ve tried troubleshooting independently, but the issue persists. It’s imperative to resolve this promptly to ensure seamless user interactions and community features.
Your expertise in addressing this specific compatibility issue between BuddyPress and Divi (Ally theme) would be greatly appreciated. Any guidance, updates, or troubleshooting steps you can provide are invaluable.
Thank you sincerely for your swift attention and assistance.
Best regards,
After updating to the newest BP-Version, my member searchd does not work anymore.
The search-results should link to the MEMBERS page
https://www.mypage.com/members?field_2_age_range%5Bmin%5D&field_2_age_range%5Bmax%5D=18
But it only links to the root (Home).
https://www.mypage.com/?field_2_age_range%5Bmin%5D&field_2_age_range%5Bmax%5D=18
In that case no results will be seen.
How to change that?
I am using GWANGI Theme.
There seems to be a bug in the expected behaviour of the sorting of friendship lists and friendship request lists. When a user visits their friendship list or request list, even though the drop down sort menu shows that it is set to “alphabetical” the actual sorting is “last active.”
To switch it to “Alphabetical” the user must first change it to “last active” before changing it back to “alphabetical.” But this is only a temporary fix–after a reload of the page, it goes back to sorting to “last active” regardless of what the drop down menu says it is doing.
I don’t know if this has been an issue for a while, or if I’m just noticing it. I have BuddyPress 12.2.0 installed on WordPress 6.4.2, along with the BuddyPress Classic plugin activated. I am using BuddyPress Nouveau with the Astra theme.
Today while trying to solve a different issue, I used the BuddyPress tools, “Repair total members count.” and “Repair member “last activity” data” which then reset everyone last activity status to “Not Recently Active.” I thought everything was fine, but then within an hour or two we started getting reports from our members about them not being able to see their friends list or find friendship requests.
As I said, it is possible that this has been the case for a while, but since it was a newer install, everyone who was requesting or accepting friendship connections was by definition recently active. Now that their last active status has been reset, though, it has become quite apparent and is causing a great deal of confusion as people try to find their friends or can’t figure out why they aren’t seeing their friendship requests.
Is there a way to set the activity feed page to show only up to so many word and thumbnais? right now everything i post is shown 100%, the stream is messy.
TIA,
Latest version of wordpress and buddypress, using generatepress as a theme.
@erisf it’s more like template driven; you can add additional fields to the registration field
Signup Fields
You can find the ref for template override here https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
Will suggest checking for BuddyPress themes to avoid excessive work for template override and custom CSS
Hi there, and welcome to the world of BuddyPress! Don’t worry; the 500 error can be daunting for beginners, but we’ll work together.
I’ve seen this issue reported before with the Lambda theme and BuddyPress, and it boils down to a compatibility issue with the navigation functions. Here’s how we can tackle it:
1. Debug Mode Explained:
Good job enabling debug mode! The error message you shared (“Call to a member function get_primary() on null”) points to line 2558 in bp-core-functions.php. This line attempts to access a navigation menu item that’s not available, causing the 500 error.
2. Don’t Modify Core Files:
While removing the problematic line might seem tempting, avoiding modifying core BuddyPress files directly is crucial. This can cause conflicts and instability down the line.
3. Theme Compatibility Fix:
Instead, let’s explore theme compatibility options:
Theme Update: Check if an updated version of Lambda is available. Developers often fix compatibility issues in newer versions.
Theme-Specific Navigation Hook: Some themes, like Lambda, provide custom hooks for modifying the navigation. Research Lambda’s documentation or contact their support team to see if such a hook exists. You can then use this hook to customize the BuddyPress navigation without touching core files.
Alternate Theme: Unfortunately, if compatibility solutions are unavailable, switching to a different theme that plays well with BuddyPress might be necessary. Popular choices include BuddyPress-compatible themes like BuddyBoss, BuddyPress Theme, and Total.
4. Community Resources:
Don’t hesitate to tap into the wider BuddyPress community for support:
BuddyPress Forums: Head over to the BuddyPress forums and search for similar issues related to Lambda and navigation. You might find existing solutions or helpful advice from other users.
BuddyPress Slack: Join the BuddyPress Slack community to chat with developers and experienced users in real-time.
5. Next Steps:
Based on your preference and technical comfort level, please choose one of the suggested solutions and try it out. If you need further assistance with specific configurations or troubleshooting, please share more details, and we can delve deeper together.
Remember, the BuddyPress community is friendly and supportive, so don’t hesitate to ask for help. Good luck, and I hope you get your BuddyPress site up and running smoothly soon!
Hi @arielcrawford
Sorry to read about your issue. When you say you updated, if the BuddyPress version you were using before the update was < 12.0, then have you tried to install and activate BP Classic?
BP Classic
Have you tried to deactivate the Learndash integration you mentioned to see if these profile pages were back once done ?
If none of the above worked, can you try to add define( 'BP_LOAD_DEPRECATED', true ); into your WP-config.php file to see if some of your plugins are still using deprecated functions (we only load back to 2 previous versions of BuddyPress otherwise).
Best to be sure to narrow the possible causes is to deactivate every plugin but BuddyPress and to activate a WP bundled theme and then reactivate everything one by one to see what plugin/theme is conflicting with BuddyPress.
@eluyawi
You can use the following code snippet to create a new tab to display at BuddyPress Profile.
// Function to add a custom tab for Membership Details in the BuddyPress profile
function wbcom_rcp_buddypress_add_membership_tab() {
global $bp;
// Define a new navigation item for the BuddyPress profile menu
bp_core_new_nav_item(array(
'name' => __('Membership', 'textdomain'), // The name of the tab
'slug' => 'membership', // The slug for the tab, used in the URL
'screen_function' => 'wbcom_rcp_buddypress_membership_screen', // The function that will load when the tab is clicked
'position' => 50, // Position of the tab in the profile navigation
'parent_url' => bp_loggedin_user_domain() . '/membership/', // The parent URL for this sub-navigation
'parent_slug' => $bp->profile->slug, // The slug of the parent navigation item
'default_subnav_slug' => 'membership' // Default sub-navigation slug
));
}
// Function to handle the display of the Membership Details tab content
function wbcom_rcp_buddypress_membership_screen() {
// Add the title and content to the Membership tab using actions
add_action('bp_template_title', 'wbcom_rcp_buddypress_membership_screen_title');
add_action('bp_template_content', 'wbcom_rcp_buddypress_membership_screen_content');
// Load the BuddyPress plugin template for displaying the tab content
bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
}
// Function to set the title of the Membership Details tab
function wbcom_rcp_buddypress_membership_screen_title() {
echo 'Membership Details'; // Title displayed on the Membership tab
}
// Function to display the content of the Membership Details tab
function wbcom_rcp_buddypress_membership_screen_content() {
// Use the shortcode [subscription_details] to display membership information
echo do_shortcode('[subscription_details]');
}
// Hook the function to add the Membership tab into the BuddyPress setup navigation action
add_action('bp_setup_nav', 'wbcom_rcp_buddypress_add_membership_tab');
You can use a plugin to add code snippets to your WordPress website using a plugin like “Code Snippets.” This plugin allows you to add custom PHP code snippets to your site without editing your theme’s functions.php file.
@fourbfb you can try to debug with the following steps.
1- Temporarily deactivate other plugins to rule out conflicts, as another plugin might interfere with BuddyPress’s upload functionality.
2- Switch to a default WordPress theme like Twenty Twenty to check if the issue is theme-related.
3- Verify PHP settings such as upload_max_filesize and post_max_size are adequate in your php.ini file.
4- Use the browser’s developer console (F12) to check for JavaScript errors that might block the upload process.
5- Ensure that the profile photo and group icon uploads are enabled in BuddyPress settings.
Hello, I’d like to modify the buddypress registration page (site.url/register). I can’t find a page with that name in my page list, it isn’t there when editing the theme, and editing the fields under users isn’t enough for me.
I want to modify the APPEARANCE of the page, along with the APPEARANCE of all other buddypress pages, like the modify/reset password pages, and everything else that’s needed for user registration.
Any help?
🙂 Depending on your website’s plugins, theme, and any custom BuddyPress codes. BuddyX is ready for BPv12+ it does not need BP Classic. All our plugins are also ready for BPv12+.
@thesun2012 bp_legacy_theme_ajax_messages_star_handler is not mandatory; you can also create your custom handler based on it
for example
function wbcom_custom_buddypress_ajax_handler() {
check_ajax_referer('custom-bp-ajax-nonce', 'security');
$displayed_user_id = isset($_POST['displayed_user_id']) && !empty($_POST['displayed_user_id'])
? (int) sanitize_text_field($_POST['displayed_user_id'])
: get_current_user_id();
$message_id = isset($_POST['message_id']) ? (int) sanitize_text_field($_POST['message_id']) : 0;
$star_status = isset($_POST['star_status']) ? sanitize_text_field($_POST['star_status']) : '';
$bulk = isset($_POST['bulk']) && !empty($_POST['bulk']);
if (!bp_is_active('messages', 'star') || empty($message_id) || !is_user_logged_in() || !bp_core_can_edit_settings()) {
wp_send_json_error(array('message' => 'Invalid request or insufficient permissions.'));
return;
}
$result = bp_messages_star_set_action(array(
'action' => $star_status,
'message_id' => $message_id,
'bulk' => $bulk,
'user_id' => $displayed_user_id
));
if ($result) {
wp_send_json_success();
} else {
wp_send_json_error(array('message' => 'Failed to update message status.'));
}
}
add_action('wp_ajax_wbcom_custom_buddypress_action', 'wbcom_custom_buddypress_ajax_handler');
AJAX Request Adjustments like this
jQuery.ajax({
url: ajaxurl,
type: 'POST',
data: {
'action': 'wbcom_custom_buddypress_action',
'displayed_user_id': displayedUserId, // Include if available
'message_id': messageId,
'star_status': starStatus,
// Additional data...
},
success: function(response) {
// Handle success
},
error: function(error) {
// Handle error
}
});
We can suggest modifying the bp_legacy_theme_ajax_messages_star_handler() function to handle the displayed user ID and use the logged-in user ID as a fallback.
function bp_legacy_theme_ajax_messages_star_handler() {
if ( false === bp_is_active( 'messages', 'star' ) || empty( $_POST['message_id'] ) ) {
return;
}
// Check nonce.
check_ajax_referer( 'bp-messages-star-' . (int) $_POST['message_id'], 'nonce' );
// Check capability.
if ( ! is_user_logged_in() || ! bp_core_can_edit_settings() ) {
return;
}
// Get the displayed user ID or fallback to the logged-in user ID.
$user_id = isset($_POST['displayed_user_id']) && !empty($_POST['displayed_user_id'])
? (int) $_POST['displayed_user_id']
: get_current_user_id();
if ( true === bp_messages_star_set_action( array(
'action' => $_POST['star_status'],
'message_id' => (int) $_POST['message_id'],
'bulk' => ! empty( $_POST['bulk'] ) ? true : false,
'user_id' => $user_id // Use the determined user ID
) ) ) {
echo '1';
die();
}
echo '-1';
die();
}
The issue I’m facing is related to integrating BuddyPress into my theme. I’ve relocated the entire Messages component to a custom page that isn’t the default BuddyPress page. When users click on the Star and Unstar buttons, the functionality doesn’t work as intended. This is because it is loaded via AJAX using the bp_legacy_theme_ajax_messages_star_handler function, and this function calls bp_messages_star_set_action with the default user ID being the displayed user ID, You know, the bp_displayed_user_id() function doesn’t recognize the displayed user ID when called through AJAX.
It would be more appropriate to change bp_displayed_user_id() to bp_loggedin_user_id() in this context 🙂
I acknowledge that I could rewrite the code, but it’s preferable to maintain everything in its default state.
Thank you.
Wordpress v6.4.2
Buddypress v12.1.1
BP Classic v1.2.0
Page Builder by SiteOrigin
Theme SiteOrigin Corp
Hi @imath,
I have a similar / related issue. I’m using Restrict Content Pro’s registration page with the latest Buddypress version (12.1.1) on a staging site and my registration page broke. It told me “Member registration is currently not allowed”, even if I disable the buddypress plugin.
I tried the gist you posted https://gist.github.com/imath/c5c34feb5d3c9b3070f7a11bc339f103 in my child theme’s functions.php but the registration page still does not work. Any ideas?
*Update* – I read through the earlier post and found the first workaround – going to Buddypress Settings -> URLs, but did not see any option to change the register slug. I had to briefly turn on wordpress general settings “Anyone can register” so that more options would appear in “URLs”. I was able to set the slug to something else like ‘sign-in’ and that seemed to allow my RCP registration to function again.
Just to check, I disabled “Anyone can register”. Seems like the BP slug change stuck and my RCP registration is operational.
Hi all,
I am German and ma English is not the best, but I try to discribe my problem as good as possible. But a small warning about my self: I have no idea about coding and I love plug’n’play!
My site is : https://pinselcrew.de/
I tried to start a forum with bbpress and buddypress. It worked perfectly together until last week. I got an email from my site that told me about a big problem. The memberlist was empty and the forum was totaly broken. So I asked my hoster for a backup.
When I startet the debug mode, it told me that there is an error in the bbpress code that points to buddypress. After I deactivatet BuddyPress everything was fine again. So I deinstalled and installed it again. But the error is the same.
Maybe aomeone has an idea. The first members really loved BuddyPress and now the miss it!
Best regards from Hamburg
Markus
__________________________________________________
This is the mail I received:
Aktives Theme: Astra (Version 4.6.3)
Aktuelles Plugin: bbPress (Version 2.6.9) PHP-Version 7.4.33 Fehler-Details ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 229 der Datei /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/extend/buddypress/members.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function bp_core_get_user_domain() in /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/extend/buddypress/members.php:229
Stack trace:
#0 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/extend/buddypress/members.php(100): BBP_BuddyPress_Members->get_profile_url(131)
#1 /www/htdocs/w01d4e65/pinselcrew.de/wp-includes/class-wp-hook.php(324): BBP_BuddyPress_Members->get_user_profile_url(131)
#2 /www/htdocs/w01d4e65/pinselcrew.de/wp-includes/plugin.php(205): WP_Hook->apply_filters(131, Array)
#3 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/core/abstraction.php(471): apply_filters(‘bbp_pre_get_use…’, 131)
#4 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/users/template.php(560): bbp_maybe_intercept(‘bbp_pre_get_use…’, Array)
#5 /www/htdocs/w01d4e65/pinselcrew.de/wp-content/plugins/bbpress/includes/admin/users.php(260): bbp_get_user_profile_url(131)
#6 /www/htdocs/w01d4e65/pinselcrew.de
@investbuddy123 Based on your description of issues with BuddyPress on your WordPress site, you’re encountering problems with group updates and public messaging functionalities.
Here is a step-by-step guide to debug the issue:
Check for Plugin Conflicts: Deactivate all plugins except BuddyPress and BP Classic. If the issue is resolved, reactivate each plugin individually to identify the conflicting plugin.
Theme Compatibility: You’ve tried switching to the Twenty-Three theme with no success, which is good. It rules out theme-specific issues.
Inspect JavaScript Errors: Use the browser’s Developer Tools (usually accessible by pressing F12) to check for JavaScript errors in the Console tab. JavaScript issues often cause features like loading updates or activating functions to fail.
Server and PHP Error Logs: Check your server and PHP error logs for any relevant errors. Your hosting provider can assist you in accessing these if you’re unsure how.
Test on a Staging Site: If possible, clone your site to a staging environment. This allows you to test without affecting your live site.
Cache and Optimization Plugins: If you use caching or optimization plugins, clear the cache and temporarily disable them to see if they are causing the issue.
Check for Custom Code: If you have any custom code (like snippets in your theme’s functions.php file or a custom plugin), comment to see if it is causing the issue.
I am using the Olympus theme @emaralive and thank you as well for your alert! The code in the functions.php did the trick for now @imath and now it works! Thank you both a lot.
@emaralive Thanks for alerting me about this issue.
@kioubizin using BP Classic is the way to go with your config. The issue you get with the WP legacy widgets Admin Screen is due to the Latest Activities BP Legacy widget that comes with the BP Classic Add-on.
I’ll fix it asap and build a new minor release for it. In the meantime I believe you can get rid of the issue adding this code into your theme’s functions.php file.
remove_action( 'bp_after_setup_theme', 'bp_classic_template_pack_includes', 1 );
What theme are you using? In addition, I’m going to have someone with more expertise have a look at this newly discovered issue.
WP version 6.4.2, BuddyPress v. 12.1.1 and BP classic 1.2.0 site is learn.knityourdog.com (login required) running reservoir/fluida theme.
Have 3 groups set up so far, all show “loading group updates, please wait” and nothing ever loads. Private messaging between members is working, public messaging is not. Cannot even click to activate the function.
No change when using Twenty Twenty-Three theme. Same problems exactly.
Have never had this issue on a BP site before and this is my 4th. Unsure how to remedy.
Hi @priyam1234
I’m aware of the issue, see: https://buddypress.org/support/topic/buddypress-12-1-1-maintenance-security-release/
I’m currently working on it from https://buddypress.trac.wordpress.org/ticket/9075. I need to make sure the fix is taking care of all possible cases, which means a lot of tests.
As soon as I have something solid I’ll package a new minor release. It will happen faster than 12.1.1 (which took a month). I hope I’ll make it happen early next week.
@ayayron sorry to read about it: please do participate to our beta testing period. We extended 12.0.0 to 5 months without receiving any issues from you or other Themeforest developers. It’s better to anticipate imho.
@roberthemsing I’m not sure, my guess is we’re not strict enough about the rewrite rule so I’ll need to review this asap.
I’m going to close this topic, please carry on giving us your feedbacks and issues from this topic:
BuddyPress 12.1.1 Maintenance & Security Release
I have found out from numberous users that BuddyPress version 12 doesn’t work very well, so far I’ve learned that 9 themes that are focused around having BuddyPress crash there sites now, and others who use buddypress with Wp Page Builder and Elementor and Elementor Pro are having error messages creating there websites from being useable. This is just one theme with many people leaving comments about this. https://themeforest.net/item/kleo-pro-community-focused-multipurpose-buddypress-theme/6776630/comments?page=1&filter=all#comment_30328819
I have also contacted my developer support person at Elementor Pro and they are having issues with it as well and it’s not there end with the issues. It’s going on 2 to 4 weeks for most of us.
Hi there,
We have built the custom website using the Divi theme with the BuddyPress plugin and it worked fine until we updated to the latest version 12.0.0 of the BuddyPress plugin. Divi theme dynamic CSS styles are not loading on the BuddyPress pages. Please advise.
Hi,
What is there a proper way to override the buddypress default block css’s?
For example, the main buddypress.css can be moved to child theme and edit whatever I want.
Is there a similar way for the block css too?
Thanks in advance!