Tagged: buddypress, undefined functions
After I have upgraded my website to buddypress 3.0.0, I now see the following error when I load the site. I am using community builder 1.1.2
Fatal error: Uncaught Error: Call to undefined function bp_is_user_forums() in /opt/bitnami/apps/wordpress/htdocs/wp-content/themes/community-builder/buddypress/members/single/home.php:39 Stack trace: #0 /opt/bitnami/apps/wordpress/htdocs/wp-includes/template.php(690): require() #1 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(155): load_template(‘/opt/bitnami/ap…’, false) #2 /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(61): bp_locate_template(Array, true, false) #3 /opt/bitnami/apps/wordpress/htdocs/wp-content/themes/community-builder/buddypress/members/single/index.php(43): bp_get_template_part(‘members/single/…’) #4 /opt/bitnami/apps/wordpress/htdocs/wp-includes/template-loader.php(74): include(‘/opt/bitnami/ap…’) #5 /opt/bitnami/apps/wordpress/htdocs/wp-blog-header.php(19): require_once(‘/opt/bitnami/ap…’) #6 /opt/bitnami/apps/wordpress/htdocs/index.php(17): require(‘/opt/bitnami/ap…’) #7 {main} t in /opt/bitnami/apps/wordpress/htdocs/wp-content/themes/community-builder/buddypress/members/single/home.php on line 39
I do not see this error if I load a different theme (like the 2017 one)
- This topic was modified 6 years, 5 months ago by Ethan.
It looks like the function was removed in 3.0.0
https://buddypress.org/support/topic/fatal-error-call-to-undefined-function-bp_nouveau_before_loop/
Hi Ethan,
Thank you for notifying.Please upgrade to 1.1.3. It adds compatibility with BuddyPress 3.0.
Thank you
BrajeshHi Ethan,
Please install and configure BuddyDev Dashboard
https://buddydev.com/plugins/buddydev-dashboard/It allows you to automatically update our themes/plugins.
Regards
BrajeshI did it, but the error seems be there …. In my case
PHP Fatal error: Call to undefined function bp_is_user_forums() in /nas/content/live/cideb/wp-content/themes/boss/buddypress/members/single/home.php on line 71
[Fri Jun 22 02:38:51.753993 2018] [:error] [pid 8865] [client xxxxxxxxxxx:32222] [CRITICAL] : Call to undefined function bp_is_user_forums()Any other solution ? This error gets me google search 500 error …..
ThanksHi Alberto,
Please open boss/buddypress/members/single/home.phpYou will see some code like this
elseif ( bp_is_user_profile() ) : bp_get_template_part( 'members/single/profile' ); elseif ( bp_is_user_forums() ) : bp_get_template_part( 'members/single/forums' ); elseif ( bp_is_user_notifications() ) : bp_get_template_part( 'members/single/notifications' ); elseif ( bp_is_user_settings() ) : bp_get_template_part( 'members/single/settings' );
All we need to do is comment the following lines like this
elseif ( bp_is_user_profile() ) : bp_get_template_part( 'members/single/profile' ); // elseif ( bp_is_user_forums() ) : // bp_get_template_part( 'members/single/forums' ); elseif ( bp_is_user_notifications() ) : bp_get_template_part( 'members/single/notifications' ); elseif ( bp_is_user_settings() ) : bp_get_template_part( 'members/single/settings' );
That will fix it. The function was deprecated in BuddyPress 3.0. That’s why you are getting the fatal error.
The topic ‘ [Resolved] bp_is_user_forums undefined function error when loading page’ is closed to new replies.