Forum Replies Created
-
Wow thanks for the input, it’s a great help! I will try that out today and report back! Thanks again!
Hi, the error codes were found in my files in the back end/ftp. The error email is only sent to me while bbpress is activated. It has been hard to find out what is causing this. I tried deactivating youzify as well as buddypress. So far no more error emails have been received but I’m at a loss as to where it’s coming from exactly and how to correct it. My site needs these 3 plugins to function as well as the bbpress private groups plugin I have. My only theory is that the privacy function is conflicting with the notifications for some reason but like I said, it’s hard to pinpoint. My host is unsure and said to try asking bbpress. Maybe someone has a similar issue? I’ll keep researching and if I find an answer, I’ll post it here.
Further info update:
Hi, after doing further testing, I’m still getting an error. I deactivated youzify. Then, I deactivated bbpress and buddypress but still getting an error. I am not too familiar with the files and coding but I opened the files where the errors are indicatd in the above error message I posted. If anyone is familiar and sees an error, I would really appreciate the heads up. Probably a long shot but thought I’d try. Thanks!
First file:
An error of type E_ERROR was caused in line 62 of the file /home/advance1/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.php. Error message: Uncaught ArgumentCountError: Too few arguments to function bbp_format_buddypress_notifications(), 5this is the code showing in the above file currently:
Line 62-6 :
function bbp_format_buddypress_notifications( $content, $item_id, $secondary_item_id, $action_item_count, $format, $component_action_name, $component_name, $id ) {
// Bail if not the notification action we are looking for
if ( 0 !== strpos( $component_action_name, ‘bbp_new_reply’ ) ) {
return $content;
}_______________
The code found in this file: passed in /home/advance1/public_html/wp-includes/class-wp-hook.php on line 307:line 303: // Avoid the array_slice() if possible.
if ( 0 == $the_[‘accepted_args’] ) {
$value = call_user_func( $the_[‘function’] );
} elseif ( $the_[‘accepted_args’] >= $num_args ) {
line 307–> $value = call_user_func_array( $the_[‘function’], $args );
} else {
$value = call_user_func_array( $the_[‘function’], array_slice( $args, 0, (int) $the_[‘accepted_args’] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );________________
Last error file:passed in /home/advance1/public_html/wp-includes/class-wp-hook.php on line 307Thanks for the help! I will do some testing today.
Thanks again!Sorry, I thought the rest was just additional info. Here is the full error from the email I received:
Site info
WordPress version 5.9.3
Current theme: Olympus child Theme (version 1)
Current plugin: bbPress (version 2.6.9)
PHP version 8.0.17Error Details
=============
An error of type E_ERROR was caused in line 62 of the file /home/advance1/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.php. Error message: Uncaught ArgumentCountError: Too few arguments to function bbp_format_buddypress_notifications(), 5 passed in /home/advance1/public_html/wp-includes/class-wp-hook.php on line 307 and exactly 8 expected in /home/advance1/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/notifications.php:62
Stack trace:
#0 /home/advance1/public_html/wp-includes/class-wp-hook.php(307): bbp_format_buddypress_notifications()
#1 /home/advance1/public_html/wp-includes/plugin.php(233): WP_Hook->apply_filters()
#2 /home/advance1/public_html/wp-content/plugins/youzify/includes/premium/public/core/functions/youzify-live-notifications-functions.php(83): apply_filters_ref_array()
#3 /home/advance1/public_html/wp-content/plugins/youzify/includes/premium/public/core/functions/youzify-live-notifications-functions.php(27): youzify_get_the_notification_description()
#4 /home/advance1/public_html/wp-includes/class-wp-hook.php(307): youzify_process_notification_request()
#5 /home/advance1/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters()
#6 /home/advance1/public_html/wp-admin/includes/ajax-actions.php(3425): apply_filters()
#7 /home/advance1/public_html/wp-includes/class-wp-hook.php(307): wp_ajax_heartbeat()
#8 /home/advance1/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#9 /home/advance1/public_html/wp-includes/plugin.php(474): WP_Hook->do_action()
#10 /home/advance1/public_html/wp-admin/admin-ajax.php(187): do_action()
#11 {main}
thrownIt mentions buddypress and youzify. I have both plugins if that helps.
Thanks so much for the quick response!