Notifications
Clear all

Error caught when adding rating

12 Posts
2 Users
0 Reactions
1,133 Views
Posts: 7
Customer
Topic starter
(@caitlin-jeffery)
Member
Joined: 3 years ago

Hi there, 

When users add ratings via the wpDiscuz comment system, the following errors are being thrown:

An error of type E_ERROR was caused in line 787 of the file /var/www/html/wp-content/plugins/wpdiscuz-buddypress-integration/includes/wpDiscuzBPINotifications.php. Error message: Uncaught ArgumentCountError: Too few arguments to function wpDiscuzBPINotifications::bpNotifications(), 5 passed in /var/www/html/wp-includes/class-wp-hook.php on line 292 and exactly 8 expected in /var/www/html/wp-content/plugins/wpdiscuz-buddypress-integration/includes/wpDiscuzBPINotifications.php:787

 

The comment and rating shows up just fine, but the activity/notifications are not added to the Buddypress activity stream. 

Site: wackywriters.com

Example rating: https://wackywriters.com/books/eldalyn/test-title/#comment-12

Could you please advise how I should begin troubleshooting this? 

Thank you!

11 Replies
Astghik
Posts: 6010
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

@caitlin-jeffery,

Please let us know the versions of the wpDiscuz, BuddyPress and wpDiscuz - BuddyPress Integration plugins you're using. 

Reply
2 Replies
Customer
(@caitlin-jeffery)
Joined: 3 years ago

Member
Posts: 7

@astgh sure:

 

Buddypress: 8.0.0

wpDiscuz: 7.2.2

wpDiscuz BP add-on: 1.0.2

Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6010

ok @caitlin-jeffery, thank you. 

Could you please deactivate all other plugins (keep activated only the wpDiscuz, BuddyPress and wpDiscuz - BuddyPress Integration) and check again? 

Reply
Posts: 7
Customer
Topic starter
(@caitlin-jeffery)
Member
Joined: 3 years ago

I did, and there was no change. I'll elaborate a bit more:

The comment part of a submitted rating will show in the activity/notifications for buddypress, but the rating itself will not. All notifications are only for comments.

The rating is appropriately added to the database and accessible from there, it just seems to be missing something to push through buddypress notifications and add to activity.

Reply
7 Replies
Customer
(@caitlin-jeffery)
Joined: 3 years ago

Member
Posts: 7

I should add that this is a rating for a custom post type, so perhaps that's related.

Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6010

@caitlin-jeffery,

The comment part of a submitted rating will show in the activity/notifications for buddypress, but the rating itself 

Here is all right. The Rates tab is only designed for showing only the article rating (Stand-alone Post Rating). Post Rating Based on Comment Rating Field are not being displayed in the Rates tab. 

Please clarify a bit. Do you still see the error message? 

Reply
Customer
(@caitlin-jeffery)
Joined: 3 years ago

Member
Posts: 7

@astgh

It hasn’t shown up again in the logs, but ratings are still not displayed in the rates tab. The tab says “no rates found”.

Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6010

@caitlin-jeffery,

As I've already mentioned the Rates tab is only designed for showing only the article rating (Stand-alone Post Rating). Post Rating Based on Comment Rating Field are not being displayed in the Rates tab.

Reply
Customer
(@caitlin-jeffery)
Joined: 3 years ago

Member
Posts: 7

@astgh

 

Oh I see what you're saying now. So ratings submitted via the comment form won't show up in Buddypress??

Reply
Customer
(@caitlin-jeffery)
Joined: 3 years ago

Member
Posts: 7

Like this image:

Screen Shot 2021 06 13 at 11.28.12 AM

The five stars included here won't show up in the ratings tab - am I understanding this correctly?

Reply
Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6010

@caitlin-jeffery,

The five stars included here won't show up in the ratings tab - am I understanding this correctly?

Yes that's correct. 

Reply
Share:
Scroll to top