chrisverticalplus (@chrisverticalplus)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • chrisverticalplus
    Participant

    @chrisverticalplus

    The error we are getting is the same:

    PHP Fatal error: Uncaught Error: Call to a member function get_users_for_object() on null in /var/www/vhosts/redacted-site-name/httpdocs/wp-content/plugins/bbpress/includes/users/engagements.php:125

    It seems bbp_user_engagements_interface is returning null if the user marks the forum as hidden. For now, we have told them not to do this, but we are concerned that a user action using the ui can cause such fatal errors. While we were troubleshooting I bypassed the error by adding a ? in the code to avoid the fatal error on null. This brought the site back up while we investigated the cause

    `$retval = bbp_user_engagements_interface( $rel_key, $rel_type )?->get_users_for_object( $object_id, $rel_key, $rel_type );


    chrisverticalplus
    Participant

    @chrisverticalplus

    Hi,

    I am encountering this error. did you ever find the cause?

Viewing 2 replies - 1 through 2 (of 2 total)