Please or Register to create posts and topics.

Fatal error Asgaros Forum BuddyPress-Integration.

I received a fatal error message from WordPress due to this plugin. Found at

https://chaosandlight.com/wp-admin/admin-ajax.php

WordPress version 5.6.2
Current theme: Extra (version 4.9.1)
Current plugin: Asgaros Forum BuddyPress-Integration (version 0.1.1)
PHP version 7.4.11

I asked my support at Kinsta to look at the error log. This was his message.

2021/03/11 02:20:13 [error] 2917#2917: *49738 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function AsgarosForumBuddyPress::format_notifications(), 5 passed in /www/chaosandlightcom_230/public/wp-includes/class-wp-hook.php on line 287 and exactly 8 expected in /www/chaosandlightcom_230/public/wp-content/plugins/asgaros-forum-buddypress-v0.1.1/asgaros-forum-buddypress.php:280
Stack trace:
#0 /www/chaosandlightcom_230/public/wp-includes/class-wp-hook.php(287): AsgarosForumBuddyPress->format_notifications(‘asgaros-forum-p…’, ’56’, ‘300’, 1, 1)
#1 /www/chaosandlightcom_230/public/wp-includes/plugin.php(255): WP_Hook->apply_filters(‘asgaros-forum-p…’, Array)
#2 /www/chaosandlightcom_230/public/wp-content/plugins/youzify/includes/premium/public/core/functions/youzify-live-notifications-functions.php(83): apply_filters_ref_array(‘bp_notification…’, Array)
#3 /www/chaosandlightcom_230/public/wp-content/plugins/youzify/includes/premium/public/core/functions/youzify-live-notifications-functions.php(27): youzify” while reading response header from upstream, client: 122.196.159.239, server: http://www.chaosandlight.com, request: “POST /wp-admin/admin-ajax.php HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php7.4-fpm-chaosandlightcom.sock:”, host: “chaosandlight.com”, referrer: “https://chaosandlight.com/join-spiritual-community/
========================
Looks like there’s a PHP coding/scripting related issue from that plugin’s file:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function AsgarosForumBuddyPress::format_notifications(), 5 passed in /www/chaosandlightcom_230/public/wp-includes/class-wp-hook.php on line 287 and exactly 8 expected in /www/chaosandlightcom_230/public/wp-content/plugins/asgaros-forum-buddypress-v0.1.1/asgaros-forum-buddypress.php:280

Any assistance would be greatly appreciated.

Hello @aleves

It seems that the BuddyPress-API changed in one of the last updates. I will check it and update the integration-plugin when I could reproduce it.

ALeves has reacted to this post.
ALeves
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thank-you for looking into this.