Skip Navigation

[Resolved] User Edit Form showed details for another user

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 2 voices.

Last updated by Nigel 6 years ago.

Assisted by: Nigel.

Author
Posts
#1143215

Received a report from a user of a new site we developed with Toolset that when they tried to edit their profile and upload a new user photo, the fields of the CRED form were all for a different user (a separate member). We are concerned as we do not want member information to be available to other members.

Don't have a screenshot of it, but just a report of it happening 4 days ago (we were just notified).

"I tried to add a photo to my profile and it came up with (ANOTHER USER) in the fields. Very confusing as it was all there a moment before when I went to update my profile with the photo."

Any assistance to determine what could be the cause of this would be appreciated. Available for a video/phone call if necessary, and can provide backend access.

#1143572
user-edit-screen.png

More information to hopefully help get this resolved....Use case is this: A User (Administrator or Member role) logins and sees a member dashboard. They can click on 'Edit Profile' which takes them to a page that has this the 'Update Profile Form' view within. Here, they will see a form allowing them to update their own user profile (some built-in wordpress fields, some additional custom user fields added from Toolset), for their user account only (only ever their User ID). After they submit, they get redirected to the membership dashboard.

Attached is a screenshot of the view that is being used -- is there an issue with the filtering here? If so, please advise on what I should have this set to. The user is always going to be logged in, and should only ever be able to edit their own user profile.

Thanks!
Mark

#1143582
Update Profile Form.PNG

One more screenshot, just in case.

#1143658

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mark

I'm just taking a look at this now.

The setup from your screenshot looks a little odd, I have your site credentials and I will check and report back to you.

#1143665

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mark

Well, the only thing that looks odd is that on your Update Profile page, instead of inserting the user form directly, you insert a View and add the form to the output section of that View.

From what I can see the View serves no purpose whatsoever.

Please delete the View and insert the shortcode for the form itself.

In that case the form should be editing the current logged in user.

Your Access settings only allow the form to be used for members to edit their own profile and not someone else's.

I can't account for what your user reports, but if there were to be a problem I suspect it would be related to your use of the View to host the form when that is not required.

Make the change, and then try a series of tests, logging in as different members.

#1143772

Hey Nigel.

We will be making the change shortly, and then give it some tests. We will let you know, although we never encountered this before going live.

We are inclined to believe the members report on this, because they did share the name of the other user they saw listed in the fields. Possible there is some edge case here that could be getting a bit of spotlight?

-Mark

#1144774

Hey Nigel,

No other reports of this just yet, but, would it be possible to investigate from your end? Bit weary as we need to ensure privacy is upheld, so anything you and your team can find (if there is an edge case / bug with using this in a view) to help provide some relief would be appreciated.

Cheers,
Mark

#1145068

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Mark

The problem is in identifying the edge case. We need details to be able to reproduce the problem and identify the cause. We don't have any other reports of this, and it appears to be working normally. For a product like Toolset which can be used in a variety of ways within the broad WordPress ecosystem, we rely on our clients somewhat to find and report such edge cases.

You could try adding an activity logger that records everything which happens on your site, so that were it to happen again there might be some context available that would help identify why.

See this post, for example, for a description of such plugins: hidden link