Search Results for 'wordpress'
-
Search Results
-
I had an issue with a client site that the BP team may want to look into, in the event that it is affecting more sites than just mine.
The issue: Running the latest version of BuddyPress (10.2), I had a client site and server that were seeing spikes to 100% CPU and high RAM usage — but only when a logged-in user opened the WordPress media library (/wp-admin/upload.php).
My hosting support first told me it was a plugin error, then I was told it was a theme error. But we were unable to find any evidence of this. I cloned the live site, deactivated all plugins and switched to a default WP theme, and the issue still occurred.
There were no related items in the Apache or Nginx error logs, but the PHP access log fills with lines like this, seemingly for every media file:
(server IP) – [15/Apr/2022:15:57:37 +0000] “GET /index.php?bp-attachment=13109/NorthCrawford-300×225.jpg” 301 0 – 798 14702 0.648 8388608 9.27% 3.09% “/?bp-attachment=13109/NorthCrawford-300×225.jpg”
The solution: This is what I received from my hosting support:
The issue is BuddyPress created htaccess that redirects all wp-content/uploads/bp-attachments/ to ?bp_attachments= URL. The redirects spawn heaps of apache and php-fpm which also cause the issue . They created this sample htaccess found on the directory below
/public_html/wp-content/uploads/bp-attachments# cat .htaccess
RewriteEngine On
RewriteBase /
RewriteRule (.+) ?bp-attachment=$1 [R=302,NC]The htaccess has been renamed so, when you load medias, it should no longer reach 100%
The solution was to take the .htaccess file out of the equation by renaming it, which is only a temporary fix. I presume this file would be overwritten upon the next BP update?
If that’s the case, how would I keep this from happening, aside from renaming the offending .htaccess file each time there is a BP update?
Wordpress v. 5.9.3
Buddypress v. 10.2.0
Theme. BuddyXIn Private Messages – the message body part ‘shows’ at the top that you can attach a file or a link,
the link option works, but when you click on the image attachment, it gives a popup that asks for the ‘source’ of the image. It doesn’t open a normal file explorer window to select the image.
Please, how do I FIX this?I am not sure if anyone else is facing the same problem.
I have been testing and debugging for several hours for this problem.
I am using premium theme boombox , but also tried on Twenty Twenty-Two. Everywhere the same issue.I have deactivated all plugins, minimum set up.
My website is on GR language in the frontend and i get the url of invitations component like that /members/user/προσκλησεις/ (with the GR translation). It should be /members/user/invitations/ like the rest of the components. I get an error page as a return. The component is not active.
When i change default front lang to UK that i can see the /invitations/ component and invitations are working normal.
Of course i have been saving permalinks, disabling-enabling invitations settings
Could anyone help please??
I am experiencing an issue with Smash Balloon YouTube Feed when loading more of the videos. If I disable BuddyPress the “Load More” button works normally.
When displaying the feed (say about 6 videos) there is a button to “Load More” below the videos. When the button is clicked a new browser tab will open and display in the url “about:blank#blocked”. When I go back to the website page, it does “Load More” however I need to prevent this new blank tab from opening.
Wordpress v. 5.9.2 with Olympus Theme
BuddyPress V. 10.2.0
Smash Balloon YouTube Feed V 1.4.4Hi,
here is the my code. tab is created,
but if user not member this private group redirect to wp-login page. how to open everyone this tab?function custom_members_tab() {
if ( bp_is_groups_component() && bp_is_single_item() ) {
global $bp;
$group_link = bp_get_group_permalink( $bp->groups->current_group );
$tab_args = array(
‘name’ => esc_html__( ‘destination’, ‘default’ ),
‘slug’ => ‘destination-members’,
‘screen_function’ => ‘destination_members_screen’,
‘position’ => 60,
‘parent_url’ => $group_link,
‘parent_slug’ => $bp->groups->current_group->slug,
‘default_subnav_slug’ => ‘destination-members’,
‘item_css_id’ => ‘destination-members’,
‘access’ => ‘anyone’,
‘show_tab’ => ‘anyone’,
‘show_for_displayed_user’ => true
);
bp_core_new_subnav_item( $tab_args, ‘groups’ );
}
}
add_action( ‘bp_setup_nav’, ‘custom_members_tab’ );function destination_members_screen() {
add_action( ‘bp_template_content’, ‘custom_group_tab_content’ );
bp_core_load_template( ‘buddypress/members/single/plugins’ );
}
function custom_group_tab_content() {
echo “show non group members, guests, everyone”
}I read this ticket, but I couldn’t understand how to use it.
https://buddypress.trac.wordpress.org/ticket/4785Hi,
WordPress Version 5.9.2
Theme: MagicVersion: 1.10.0 By Bdaia
Website: miComunidad.comWhen I install the BuddyPress.10.2.0 I get these errors:
WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist] SELECT COUNT(*) FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_messages_recipients' doesn't exist] SELECT SUM(unread_count) FROM wp_wkkr_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_friends' doesn't exist] SELECT id FROM wp_wkkr_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_invitations' doesn't exist] SELECT DISTINCT i.item_id FROM wp_wkkr_bp_invitations i WHERE user_id IN (1) AND class IN ('bp_groups_invitation_manager') AND type = 'invite' AND invite_sent = 1 AND accepted = 0 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist] SELECT DISTINCT g.id FROM wp_wkkr_bp_groups g WHERE g.id IN (0) ORDER BY g.date_created DESC WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist] SELECT COUNT(DISTINCT g.id) FROM wp_wkkr_bp_groups g WHERE g.id IN (0) WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist] SELECT id, user_id, item_id, secondary_item_id, component_name, component_action, date_notified, is_new, COUNT(id) as total_count FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1 GROUP BY user_id, component_name, component_action ORDER BY date_notified descHow do I create these database tables? Please help?
Thanks,
Carlos
Topic: Database Errors
Any advice on debugging the error below?
WordPress 5.9.2, BuddyPress 10.1.0, bbPress 2.6.9
(I haven’t upgraded to 10.2.0 yet, but I don’t see any fixes that seems to apply to this.)
It happens “once in a while” since upgrading to 10.1.0. (Four times since March 9th.)
It *might* be related to email notifications (mentions?) in a bbPress closed topic.[09-Mar-2022 17:13:53 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new' at line 1 for query UPDATE wp_bp_notifications SET is_new = 0 WHERE item_id IN () AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new_message' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/generatepress/page.php'), generate_do_template_part, get_template_part, locate_template, load_template, require('/themes/generatepress/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, bp_replace_the_content, apply_filters('bp_replace_the_content'), WP_Hook->apply_filters, BP_Members_Theme_Compat->single_dummy_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/single.php'), bp_thread_the_message, BP_Messages_Thread_Template->the_message, do_action('thread_loop_start'), WP_Hook->do_action, WP_Hook->apply_filters, bp_messages_screen_conversation_mark_notifications, bp_notifications_mark_notifications_by_item_ids, BP_Notifications_Notification::update_id_listTopic: Tutor LMS BuddyPress
After Tutor LMS updated to 2.0, I have not been able to access my group or profile. Since I am using this for my class, this feature is very important for assignments. Please help!
WordPress version 5.9.2
BuddyPress version 10.2.0Using buddypress 10.1.0 and buddyx theme 4.3.3. WordPress 5.9.2 SportsFanRank.com
Newly created group types no longer appear when creating new groups.
When creating the group, the group types available to choose from only contain group types that were made weeks ago. The newly created group types do not appear when creating new groups, so we cannot select newly created group types.
Any guesses as to why this may be?
Administrator role is being used during this process.
Wordpress: 5.8.3
BuddyPress: 10.1.0
URL: https://learn.rebeccagordonastrology.com/Why can’t a user that has access to a hidden group not be able to see that group on the groups page?
Thank you for your help.
Hi All,
I am extremely new to wordpress and buddypress development. I’ve been searching the forum and trying multiple plugins to find this answer without success. I was hoping someone might be able to point me in the right direction.I think buddypress will be able to do what I want but I just can’t say for certain right now.
I have been using the extended profile to allow a user to enter a bunch of information for their company product. I have created an extended profile with multiple tabs and each tab has multiple fields. that’s good
That is for category 1. What I need to do though, is create a whole different set of tabs with multiple fields but under category 2.
User 1 may only have the fields available for category 1 to fill out.
User 2 may only have the fields available for category 2 to fill out.
User 3 ma only have the fields available for category 1 AND category 2 to fill out.Then, it would be logged in, and visitors to site would only be able to see the profile information for the categories they are allowed to see.
If a plugin exists that would give us that functionality, great. If it’s something I’d have to code myself (and it could be done) that’s fine also. I’ve spent 2 days and my boss is anxious for an answer that we can do this.
Thanks
Topic: Malicious code
Hello friends,
i’m creating a wide social with Buddypress.
Having already considered all the security measures regarding wordpress (first of all registration), which are the way or best practices to avoid maliciuos code injected via publishing a post by a member (that is not manual approval of any commment of course)?
Example: dedicated plug-in, limitation of some symbol as “bad word” (i have plugin) or others.
Many thanks,
Giuseppe
What’s the REST API endpoint to get activity with comments, Or what’s the endpoint to get comments?
I’m using this endpoint getting the last 10 activity but no comments are associated
https://example.com/wp-json/buddypress/v1/activity
I’m using the latest WordPress and buddyPress version and have no problems, everything works fine,
I can not share link to my company website for NDA contract reasons
thanks