Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 3840 bytes) in /home/site1/public_html/wp-content/plugins/buddypress/bp-core/classes/class-bp-core-user.php on line 175
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 16384 bytes) in /home/site1/public_html/wp-includes/plugin.php on line 130
Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
what to do?
I also can’t go to admin panel.
If you want to use forums, you should use bbPress instead.
bbPress = forums plugin
BuddyPress = community plugin (member profiles, user groups, private messaging, notifications)
You can use both, but if a forum is all you need, then use bbPress.
I personally am not sure why you would move from phpBB. Installing WordPress just to use a WordPress forum plugin is not the best way to go about things unless you need to blog and use specific WordPress functionality on your site.
So I created a new BP xprofile field called Height (from /buddypress/bp-xprofile/classes/) based on the the Date Box field (class-bp-xprofile-field-type-datebox.php – my code is here)
Essentially I just replaced every instance of day/month with feet/inches, then made sure to include the filepath in two other places: 1) bp-xprofile-functions.php under function bp_xprofile_get_field_types() {...}, and 2) bp-xprofile-classes.php.
I got the field to appear on my user profile but when the user tries changing the fields and saving, it doesn’t save. Is there something I am missing in my files, or does anyone know why this is and how to fix it?
@econowill
Thanks my guy you just saved my ass. And @sharmavishal thank you too.
So I went to tools, buddypress, selected – Reinstall emails (delete and restore from defaults) and clicked repair. Problem solved.
I’ve duplicated the issue for plugins using code like this:
add_action( 'bp_include', function() {
if ( class_exists( 'BP_Group_Extension' ) ) {
class My_Group_Extension extends BP_Group_Extension {
}
bp_register_group_extension( 'My_Group_Extension' );
}
}, 99 );
The BuddyPress Cover Photo plugin uses something similar to the above.
I’ve opened a ticket with a fix to this specific problem:
https://buddypress.trac.wordpress.org/ticket/7140
@anth0ny167 or anyone else experiencing this problem, I’m convinced this is a problem with class autoloading that we introduced in BuddyPress 2.6.
Although it helps, you shouldn’t need to add bp_is_active() checks that kaab321 recommended, the fact that you do means that it is a bug with BuddyPress.
If you can duplicate your issue after using my proposed fix:
https://gist.github.com/r-a-y/f54e7a07b71af1c7bfab6e06433da3d6
Then, please let me know the steps on how I could replicate this on a fresh install if possible.
@syborg has verified that this works.
Also, the BP Group Hierarchy issue is not related to this one.
I am a newbie here; I have never used WordPress before. I am trying to move away from PHPBB because it’s just too old-fashioned, as well as difficult to maintain.
So, I install WordPress on my GoDaddy hosting account, then the BuddyPress plug-in from the WordPress dashboard. I also created the Registration and Activation pages from the WordPress ‘Pages’ tab on the dashboard.
WordPress 4.5.3
BuddyPress 2.6.0
So, now what? The WordPress page looks exactly the same as before installing the BuddyPress plugin.
From the BuddyPress Settings / Pages if I click on “view” for the Registration and Activation pages, I just see the home page.
The installation did create the .htaccess file in the root of the blog.
So, what did I miss? Is BuddyPress even the solution I am looking for? (To replace my PHPBB forums).
Thanks
I’ve done a bit more digging and using the renamed full-width.php -> buddypress.php it looks like I just need to get full-width in to the body class to get the result I’m after.
As a logic test within header.php under the <body… line I added <?php if (!bp_is_blog_page() ) { ?> ‘full-width’ <?php }?> which then displays that piece of text at the top of each of the pages I expect.
When I try and replace
<body <?php body_class(); ?>>
with
<body <?php body_class(if (!bp_is_blog_page() ) { ?> ‘full-width’ <?php }); ?>>
I just get an empty page.
I’m probably missing something very simple
I’ve been trying to work out how to get the user IDs for the notification items so I can display notification user avatars.
Is this the best way to do it, I’ve tested this with a few users and seems to work:
function test_notifications_avatar() {
$bp = buddypress();
$user_id = $bp->notifications->query_loop->notification->secondary_item_id;
if ( empty( $user_id ) )
$user_id = $bp->notifications->query_loop->notification->item_id;
echo bp_core_fetch_avatar( array( 'item_id' => $user_id, 'type' => 'thumb' ) );
}
Hi,
WP:4.5.3 BP:2.6.0 Theme:twentyfourteen
I currently have my main page with a primary sidebar and content sidebar, I’ve set all other pages to use the full width template which seems to be working for events etc but buddypress only follows this setting on the main groups and members pages. As soon as I navigate to a group or member page it no longer uses that template is this correct behaviour?
I have tried adding an if around the get_sidebar but this just leaves the area empty which I’m guessing is a css issue.
I also tried copying the page-templates\full-width.php file to a child theme and renaming to buddypress.php but this also has the same effect of the empty space at the side.
Any advice would be greatly appreciated.
Thanks
Hello i have use buddypress and redistrict pro. I will use the registration of redistrict pro and not the registration of buddy press. becouse i have pay account and i whant to use that one. How can i use te redistrict pro instead of the buddypress registration?
Hi
I use buddypress and everything looks fine but just members profiles, have a title of “404 Not Found”
you can see an example here:
http://etuts.ir/users/evmohztibau/
i experienced exactly same issue with writer.
only activation mail not work, others do. password change, etc…
try to this
admin panel – setup – buddypress
setup is including permal link menu. i dont know exactly what it in english.
and click restore email setup. and i solved.
good luck!
Hi
Every time I enable extended profiles in buddypress components, after some days, I see that my database space increases and my site’s speed slows down and it wouldn’t even open! but after disabling it, the problem is solved.
my site is a wordpress network
i had lugin buddypress on my website công bố thực phẩm and cong bo san pham but some days 500 erro were become common.
Thanks in advance
For our site we use buddypress. In the groups we removed the subnav ‘admin/group-settings’, but in 2.6 this item is visible again. How can I remove it in this new version?
I used:
function gwb_remove_group_admin_tab() {
if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
return;
}
// Add the admin subnav slug you want to hide in the
// following array
$hide_tabs = array(
'group-settings' => 1,
'delete-group' => 1,
);
$parent_nav_slug = bp_get_current_group_slug() . '_manage';
// Remove the nav items
foreach ( array_keys( $hide_tabs ) as $tab ) {
bp_core_remove_subnav_item( $parent_nav_slug, $tab );
}
add_action( 'bp_actions', 'gwb_remove_group_admin_tab', 9 );
With the last update this code doesn’t work anymore so I tried:
function gwb_remove_group_admin_tab() {
bp_core_remove_subnav_item( 'admin', 'group-settings', 'groups' );
}
add_action('bp_actions', 'gwb_remove_group_admin_tab',9);
What did I do wrong?
Thanks!
Hi, I am one of the guys behind Woffice. On Woffice seems that the problem is not a conflict with “Buddypress Cover Photo”, the issue happens also without the plugin if the component “groups” is disabled.
So the solution proposed by @r-a-y doesn’t work for us, instead the solution proposed by @kaab321 solved the issue.
It’s a duplication of this topic:
No access to single activity item on from after BP2.6 upgrade
To roll back: download the previous version here. Delete your current version of BuddyPress and upload the older one.
Post Update none of the buddy press activity was visible to the visitor / registered member / admin
It say Access Denied
Kindly Visit http://www.eqsis.com/pro/activity/p/25999/
Also tell me how to roll back to previous version
@kaab321 I think that the fix proposed by @r-a-y is more elegant and relevant. You should use it instead, if it works for you, of course.
Thank you @r-a-y, I tried it and it works for me 🙂
I’ve seen that it was an autoload problem, but my knowledge about the buddypress core is very limited :/ I preferred modify a plugin than dare to change directly a buddypress file.
are you using any seventhqueen theme? if yes check this
Fatal error on a BuddyPress 2.6.0 upgrade
Hi after i upgraded to latest version of buddypress, am getting error while watching the buddypress activity…
When i (admin) try accessing the individual activity, getting the below notification
“You do not have access to this activity.”
Note: the Link was from public group, infact i was not able to see any activity ( New Member, Become Friends) from buddy press
Eg: http://www.eqsis.com/pro/activity/p/25999/
Need you helps guys @slaffik
My particular problem was with the (ancient, but useful) plugin bp-group-hierarchy. The manual fix recommended in the post BuddyPress 2.6.0 “Espejo” is now available (found here: https://github.com/ddean4040/BP-Group-Hierarchy/pull/21/files) got me back up and running. Thanks!
This helped me A LOT! Solved my error. Got it from:
https://wordpress.org/support/topic/fatal-error-with-buddypress-26?replies=3#post-8563337
Open Quote:
If you’re like me and have buddypress groups turned off, this will produce the error shown. I fixed by adding this to
/wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php
change:
$group_id = bp_get_current_group_id();
to:
$group_id = (bp_is_active('groups') ? bp_get_current_group_id() : '');
and change:
if ( empty( $group_id ) && bp_get_new_group_id() ) {
$group_id = bp_get_new_group_id();
}
to:
if(bp_is_active('groups')) {
if ( empty( $group_id ) && bp_get_new_group_id() ) {
$group_id = bp_get_new_group_id();
}
}
IMO, they should have tested this before pushing out an update. Hopefully they figure things out.
Close quote