Thanks @imath for the detailed response!
Is there a list of deprecated functions that we could use as a starting point to troubleshoot the critical and non-critical errors? By checking error logs, all of the errors seem to be in custom theme functions for BuddyPress-specific themes, but it would be handy to have a starting point with so many themes throwing different errors (because of custom function naming). All of the non BP-specific themes I’ve toggled through appear to be working fine with BPClassic installed and activated, so this could be the root issue I’m seeing across different installations (I’m thinking it has something to do with pulling user functions, user meta, messages, etc… or something universal that is only present on themes with BP support built-in).
Some of the sites we work with are 5-10 years old, and even though we update themes/plugins as they become available, there are a lot of functional BP themes/plugins that have been psuedo-abandoned/un-updated, that I’d like to try to update with my limited BP-specific knowledge.
I completely understand that progress must be made, so I’d like to try to see what I can do on my end to support the legacy ecosystem that seems to grow more and more each year. BP is an incredibly powerful tool for community work and non-profits, but many of the tools, plugins, and themes that we’ve used will have to be carried forward by the community to remain functional.
Thanks again, and have a great day!
Hi @anonymz
Thanks for your feedback, as we don’t use this function (see https://github.com/search?q=repo%3Abuddypress%2Fbuddypress+str_starts_with&type=code ), It’s probably a plugin or a theme hooking to a BuddyPress filter or action.
Do you have the full error trace ?
@westmdresearch & @fraughtithrouble
I believe there can be errors when a plugin/theme has not been updated since the last 2 versions of BuddyPress, we only load by default deprecated functions back to 2 previous versions. I suggest you to use 2 constants in your wp-config.php file:
– define( 'BP_LOAD_DEPRECATED', true );
this will load all deprecated functions (from version 12.0 back to version 1.2)
– Errors should become deprecation notices. Errors/notices should never be output on front-end, so if some errors are output on front-end, I advise you to also use define( 'WP_DEBUG_DISPLAY', false );
@fraughtithrouble if you want to rollback, activate BP Classic (to get the regular directory pages back into your regular WordPress pages), then deactivate BuddyPress and BP Classic. You’ll need to manually reset the « DB Version » to the one of you version, see https://codex.buddypress.org/releases/. For instance for version 11.4.0, into the wp_options
table the _bp_db_version
option should be 13408
. Only then download and activate a previous BuddyPress version (11.4.0).
@westmdresearch I’m sorry to read about all these troubles, we took all possible precautions to avoid it on our side: beta period was extended to 4/5 months, we documented the changes, we’ve built a backcompat plugin, unfortunately we cannot test and fix all free or premium plugins, this part remains their responsibility.
I have the same issue… I use woffice theme (themeforest)
debug.log show this if I activate ONLY Buddypress plugin without no other one…
[12-Dec-2023 14:48:45 UTC] PHP Deprecated: str_starts_with(): Passing null to parameter #1 ($haystack) of type string is deprecated in Path….\wp-includes\class-wp-styles.php on line 430
I would be very thankful for help!
@varadkk if I understand well you need to get the link to your BuddyPress directories or to the registration page.
For these pages, it should always be https://yoursite.url/$slug_value
where the $slug_value is the value of the slug input.
You can alternatively use the BuddyPress Directory menu or logged out member menu items if you use a regular theme, see https://github.com/buddypress/buddypress/blob/master/docs/user/administration/navigations/README.md
Hello there!
I run/help administer quite a number of BuddyPress sites (and I greatly appreciate all of the work that makes ours possible!), but almost all of the sites that I administer or assist with are not working, even with the BP Classic plugin installed and activated.
Conflicts so far include: Grimlock BP add-ons (required for several Themeforest themes), Kleo (very popular Themeforest theme), and any of the sites using Visual Composer/WP Bakery widgets. All of these sites continue to throw errors (or have broken displays in the case of WP Bakery widgets), even with BP Classic installed and activated. I have stopped upgrading other sites until I’m able to figure out what is causing these to crash, even with the BPC plugin activated, but I’d assume that there are probably additional conflicts with the 5 other themes we utilize.
The only sites that continue to be fully operational are those running Divi (with BP Classic installed and activated) or WP Default themes.
I am reaching out to theme and plugin authors for updates, but this seems to be pretty widespread, so I’m hoping there’s some other conflict or issue that I’m missing or not understanding.
I greatly appreciate any help or guidance. Thanks again for all of the work that goes into this plugin. 🙂
Two ways to use your BP profile pic as your WordPress avatar:
1. Plugins:
Install and activate a plugin like “BuddyPress Default Avatar” or “BuddyPress Avatar Sync.”
These plugins automatically sync your BP profile photo with your WordPress avatar, making it a simple and hands-off solution.
2. Custom code:
If you prefer a more technical approach, you can add code to your theme’s functions.php file.
This code snippet will enable syncing of the two avatars:
PHP
function bp_avatar_sync($user_id) {
// Get BP profile picture URL
$bp_avatar_url = bp_core_fetch_avatar(array(‘item_id’ => $user_id, ‘type’ => ‘full’));
// Update WordPress avatar URL
update_user_meta($user_id, ‘user_avatar’, $bp_avatar_url);
}
add_action(‘bp_core_avatar_uploaded’, ‘bp_avatar_sync’);
Remember, both methods achieve the same result. Choose the method that best suits your technical skills and preferences.
I’m a beginner at WP. I am trying to develop a listing directory with a social network integrated. I’m building the listings directory with the MyListings theme on main domain and want to develop the Social network with BuddyPress (maybe BuddyPress + Youzify) on a subdomain.
My idea is to have a platform where users can publish their listings on Mylistings and have their profile and interact with other members on BuddyPress.
My questions are:
How do I link each author on MyListing website to their BuddyPress profile?
How can I link each profile (BuddyPress) to the author on MyListings theme?
Thank you.
I am using the latest BuddyPress bundled with Kleo and child theme. The site is corrobex.com. Login works as it should. However, when someone tries to register the Sign Up Page (register) opens and they are immediately confronted with 2 error messages: ERROR: The username field is empty. and Error: The password field is empty.
Completing the fields of the form it then behaves as it should.
However, as the BP registration is set to manually approve applications the text on the response screen needs to be changed advising that their application will be considered and they will be advised it has been accepted or denied.
How/Where do I change the text to a more appropriate response?
There is a very long running issue about that, it seems, on bbpress trac here https://bbpress.trac.wordpress.org/ticket/3355#comment:4
if you have any more info on that, please share.
Either wait for a bbPress update (it seems that it is in a slow pace lately), or maybe include a function hooking to bbp_get_replies_pagination_base
filter (for replies as an example) to fix it on buddyPress side? (or on theme/plugins dev side but then it would probably be a good thing to include it in the docs somewhere?)
I have some feedback for the beta4: I stumbled upon this issue on my big site config but in troubleshooting mode with only default WP theme 2024 + BuddyPress (Heritage template but Nouveau has same problem) + bbpress I have this issue: in the /members/forums/ tabs of a member page, when I click on the different pages they do not display different content, only first page’s one.
Could this be a problem with BuddyPress or is this only bbpress?
I’m trying to use BuddyPress with a pjax based theme (Waveme) and it does not work.
When I click on “Messages” on a members page nothing appears other than the nav and subnav. Clicking the tabs do not display any content.
Only when I do a hard refresh does it display the Messages and allows the user to switch tabs to see sentbox, messages, or compose form.
When I use Heritage template page the content is displayed. Stylesheet does not seem to load but content is displayed. When using Nouveau, the page stays empty and no content is loaded at all.
Does anyone have any tips on how to solve this? Is there any action or script I have to call on page load so that it initiates BuddyPress when in the members page?
for context:
WP: 6.4.1
BuddyPress: Version 12.0.0-beta4
BuddyPress template: Nouveau
Theme: Waveme. the theme is music based, and it uses pjax so that the currently played music does not stop while navigating.
✅ checked with only theme + BuddyPress enabled in troubleshoot mode: problem still happening
✅ tested on default plugin/core/theme files. No template overload.
🐛 Console or PHP do not return any error.
ps: I have tried more complex things but after troubleshooting it in depth I realized it was a root problem between theme and buddypress.
@africanfoods Let’s discuss about it in another topic, this one is dedicated to testing BuddyPress 12.0 and BP Classic. Just imagine how you would feel if someone would interrupt a discussion you’re having about a topic with something that is not directly related to it.
Please open a new topic, describe your configuration in it: WordPress version, BuddyPress version, PHP version, name of your theme, name of the active BP Template Pack, list of active plugin names as well as active BP Components, whether there is a bp-custom.php file into your plugins directory or any other file into a mu-plugins directory, etc. We’ve sticked this topic to the forum to help you and others have a reply to their troubles, follow these steps, then ask for support. I can’t help you with so few information.
Ok, I’m not just able to find templates/index.html in my theme or buddypress directory. Maybe a guide to this path @gingerbooch
Well a regular theme shouldn’t include a templates/index.html
file as it’s a Block Theme specificity. I won’t disable Block Themes support because a regular theme is not using the right template names, so you should apply @gingerbooch’s fix.
(damn the spam on this forum seems constant, that’s frustrating)
I’m using BBpress.
In fact the website I’m working on used BBpress and i’m trying to integrate that and Buddypress (that I enabled mainly to add private message to the website).
bbpress has the advantage to contain templates that work directly when you enable both plugin.
I’m trying to pull all the information from both bbpress profile and buddypress profile to an existing custom theme profile page but that’s the challenging part.
@imath, will this new version update fix the issue of Block Themes feature.
Hi all,
How are folks managing forums? Are you using BBPress?
To me BBPress seems like what ultimately works best with Buddypress.
I was once a BuddyBoss user and the bloat was slowing down my site and then not playing well with a theme I transitioned to for speed.
How are you managing forums along with groups?
Many Thanks!
@imath, then that was implemented between 10.3 and 11.4 😉 I will read more about this new Block Themes feature, thanks for the hint.
Can I ask you (around) when version 12.0 will be live on WordPress ? No hurry, just for information.
Hi @gingerbooch
Thanks for your reply and fix. This check is probably due to the fact we introduced Block Themes support since BP version 10.0.
@africanfoods This support topic is about our next major version 12.0.0: please let’s try to post support issues at right places, if your issue is not related to beta testing 12.0, use another support topic.
Thanks in advance for your understanding.
Hi @africanfoods,
I am actually updating to official 11.4.0 version and I faced the same problem.
This one is quite tricky. I had to dig into rebuilding my child theme from scratch in order to understand what was going wrong.
I found that Buddypress now uses the content of a potential “templates” folder, directly in the root of your theme directory (previously it was only looking for a buddypress folder in the theme directory).
You may have created a folder you named like that in your theme or child theme folder, which was not related to Buddypress. As buddypress now read this folder, be careful with the content. Especially if there is an empty “index.html” file in that folder.
If you find one, just be sure that file was put here for basic security purpose, not for a specific use, then you can delete it, or rename like “index.html_backup”. Once you remove or rename this file, you should get your users’ profile pages back.
I don’t know the use or reason for this new feature, maybe @imath can tell us more.
I’m trying to integrate BuddyPress into a theme I’m working with. This theme already has a profile page and I’m trying to include BuddyPress content inside it, mainly forums infos and privates messages functionalities.
I’m using bp-nouveau template parts and the inclusion seems to work as some html is passed on but no content. One of the reasons I think is because the page does not load buddypress scripts.
in short: How can I make the plugin to display private messages on a custom profile page?
I had this problem without an easy solution, so I did one wich worked perfectly.
To add the logged in user profile link to a Elementor Widget, do this:
Add a custom shortcode to your theme functions.php
// Custom Buddypress User Profile Link
function custom_bp_user_link( $atts ){
return bp_loggedin_user_domain();;
}
add_shortcode( 'bp_user_link', 'custom_bp_user_link' );
After this, go to Elementor and in the link option of your widget select “Custom URL”, then select “Shortcode” and add
[bp_user_link]
I’m building a new wordpress site with buddypress and have just noticed that when I have the Nouveau template active, the “Add Friend” buttons disappear from the site. When I switch it to the legacy template, the “Add Friend” button reappears. When using the Nouveau template, the send public message button appears just fine in the member profile page.
If it is helpful, I’m running WordPress 6.4.1, using the Astra theme, and BuddyPress 11.4.