WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Register Plus] Can't change other users' custom profile fields (15 posts)

  1. dhewlette
    Member
    Posted 4 years ago #

    Hey,

    I've got Register Plus (this issue happens with Pie Register as well) running on the most recent version of wordpress (2.9.1) and have set up several custom fields for my user profiles. I've run into a very big issue though. I can't edit any user's custom fields unless I'm logged in as that user. Here is what happens:

    Say I have a custom field created through Register Plus called "Birthday" and I am the administrator role will all rights and capabilities. There is also another user (subscriber role) named tom. If I, as administrator, go to users-->authors & users-->tom and change the birthday field to a different date then hit "save," the birthday field on my (the administrator) profile changes to what I want Tom's to change to, and Tom's profile doesn't change at all. In fact, what happens when I hit save is that all of the custom user fields in Tom's profile stay exactly the same, but my (admin) profile's custom user fields all change to what I've put in Tom's profile fields. Basically, the plugin is acting like the profile I'm editing is my own, and save all of the information (even fields I didn't edit) as my own information. However, if I log out of the admin role and log in as Tom and edit the profile, everything works fine.

    So I can't edit a user profile without logging in as them. Editing ANY user's profile while logged in as a any user other than the one who actually owns the profile you are editing will result in no change to the profile you are trying to edit and a complete change to the person's profile who is doing this editing! (Tom is the only one who can change tom's profile and have the changes stick. Admin changes tom's profile and ends up with a mirror image of tom's profile plus the changes admin made, while toms profile doesnt change at all)

    Does anyone have a clue as to why this is happening?

    As I mentioned, I tried this same test on the Pie Register plugin (a recent fork of register plus), and had the same issue!

    Thanks!

    http://wordpress.org/extend/plugins/register-plus/

  2. cjkeeme1
    Member
    Posted 4 years ago #

    I am also experiencing this bug. I have no fix and it is annoying.

  3. nathan12343
    Member
    Posted 4 years ago #

    I've installed register plus in the last couple of days and I don't have this problem (running 2.8.5). Not sure if rolling back to an earlier WP version will help.

    That said, I can't have more than one user defined field at the moment...

  4. dhewlette
    Member
    Posted 4 years ago #

    I guess I should mention that I've got register plus v3.5.1.

    Why are you running 2.8.5? That seems like it was released a long time ago.

  5. nathan12343
    Member
    Posted 4 years ago #

    I'm v 3.5.1 of register plus too.

    Laziness is why I'm still on 2.8.5!

  6. dhewlette
    Member
    Posted 4 years ago #

    Any ideas?

  7. GeekSpecialties
    Member
    Posted 4 years ago #

    It seems like it's something with 2.9.1

    I have been using the plugin successfully for about 1 year. I just updated to 2.9.1 and am seeing the same thing. Every time a new user registers it also changes my admins info.

    If somebody has an idea to what changed in 2.9.1 that would affect this, would be a great help.

  8. kayjayone
    Member
    Posted 4 years ago #

    Created a workaround where we still use Register Plus but create our own custom fields on the user profile page.

    1. In the User Defined Fields section of the Register Plus settings page, added fields leaving the checkbox Add Profile Field blank

    2. Created custom user profile fields using the same field names defined in the Register Plus settings page using the following method:

    http://bavotasan.com/tutorials/adding-extra-fields-to-the-wordpress-user-profile/

  9. gak
    Member
    Posted 4 years ago #

    I've just found this workaround:

    1. edit register-plus.php on your Register plus plugin folder
    2. go to line 1626
    3. replace $_GET with $_POST

    Now it's working fine for me. Using Register plus 3.5.1 with WordPress 2.9.2

  10. adamburns
    Member
    Posted 4 years ago #

    gak!!!!

    Thank you so much. Your fixed saved my life. It was on 1634 for me, but close enough. Phew!!

  11. tomstardust
    Member
    Posted 4 years ago #

    Thanks gak, the fix is working fine. I think we will never see an official update for the plugin: the last update it's dated 2008.

  12. tomstardust
    Member
    Posted 4 years ago #

    Update: gak's fix changes both the desired user profile and the admin profile. You will have to correct the admin profile with the original data after editing the desider user.

  13. djenkins
    Member
    Posted 4 years ago #

    Thanks for this info. Even though I'm using Pie Register instead of Register Plus, this info saved me. If you're using Pie Register, the code in question is in the pie-register.php file, line 3647. Change both of the $_GET references in that line to $_POST and you're good to go. This also eliminates the problem of the admin profile being updated when updating another profile.

    If for some reason the code is not on that line, look for this:

    function SaveProfile()

    It's a couple lines down.

    THANKS!

  14. zyrq
    Member
    Posted 4 years ago #

    Pie Register v1.2.0 (2010-6-26) still has this behaviour (WP3.0)
    Proposed fix still needs to be applied in function SaveProfile()

  15. radiok
    Member
    Posted 3 years ago #

    I implemented this fix into my plugin, Register Plus Redux which is custom field compatible with both Register Plus and Pie Register.
    http://wordpress.org/extend/plugins/register-plus-redux/

Topic Closed

This topic has been closed to new replies.

About this Topic