Header Errors When Trying to Send PM
-
I’m trying to do the following BP command in one of my plugins:
`messages_new_message( array( ‘recipients’ => $recipients, ‘subject’ => $subject, ‘content’ => $message ) );`The PM message seems to send fine and the email gets sent, but it’s giving me the following errors:
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-admin/admin-header.php:19) in /public_html/wp-content/plugins/buddypress/bp-messages.php on line 549Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-admin/admin-header.php:19) in /public_html/wp-content/plugins/buddypress/bp-messages.php on line 550
Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-admin/admin-header.php:19) in /public_html/wp-content/plugins/buddypress/bp-messages.php on line 551
Anyone have any ideas on what could be causing these errors? Am I using messages_new_message() incorrectly?
- The topic ‘Header Errors When Trying to Send PM’ is closed to new replies.