Your cart is currently empty!
Fatal error with buddypress
—
by
Hi,
I have an installation combining Groups and BuddyPress. Every time I create a group on a page, a fatal error occurs. The group is created anyway, and I can call it after. Even more, once it is created I can operate normally. It is in the moment of creation when the error happens.
Regards
Ricardo
Posted in Groups
Comments
4 responses to “Fatal error with buddypress”
Hi Ricardo, you’re welcome.
FYI, you can use the following definition in wp-config.php file
define( 'WP_DEBUG_DISPLAY', false );
and it will hide the logs from the front-end, but if you have errors or even fatal errors, these should be fixed or the elements producing them should be disabled, during this testing session.
In the meantime and since I definitely need to check the whole debug.log contents, you can even create a staging clone where I can check the issue without modifying your live site. The staging IMO can be really useful since it helps you test updates and overall site functionality prior to deploying them to your live site.
Please let me know how to proceed with your case.
Kind regards,
George
Hi Ricardo,
Thanks for the follow-up here. I tried with the latest versions of Groups and BuddyPress on my test installation and I still don’t get the same results, as a matter of fact I get no issues when creating a new group or when using this group to restrict access to a post/page. I think it’s better to have a look at your installation once you provide us temp admin credentials by sending them to george at itthinx dot com. It would also be useful if you enable WP debugging.
Kind regards,
George
Hi George,
This is what I got
Thanks
Ricardo
vibe_title==>S = 1vibe_subtitle==> = 1vibe_breadcrumbs==>H = 1vibe_sidebar==>mainsidebar = 1
Fatal error: Uncaught ArgumentCountError: Too few arguments to function bp_groups_clear_group_creator_cache(), 1 passed in /home/barcelo5/mygreatteam.com/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/barcelo5/mygreatteam.com/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php:101 Stack trace: #0 /home/barcelo5/mygreatteam.com/wp-includes/class-wp-hook.php(287): bp_groups_clear_group_creator_cache(’10’) #1 /home/barcelo5/mygreatteam.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array) #2 /home/barcelo5/mygreatteam.com/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/barcelo5/mygreatteam.com/wp-content/plugins/groups/lib/core/class-groups-group.php(308): do_action(‘groups_created_…’, ’10’) #4 /home/barcelo5/mygreatteam.com/wp-content/plugins/groups/lib/access/class-groups-access-meta-boxes.php(381): Groups_Group::create(Array) #5 /home/barcelo5/mygreatteam.com/wp-includes/class-wp-hook.php(289): Groups_Access_Meta_Boxes::save_post(8275, Object(WP_Post in /home/barcelo5/mygreatteam.com/wp-content/plugins/buddypress/bp-groups/bp-groups-cache.php on line 101
There has been a critical error on your website. Please check your site admin email inbox for instructions.
Hi Ricardo,
Welcome to our support channel and many thanks for using Groups on your installation.
Since you get a fatal error, then you should enable WP debugging, create a group and then go to http://www.your_site_url.com/wp-content/debug.log or directly through your server under wp-content folder you will find the file debug.log and send us a copy of that to george at itthinx dot com.
To enable debugging, edit your wp-config.php file and replace this line:
define( ‘WP_DEBUG’, false );
with these lines:
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );
Kind regards,
George