Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sending a private message, containing only a titlecontent, outputs an uninformative error


  • rbahumi
    Participant

    @rbahumi

    Hi,

    I am running the most updated version of BP (1.5.5), and I’m getting the following error when trying to post a private message without a title:
    “There was an error sending that message, please try again”

    This error is not very informative for the end user, and he cannot guess what he is doing wrong.

    This is the code Snippet from bp-messages-screens.php (lines 53-54):
    if ( empty( $_POST ) || empty( $_POST ) ) {
    bp_core_add_message( __( ‘There was an error sending that message, please try again’, ‘buddypress’ ), ‘error’ );

    It checks to see if the ‘subject’ or ‘content’ are empty, and outputs the above error message.
    I am using the default BuddyPress theme, it doesn’t contain a JavaScript that checks these fields are not empty before posting. The error message might appear like an internal error and doesn’t suggest the user should edit his massage.

    I am new to WordPress/BuddyPress, and not familiar with the way things work here.
    Should I fix this on my own, or wait for you to fix that in your next version (in case you will find this issue correct/relevant)?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sending a private message, containing only a titlecontent, outputs an uninformative error’ is closed to new replies.
Skip to toolbar