Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: php fatal error $message->send()

@henrywright

Moderator

If I have no recipients I get a php error.

Are you sure the problem is you have no recipients?

Once messages_control() returns, the following code is executed immediately:

if ( empty( $this->recipients ) )
    return false;

Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-messages/classes/class-bp-messages-message.php#L127

This will ensure the message isn’t sent if you have no recipients.

Skip to toolbar