Participant accessing forum archive results in error
-
When participant tries to access the forum archive page, they see the following error:
Fatal error: Uncaught Error: Call to a member function get_users_for_object() on null in /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/engagements.php:125 Stack trace: #0 /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/engagements.php(146): bbp_get_users_for_object(6065, '_bbp_moderator_...', 'post') #1 /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/capabilities.php(107): bbp_is_object_of_user(6065, 255, '_bbp_moderator_...') #2 /nas/content/live/wsscholars/wp-includes/class-wp-hook.php(287): bbp_map_primary_meta_caps(Array, 'moderate', 255, Array) #3 /nas/content/live/wsscholars/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #4 /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/core/sub-actions.php(523): apply_filters('bbp_map_meta_ca...', Array, 'moderate', 255, Array) #5 /nas/content/live/wsscholars/wp-includes/class-wp-hook.php(287): bbp_map_meta_caps(Array, 'moderate', 255, Array) #6 /nas/content/live/wsscholars/w in /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/engagements.php on line 125 Fatal error: Uncaught Error: Call to a member function get_users_for_object() on null in /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/engagements.php:125 Stack trace: #0 /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/engagements.php(146): bbp_get_users_for_object(6065, '_bbp_moderator_...', 'post') #1 /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/capabilities.php(107): bbp_is_object_of_user(6065, 255, '_bbp_moderator_...') #2 /nas/content/live/wsscholars/wp-includes/class-wp-hook.php(287): bbp_map_primary_meta_caps(Array, 'moderate', 255, Array) #3 /nas/content/live/wsscholars/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #4 /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/core/sub-actions.php(523): apply_filters('bbp_map_meta_ca...', Array, 'moderate', 255, Array) #5 /nas/content/live/wsscholars/wp-includes/class-wp-hook.php(287): bbp_map_meta_caps(Array, 'moderate', 255, Array) #6 /nas/content/live/wsscholars/w in /nas/content/live/wsscholars/wp-content/plugins/bbpress/includes/users/engagements.php on line 125
On debugging, I was able to narrow it down to
bbp_user_engagements_interface( $rel_key, $rel_type )
returningNULL
for participant in functionbbp_get_users_for_object()
.Can anyone help me figure out why this is happening or how I can resolve it?
- You must be logged in to reply to this topic.