It seems that after updating to WP 4.2.2 my groups function is not working anymore. Always when I try to create group, I get the following message (I have put WP_DEBUG as true in config file):
WordPress database error: [Duplicate entry '0' for key 'PRIMARY']
INSERT INTO wp_bp_groups_members ( user_id, group_id, inviter_id,
is_admin, is_mod, is_banned, user_title, date_modified,
is_confirmed, comments, invite_sent )
VALUES ( 22, 0, 0, 1, 0, 0, 'Ryhmän ylläpitäjä',
'2015-06-15 09:33:16', 1, '', 0 )
Even I get this error, it creates a group in to the database with id 0. And if I delete all rows in the wp_groups and wp_group_meta and try to create a new group, it will give the same error. This has not been happening before and the site has been active for many months now.
I can not create group in the admin side either. All the plugins are up to date, I even tried to disable all other plugins, but the problem continues.
I am using WP 4.2.2 and BP 2.3.1 and the site name is homesome.com
Thanks for help in advance!
This sounds like a job for WordPress Cron. Note that WordPress Cron works slightly different to the UNIX version in that it runs only if there is a site visit. So if your website has low traffic then use a service such as Pingdom to ensure your site is hit regularly.
Hi
I am new to buddypress and wordpress. I have just set up a forum using the One Community theme.
What i need help with is hiding the total count of members that appears on the members list.
I have read the advise on this post https://buddypress.org/support/topic/remove-member-count/ and have pasted the code as mentioned but the count remains there. Im not certain if i am pasting it in the wrong line or what the problem might be. Is there any easy way to do this?
Your help will be highly appreciated.
Whenever I try to click on a member in the Members Page, a group in the Groups page or any part of any members Profile using Chrome I get the message that “This webpage has a redirect loop” and “ERR_TOO_MANY_REDIRECTS”. When I try to do the same thing on using IE I get “This page can’t be displayed”.
I have contacted support from my host (DreamHost) and they are saying that everything looks good from their end and think that it may be a caching issue on the client side. I have tried from multiple PCs after clearing the History and still get the same thing. Any direction would be greatly appreciated.
I am running
WordPress 4.2.2
BuddyPress 2.2.1
and my website address is http://www.ethanolnetworks.com
Thanks,
Tom
hi,
herre’s my answer
1. Which version of WordPress are you running? 4.2.2
2. Did you install WordPress as a directory or subdomain install? worpress directory
3. If a directory install, is it in root or in a subdirectory? in root
4. Did you upgrade from a previous version of WordPress? If so, from which version? no, installed new
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. – yes
6. Which version of BP are you running? – new one
7. Did you upgraded from a previous version of BP? If so, from which version? no, installed new on
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
I have some plugins, woocommerce, visual composer, forms, around 10
9. Are you using the standard WordPress theme or customized theme? – purchased theme, multi news
10. Have you modified the core files in any way?no
11. Do you have any custom functions in bp-custom.php?no
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? bbpress 2.5.7, I installed individually
13. Please provide a list of any errors in your server’s log files. – checking now
14. Which company provides your hosting? – in South Korea, http://www.cafe24.com
at the first place, the activation was worked. but this issue has started since when I tried to click translate button. I did many things that change theme, all plugin delete and activate, but buddypress is not working.
if there are something I missed, please let me know what I have to try
Thanks!
I installed a new website on wordpress http://www.coreteacher.org and installed the latest version of buddypress. After installation, it redirected all of my pages to the buddypress forum.
I’ve uninstalled the plugin and deleted it but it is still redirected all my pages to some random phpforum.
For example, my About Us page, which used to be an About Us page is now linking to a phpforum that is not in use.
Is there anything I can do to undo this?
Hi shanebp,
thanks, that helps. Its a pity, that bp_message_thread_has_unread() only checks for the loggedin user.
Do you think it would be possible to copy and modify this function in a custom.php ?
@danbp and Henry Wright:
For our project, we want to forward unread messages via JSON API to an external system, which has a central processing and provides these messages to external displays of users – outside WordPress. Therefore, we need a central access to all unread messages of all users.
@sebastianpierre BuddyPress is compatible with nearly all WordPress themes out of the box. I am assuming that you’re on the latest WordPress and BuddyPress verions. Change theme to either Twenty Fifteen or Twenty Fourteen, check if all the BP pages are showing up as expected. If it is, then double-check that you have the_title and the_content template tags in your custom theme’s page.php file.
bp-template-pack files in my root folder
Just to be clear, if you’re referring to this plugin https://github.com/boonebgorges/bp-template-pack then I suggest that you deactivate it and remove the folder/files you moved to your theme folder. If you’re referring to the bp-legacy files then I suggest that you resolve the issue of BP pages showing up in your theme first before doing any kind of customization.
Which theme do you use ?
Can you test youre install with Twenty Fifteen theme and see if anything is translated ?
Are the terms not translated on front-end, or also in back-end ?
FYI, the spanish translation for BP is only completed to 96%, but activity is translated. To ensure you have the most recent copy, download the spanish .mo file from here and install it in wp-content/languages/plugins/buddypress-es_ES.mo
Something may be getting lost in translation, but if you mean you want the user who has just logged in to be redirected to his/her profile, then check out https://wordpress.org/plugins/bp-redirect-to-profile/
Hi, i tried to access unread messages from other users, but the following code gives me only access to the account messages, i am logged in with.
Here is a part of the code. If i use another user ID then the current logged in account, i get no results.
...
$aParams ['box'] = 'inbox';
$aParams ['per_page'] = '99';
$aParams ['user_id'] = $UID;
if (bp_has_message_threads($aParams)) {
while (bp_message_threads()) {
bp_message_thread();
$subject = bp_get_message_thread_subject();
$excerpt = bp_get_message_thread_excerpt();
$from = bp_get_message_thread_from();
$unread = bp_message_thread_has_unread();
if ($unread){
$messages .= ' From: ' . $from . ' Subject: ' . $subject . ' Excerpt: ' . $excerpt;
}
}
} else {
return array("message" => "no messages");
}
return array("all messages" => "$messages");
...
I am using WordPress 4.2.2 and BB 2.3.1
Hello,
I have problemas with the traduction of BuddyPress. The WordPress version is 4.2.2. and the buddypress is Versión 2.3.1. My web id idenergia.com/intranet.
Some words are traduced, but others don´t.
The problem is in the profile section, http://www.idenergia.com/intranet/members/elena/profile/, but the web is privated.
Activity -> is not traduced
Profile -> is not traduced
Notifications 0 -> is not traduced
Groups 1 -> is not traduced
Configuración -> is traduced
Thanks
You could use current_user_can() to check the member’s capabilities. For example:
if ( current_user_can( 'edit_pages' ) ) {
// Output button
}
Ref: https://codex.wordpress.org/Roles_and_Capabilities
@mjurkowski
Oh okay, so since it’s working from your end, maybe you can help me. Any suggestions on what I can do or should do to get it to work on my end? I’m still running into the same issue of the users not being created, even while I’m still on the Twenty Fifteen theme with only the BuddyPress plug in (now at the 2.3.1 version), the bbPress plug in (now at the 2.5.7 version) and the W3 Total Cache (still at the 0.9.4.1 version) activated. Also, I went and checked the back end again from my hosting plan provider (as well as talked to a representative of my hosting plan service over the phone) and he noticed that there was actually a lot of errors listed for my sites link. The only thing is that the representative said all the other errors listed have been resolved because he doesn’t see any other error messages on those that are listed in the error log. The only one he still sees on there (and I just realized this as well) was this message:
PHP Warning: strstr(): Empty needle in /hermes/bosweb26d/b246/ipg.sjfgraphixcom/myloopnetwork/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 781
Could this be the reason why the registration page is still not working? Because I never did any changes to that bp-core-filters.php file, I’ve only been working on the post pages and customizing my website theme that I wanted to use from before (which was the Magnus WordPress Theme). But as I was saying before, even though I’m still currently on the Twenty Fifteen theme, I’m still having issues. Please let me know what else I need to do to resolve this. My hosting plan server is iPage (which uses NGINX), running a 5.0 PHP version. I hope this additional information helps out.
I made some “progress”
I found this and I can agree that it is still true.
https://buddypress.trac.wordpress.org/ticket/5971
Filtering is inconsistent and sometime happens twice.
I think this should be something to look into somewhat soon.
Anyway here is the minimum you have to do to turn off html filtering.
BUT it makes you website a lot more vulnerable to attacks and errors so use it at your own risk.
Add this code to your child theme function.php
//Unfilter xprofile *risky*
remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_kses', 1 );
remove_filter( 'bp_get_the_profile_field_edit_value', 'wp_filter_kses', 1 );
remove_filter( 'xprofile_get_field_data', 'wp_filter_kses', 1 );
remove_filter( 'bp_xprofile_set_field_data_pre_validate', 'xprofile_filter_pre_validate_value_by_field_type', 10, 3 );
remove_filter( 'xprofile_data_value_before_save', 'xprofile_sanitize_data_value_before_save', 1, 4 );
There’s a ticket about this here:
https://buddypress.trac.wordpress.org/ticket/3789
View the comments in that ticket for some approaches that you can take. If you need some hooks in BuddyPress to make this happen, let us know by replying to that ticket. Login using the same credentials as you use here on buddypress.org.
You could also think about using Gravatar and disabling avatar uploads as well. It’s probably not a valid option for your site, but just making sure you know! 🙂
Not that I know of. Have a read of How to Take Control of The WordPress Heartbeat API for an overview of the performance issues associated with it.
Heya! I’m really looking forward to using BuddyPress for an upcoming project. However I am having trouble with one part. This is how I’ve installed BP.
1. I’m using WordPress and creating my own theme (not child theme).
2. I’ve installed the BP-plugin through the admin panel in WordPress.
3. I’ve assigned the specific sites to register, activate etc.
4. Problem
My problem is that the pages don’t show anything. I mean literally they don’t find anything to show. I’ve been scouring the web for some guidance on how to fix BP with a custom theme but I’ve come up with one solution only. That was to put the bp-template-pack files in my root folder (where I up until now had no BP files) and that makes it work. It displays all the flows, the user page, the register and so on.
But, however, I feel this is probably not how it’s supposed to work. As I can’t find any updated version of bp-template-pack, but one that is for BP 1.5 (and now it’s what, 2.3?)
Can anyone please help me understand how this works. I can obviously get it working up until I’ve assigned all the pages. After that I can’t manage to get the information to display under the links. Do I need to enable some sort of theme compatibility in functions? Is there a new bp-template-pack?
Sincerely, Sebastian
It seems this is in-progress. See 6057 for updates.
Hello and thanks for the fast reply.
1st I have a lot of custom code but nothing that interferes with admin-ajax.php
2nd My plugins (please dont panic)
Agreeable
bbpress
bbpress – custom kses allowed tags
bbpress -enable tinymce visual tab
bbpress moderation
buddypress
buddypress captcha
Contact form 7
easysocial icons
events manager
GB bbpress tools
google analytics by yoast
Gzip ninja speed compression
Loco translate
Speakout! email petitions
Tinymce advanced
Wordpress SEO
WP bakery visual composer
WP super cache
YOP Poll
3d theme: fraction from orange themes (i already contacted their support and i am waiting for their reply)
Hi, I am creating the website dexterlist.com and the registered users do not receive any kind of notification (email, profile bell, live notifications) when someone comments to their posts. I am using a paid theme called Kleo: http://seventhqueen.com/themedemo/?product=kleo, WordPress version 4.2.2 and Buddypress version 2.3.1. The support forum of the Kleo theme told me it is not a theme problem but a Buddypress one. Please advise.
Hello,
I am using wordpress 4.2.2 and buddypress 2.2.3.1 with bbpress 2.5.7
i have an issue with my buddypress wordpress. My site has load time 10 secs with admin-ajax.php loading 3 times with 3-4 sec delay every time.
The only thing i could find on the forums has to do with woocoomerce which i dont have activated on my theme. I guess the only thing that has issues with admin-ajax.php is the buddypress login thats why i open that topic.
You can check what i mean here http://tools.pingdom.com/fpt/#!/dBUhCx/http://apofasismenoi.gr/
I tried some solutions like heartbeat options pluggin that didnt work.
Also i tried and added on functions a suggested code
add_action( 'init', 'my_deregister_heartbeat', 1 );
function my_deregister_heartbeat() {
global $pagenow;
if ( 'post.php' != $pagenow && 'post-new.php' != $pagenow )
wp_deregister_script('heartbeat');
}
but still didnt work.
Any ideas or help?
Chris
The plugin needs to be compatible with BuddyPress, not vice versa.
You should contact the plugin author and make that request.
https://wordpress.org/support/plugin/buddypress-cover-photo
I find this plugin incredibly helpful when managing — and allowing others to manage — the membership of groups, without availing them to the dashboard: https://wordpress.org/plugins/invite-anyone/