Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit Profile link redirects to homepage when user has @ symbol in username

  • @sawyerh

    Participant

    I’m running BP 1.2.1 with WP 1.9.2

    When a user has an @ symbol in their username, they are redirected back to the homepage when they try to click the Edit Profile link. My member’s need to have their email address as their username due to membership settings.

    The problem is known and someone has said:

    This problem is caused by a wp_sanitize_redirect. You’ll probably want to override this function in bp-core (if they have the username compatibility constant enabled)

    Any idea how to fix this?

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • @djpaul

    Keymaster

    Have you reported this as a bug on https://trac.buddypress.org/ (regarding the fact links get broken with compat enabled and @ in the username)

    @sawyerh

    Participant

    @DJPaul – Yup, it has been known for about 3 months: https://trac.buddypress.org/ticket/1356

    I found a solution here: http://danpolant.com/how-to-use-email-addresses-as-usernames-in-buddypress/

    You have to edit wp-includes/pluggable.php

    @intimez

    Participant

    Correct me if I’m wrong, but I thought wp+bp did away with using special characters for username.

    @sawyerh

    Participant

    @intimez, I don’t believe so. I am still able to create a user with a username as an email address. Also, I am using a plugin that manages my membership which automatically creates the username and sets it as the user’s email address, so I have no control over that unfortunately

    @nuprn1

    Participant

    i submitted a trac ticket (don’t have the url on hand) but i also outlined how to force the switch over to user_nicename – i had the same issue with email address as user_login and periods.

    http://blog.etiviti.com/2010/02/forcing-buddypress-to-use-user_nicename-for-member-urls-and-mentions/ (but that is for 1.2 and haven’t looked at it for 1.2.1)

    @peterverkooijen

    Participant

    Why would a user have a @ in their username?!

    I’m very much in favor of using the email address as username, but there are better ways to deal with the member slug.

    @nuprn1

    Participant

    Why would a user have a @ in their username?!

    on my site – it is very common to use the myname @ mycompanyname syntax (not even an email address just as a reference to whom they work for or affiliated with).

    @sawyerh

    Participant

    Why would a user have a @ in their username?!

    Wasn’t my decision to do it that way and I had actually not planned on it, hence the urgent need to have had it fixed.

    The website is using a plugin that manages paid memberships. When the memberships sign up to have access to the website, the plugin automatically assigns the username as the person’s email address.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Edit Profile link redirects to homepage when user has @ symbol in username’ is closed to new replies.
Skip to toolbar