Skip to:
Content
Pages
Categories
Search
Top
Bottom

private messaging broke on 1.2.4 upgrade


  • piphut
    Participant

    @piphut

    I’m running WP 2.9.2 and BP 1.2.4. Everything was working fine but since the BP upgrade when you go to a member’s profile page and click “send user private message” the private message “send to” field does not populate with the username of the person you are sending to. Subsequently a lot of users think it is broken because they type in their message and hit send with nothing in the sendto: field.

    if you manually enter in the username of the person you are sending to it will send it fine, but any ideas why this got broke for 1.2.4?

    Mark

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

  • piphut
    Participant

    @piphut

    More info: for some reason it returns my username as “admin” even though I deleted the “admin” user a long time ago. My profile page even uses “admin” in the URL: http://piphut.com/members/admin

    However I user @r-a-y ‘s username only plugin and it shows up correctly as “piphut” in my blog comments.

    So the problem appears to be in is passing the wrong username in the r= string when people try to private message me, and therefor the ‘send to’ is not being populated correctly, though it was working correctly before the upgrade to 1.2.4

    Thoughts? Quick fixes? Free fish?


    r-a-y
    Keymaster

    @r-a-y

    This is only happening for your admin account right?

    This ticket is related to your issue:
    https://trac.buddypress.org/ticket/1820

    Might want to reopen it.

    Also try disabling any third-party plugins (including the Usernames only plugin)… see if your problem disappears.


    piphut
    Participant

    @piphut

    Just on the admin account, yes. I re-opened the ticket thanks.

    I am having the problem that sending a private message points to “/members/_myuserid_/messages/compose//” which in turn responds with a Forbidden-Error page. My User ID is not “admin” though I do have site admin privileges.

    This does not seem to be the bug describred in the ticket at https://trac.buddypress.org/ticket/1820

    Regards,
    Oliver


    r-a-y
    Keymaster

    @r-a-y

    @piphut – Try adding the following in wp-config.php:
    define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true );

    It’s possible that “admin” is still used as your “user_nicename”.


    piphut
    Participant

    @piphut

    Hi @r-a-y I checked my database and “admin” IS the nicename. If I change that in my db will that fix the problem?


    r-a-y
    Keymaster

    @r-a-y

    @piphut – It should… but if it doesn’t… try the snippet I posted above.

    Also, this begs the question… how did you change your username in the first place? Did you edit it through the DB or through a plugin?


    piphut
    Participant

    @piphut

    @r-a-y That worked but now there is a new problem. When a user tries to send a PM but leaves the subject blank they get a generic error that says “There was an error sending that message, please try again”. Is there anyway to either a) just make the subject of blank messages “no subject” or b) specify in the error message that a subject has to be entered before they can send?


    r-a-y
    Keymaster

    @r-a-y

    This is not a “problem” per se.

    It’s a matter of customizing the language file:
    https://codex.buddypress.org/how-to-guides/customizing-labels-messages-and-urls/

    Most users will input a subject… so I don’t see this being a big issue. You could possibly add javascript validation so the subject has to be filled out before the form is submitted.

    Also, just wondering how you changed the username? This will help with others who encounter this problem later.


    piphut
    Participant

    @piphut

    @r-a-y I think I just created a new administrator account and then deleted the old admin account but honestly it has been awhile so I could be wrong.


    piphut
    Participant

    @piphut

    @r-a-y I changed it in the DB.


    r-a-y
    Keymaster

    @r-a-y

    @owrede – Ping! Please read from here on. See if this resolves your issue.

    [EDIT]
    Just reading your issue again… doesn’t seem like this is a related issue.
    Does your problem occur when using the default BP theme? You might want to start a separate thread in order to avoid confusion.


    Oliver Wrede
    Participant

    @owrede

    The problem is still existing… :-(


    paulhastings0
    Participant

    @paulhastings0

    @owrede Make sure that you’re using BP 1.2.5.2

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘private messaging broke on 1.2.4 upgrade’ is closed to new replies.
Skip to toolbar