Notifications
Clear all

[Closed] Help, critical error

14 Posts
4 Users
0 Reactions
695 Views
Posts: 7
Topic starter
(@kinderfriendly)
Active Member
Joined: 2 years ago

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.

 

13 Replies
dimalifragis
Posts: 2611
(@dimalifragis)
Famed Member
Joined: 5 years ago

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

 

4 Replies
(@kinderfriendly)
Joined: 2 years ago

Active Member
Posts: 7

@dimalifragis Thank you, I already had community excluded. Excluded the other ones and still same error. As a matter of fact. The error persists even when cookiebanner, cache, Yoast are deactivated.

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@kinderfriendly Well you haven't since i see the signature right now.

(@kinderfriendly)
Joined: 2 years ago

Active Member
Posts: 7

@dimalifragis I am confused, isnt this what you mean (see pic)? I am not using WPforo for sign up sign in or change password. 

And again. Even when I deactivated all above mentioned plugins the error persisted. The error Message says something about Buddypresshooks what does that mean?

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@kinderfriendly Just go to your /community page and see the html source. I don't know the "howto" of rocket cache, i'm just seeing the signature of that caching.

I completely understand what the issue is, just trying to help here. This is a weekend, wait for some replies from wpForo support.

 

Posts: 7
Topic starter
(@kinderfriendly)
Active Member
Joined: 2 years ago

Ok in a final try I just completely deactivated WP Rocket, and same exact error ... 

3 Replies
Tutrix
(@tutrix)
Joined: 5 years ago

Noble Member
Posts: 1495

@kinderfriendly 

Your forum is still cached by WP Rocket
try this

/community/
/participant/
/community/(.*)
/participant/(.*)

and then clear the Rocket Cache

---------------------------------------------
you are currently using the Classic Theme, this is no longer supported, so it can cause errors with other plugins

try using the new 2022 theme and clear the cache from wpForo

(@kinderfriendly)
Joined: 2 years ago

Active Member
Posts: 7

@tutrix so again, error persists even when completely deactivating the wp rocket plugin. So it cannot be that!

furthermore, just because wp rocket left a commented out comment, does not mean the page is cached. Particularily not when its deactivated! Furthermore it has been working with my setting of wp rocket the last 3 months.

i still think the error code referencing buddypress is significant! I cannot make sense of it though.

Anyone here can actually read the error code?

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@kinderfriendly How can a disabled plugin leave a comment in html code? That is a first.

Posts: 7
Topic starter
(@kinderfriendly)
Active Member
Joined: 2 years ago

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!

3 Replies
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@kinderfriendly,

Please provide admin access, Our Dev would check what's the reason of the issue.

Send the admin credentials to info[at]gvectors.com, mention this topic URL in the email, and let me know here that you have sent the email.

(@kinderfriendly)
Joined: 2 years ago

Active Member
Posts: 7

@chris Are you sure? I solved the problem? You still want to come look at the site?

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3627

@kinderfriendly,

a*s you wish, we just wanted to help you.