Hi All,
been very happy with my Q&A Section of my site using WpForo. We are currently still fillins it with life before our official go live and Today we noticed that The Forum broke.
Specifically when answering a question this critical error comes. Also an ajax error in the console.
Fatal error: Uncaught Error: Call to undefined function bp_notifications_add_notification() in /homepages/17/d4296816486/htdocs/wordpress/wp-content/plugins/wpforo/integrations/BuddyPressHooks.php:495 Stack trace: #0 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(310): wpforo_bp_add_notification(Array, Array) #1 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #2 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /homepages/17/d4296816486/htdocs/wordpress/wp-content/plugins/wpforo/classes/Posts.php(196): do_action('wpforo_after_ad...', Array, Array, Array) #4 /homepages/17/d4296816486/htdocs/wordpress/wp-content/plugins/wpforo/classes/Actions.php(734): wpforo\classes\Posts->add(Array) #5 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(308): wpforo\classes\Actions->post_add('') #6 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #7 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /homepages/17/d4296816486/htdocs/wordpress/wp-content/plugins/wpforo/classes/Actions.php(185): do_action('wpforo_action_p...') #9 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(308): wpforo\classes\Actions->do_actions('') #10 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #11 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /homepages/17/d4296816486/htdocs/wordpress/wp-content/plugins/wpforo/wpforo.php(514): do_action('wpforo_after_in...') #13 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(308): wpforo\wpforo->init(Object(WP)) #14 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #15 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #16 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/class-wp.php(797): do_action_ref_array('wp', Array) #17 /homepages/17/d4296816486/htdocs/wordpress/wp-includes/functions.php(1332): WP->main('') #18 /homepages/17/d4296816486/htdocs/wordpress/wp-blog-header.php(16): wp() #19 /homepages/17/d4296816486/htdocs/wordpress/index.php(17): require('/homepages/17/d...') #20 {main} thrown in /homepages/17/d4296816486/htdocs/wordpress/wp-content/plugins/wpforo/integrations/BuddyPressHooks.php on line 495
Can anyone help me decipher this?
The error did still post the post, however in the last few minutes it doesnt anymore. When deleting a post, I get a wp-admin ajax error in the console and it does not delete.
Start by removing this from wpForo pages:
<!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me - Debug: cached@1676686793 -->
https://wpforo.com/community/faq/wpforo-and-cache-plugins
Ok in a final try I just completely deactivated WP Rocket, and same exact error ...
Ok, so I cannot read the error, but I can open that file to row 495 and I saw that wpForo is trying to call: bp_notifications_add_notification( $args );
I had deactivated the buddypress notifications as I didnt use them anywhere else. I guess that caused the error. I activated the buddypress notification addon and the error is gone!