[buddypress-trac] [BuddyPress Trac] #6894: BP Messages - Causes PHP Error - Wrong call of a function
buddypress-trac
noreply at wordpress.org
Thu Feb 11 16:17:54 UTC 2016
#6894: BP Messages - Causes PHP Error - Wrong call of a function
-----------------------------------+-------------------------
Reporter: Jon Ziemlich | Owner:
Type: defect (bug) | Status: new
Priority: highest | Milestone: 2.4.4
Component: Component - Messaging | Version:
Severity: blocker | Keywords: needs-patch
-----------------------------------+-------------------------
FIX: Remove line 104 at bp-messages/bp-messages-actions.php: $feedback =
$send->get_error_message();
Hey there,
bp-messages/bp-messages-actions.php on line 104:
$feedback = $send->get_error_message();
The Variable $send is defined on line 87 $send = messages_new_message( ...
.
The function messages_new_message is defined in bp-messages/bp-messages-
functions.php
This function returns in no case an object. Only an int or bool.
So line 104 at bp-messages/bp-messages-actions.php is wrong and causes
errors!
Thank you.
Best wishes
Jon Ziemlich
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6894>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list