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.
@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.
I recently migrated all users to a new BuddyX theme build using the WB Plugins’ BP Member Export Import. All went fine except that now all users’ “joined on” date has been changed to the day I transferred them. Any way to edit this date back to their originals?
Kindly note that this error still occurs while using the default Twenty Twenty-Four theme
I updated to wordpress 6.4 while using buddypress beta 3. Accessing a members profile while I was logged out triggerd a fatal error. This is the info in my debug log below
2023-11-08T16:55:16+00:00 CRITICAL Uncaught TypeError: Illegal offset type in /var/www/wptbox/wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php:800
Stack trace:
#0 /var/www/wptbox/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php(1038): bp_activity_post_type_get_tracking_arg()
#1 /var/www/wptbox/wp-includes/class-wp-hook.php(324): bp_blogs_new_blog_comment_query_backpat()
#2 /var/www/wptbox/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-functions.php(401): apply_filters()
#4 /var/www/wptbox/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php(291): bp_parse_args()
#5 /var/www/wptbox/wp-content/themes/klein-child/buddypress/activity/activity-loop.php(3): bp_has_activities()
#6 /var/www/wptbox/wp-includes/template.php(792): require('...')
#7 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template()
#8 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template()
#9 /var/www/wptbox/wp-content/themes/klein-child/buddypress/members/single/activity.php(41): bp_get_template_part()
#10 /var/www/wptbox/wp-includes/template.php(792): require('...')
#11 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template()
#12 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template()
#13 /var/www/wptbox/wp-content/themes/klein-child/buddypress/members/single/home.php(34): bp_get_template_part()
#14 /var/www/wptbox/wp-includes/template.php(792): require('...')
#15 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template()
#16 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template()
#17 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(407): bp_get_template_part()
#18 /var/www/wptbox/wp-content/plugins/buddypress/bp-members/classes/class-bp-members-theme-compat.php(212): bp_buffer_template_part()
#19 /var/www/wptbox/wp-includes/class-wp-hook.php(324): BP_Members_Theme_Compat->single_dummy_content()
#20 /var/www/wptbox/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#21 /var/www/wptbox/wp-content/plugins/buddypress/bp-core/bp-core-theme-compatibility.php(767): apply_filters()
#22 /var/www/wptbox/wp-includes/class-wp-hook.php(324): bp_replace_the_content()
#23 /var/www/wptbox/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#24 /var/www/wptbox/wp-includes/post-template.php(256): apply_filters()
#25 /var/www/wptbox/wp-content/themes/klein/buddypress-full-content.php(20): the_content()
#26 /var/www/wptbox/wp-includes/template.php(792): require('...')
#27 /var/www/wptbox/wp-includes/template.php(725): load_template()
#28 /var/www/wptbox/wp-includes/general-template.php(206): locate_template()
#29 /var/www/wptbox/wp-content/themes/klein-child/buddypress.php(90): get_template_part()
#30 /var/www/wptbox/wp-includes/template-loader.php(106): include('...')
#31 /var/www/wptbox/wp-blog-header.php(19): require_once('...')
#32 /var/www/wptbox/index.php(17): require('...')
#33 {main}
thrown in /var/www/wptbox/wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php on line 800
You r welcome If the activity form is related to BuddyPress you might want to check BuddyPress specific functions or hooks in your theme or plugin files. BuddyPress indeed has its own set of functions for handling activities and forms.
oh ok, so this is theme related. i thought its “just” a buddypress function(name).
thanks a lot
To find the specific function responsibl for creating the activity form
Check the theme’s functions.php file Look for a related function in your active theme functions.php file
Inspect plugin files If the form is part of a plugin, search for relevnt functions within the plugin’s PHP files.
Search documentation Consult the plugin or theme documentation for information on activity form functions
Use a code editor/IDE Utilize search feature in your code editor/IDE to find keywords related to the activity form.
Contact the develper If needed, reach out to the theme or plugin developer for specific function details.
Once you identify the function, replace ‘function_that_creates_activity_form’ in the provided code snippet with the actual function name to disable the activity form for non-admin users.
opps ] Let me provide you with an alternative approach that disables the activity form for users, making it more secure. You can achieve this by disabling the form functionality entirely. Here how you can modify the code to accomplish thi
php
Copy code
function disable_activity_form_for_non_admins() {
if ( ! current_user_can( ‘administrator’ ) ) {
remove_action( ‘init’, ‘function_that_creates_activity_form’ );
}
}
add_action( ‘init’, ‘disable_activity_form_for_non_admins’ );
In this code snippet, replace ‘function_that_creates_activity_form’ with the actual function name or hook that creates the activity form. This modification disables the activity form functionality for non-administrative users by removing the action that creates the form during the init hook.
This way the form wont be available in the HTML markup, making it more secure compared to just hiding it with CSS. Remember to place this code in your theme’s functions.php file or in a custom plugin file.
Again make sure to back up your site before making any changes, and test the modified code in a safe environment first to ensure it works as expected. If you encounter any issues or have further questions, feel free to ask!
To achieve the functionality you described, you can add the following PHP code snippet to your WordPress plugin or theme’s functions.php file. This code will hide the activity form from all users except admins:
php
Copy code
function hide_activity_form_for_non_admins() {
if ( ! current_user_can( ‘administrator’ ) ) {
?>
<style type=”text/css”>
.activity-form-class {
display: none;
}
</style>
<?php
}
}
add_action( ‘admin_head’, ‘hide_activity_form_for_non_admins’ );
In this code snippet:
current_user_can(‘administrator’) checks if the current user is an administrator.
If the current user is not an administrator, it adds a <style> block to the <head> of the admin pages, setting the CSS property display: none; for the element with the class activity-form-class. Make sure to replace activity-form-class with the actual class name or ID of the activity form element in your HTML markup.
EXP3RTS ensures you have a backup of your site or are comfortable with making changes to your theme/plugin files before adding this code. Additionally, modify the class name in the code to match the actual class or ID of your activity form for it to work correctly.
I HOPE THIS IS BENEFICIAL FOR YOU
Seeking guidance on personalizing your WordPress theme? Join the conversation in our community to learn how can i customize my website look and feel. Get expert tips and insights from fellow WordPress enthusiasts on making your site truly unique and functional. Share your experiences and get valuable advice on tailoring your website to your specific needs.
Thanks emaralive,
I gave that a try but no change. What other info would help? I’m using WordPress 6.3.2 running Hello Elementor Child theme and have BuddyPress set to Legacy. I have Elementor v3.17.2 and Elementor Pro v3.17.0 installed and running. Does any of that help?