Skip Navigation

[Resolved] Can't update user info – Edit CRED form

This support ticket is created 2 years, 8 months 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by Minesh 2 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2355867
user-info-edit-form.jpg

I created an Edit CRED form in order for my users to edit their info.
When I try to edit the info, the form gives me an error:
"The user was not saved because of: Users with the level (missing term) can't be modified through this form".

But the form is setted up to update any users levels except admin, and my testing user is an author, so I don't understand the error message.

#2356207

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not aware with the error you shared, I would like to have more information first. Error says user with the level missing term cant be modified.

Based on the information you shared and screenshot, I see that you set the edit form to edit all roles excluding administration that means you set the form to edit any role other than administrator.

I would like to know where you add the edit form? Did you created any taxonomy level or can you tell me how you assigned level taxonomy to users?

- Do you see the form is working as expected with you disable all non-Toolset plugins as well as with default theme?

I would like to have debug information that will help us to debug and investigate your issue:
- https://toolset.com/faq/provide-debug-information-faster-support/

#2356337

Hello Minesh 🙂

I added the edit form in a single page "Edit my profil".
I did not create any taxonomy level and I am editing user level's through the "Users" tab in WP dashboard.

Yesterday I've cleaned up all users levels and kept only the main ones (Admin / Editor / Author / Subscriber).

Now, I get another error. The form is setted up to edit all levels except Admin, but it actually shows up only for admin and not Editor / Author / Subscriber.

I tried to disabled Toolset Access and it brought me came back to the previous error (User with "" level access cannot...)
I reinitiated Toolset settings (Toolset / Settings / Access / Reinitiate), but no change
I tried with default WP theme, and the error is still there

For the debug info, do I have a specific field to add it or I just copy-paste here?

#2356963

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I do not able to locate the page "Edit my profil", can you please share the link of the page where you added the edit user form?

#2357189

hidden link

Catherine 🙂

#2359723

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It seems you changed the admin access details as the previously shared admin access details is not working now. Can you please share working admin access details.

I have set the next reply to private which means only you and I have access to it.

#2360811

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The new admin login access details you shared is not working at this end. Could you please send me working admin access details.

I have set the next reply to private which means only you and I have access to it.

#2361525

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I'm not sure what caused this but it looks like this issue is specific to this user or maybe you have some plugin that affect this.

Please note that I've removed the user password and confirm password fields from edit form as its not recommended. You may try to add reset password process for that.

I noticed that user with ID: 248 (toolset) since its user meta entry for key "wp_capabilities" is saved differently. The value for the meta key "wp_capabilities" for toolset user was stored as:

a:2:{s:19:"manage_translations";b:1;s:13:"administrator";b:1;}

Usually, the user role information is the first item in this serialized data which I've changed as:

a:2:{s:13:"administrator";b:1;s:19:"manage_translations";b:1;}

As you can see the role administrator is added at first place in serialize array for user meta wp_capabilities.

After that when I try to save the form: hidden link

I can save it.

I'm not sure what plugin or any other thing caused this but you will have to keep track of this to check what plugin is responsible that is changing the wp_capabilities metakey.

#2365171

Hi Minesh, sorry for late reply

Few things.

User data:
I've created the user through WordPress account tab, like we usually do. I have no clue why WordPress would save it differently. Could it be

Edit form
I've tested with 3 user accounts, and yes, only the toolset one can be edited through the form. All others brings back the "User with (blank) role cannot be edited".
So it's may really be related to the way it was stored in the database, because WP seems not to recognize user role status.

"Mon profil" page:
I've tested with 3 accounts too, and except for the administrative one, the page would not show user info (name and email).
This said, after editing user info for 'toolset', data showed up in the page.
For the second non admin user, trying to update user info (even if it didn't work) made data show up in the "Mon profil" page. So maybe it was a one time bug.

I've tested with and without Toolset plugin enabled, and same results.

#2365175

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Edit form
I've tested with 3 user accounts, and yes, only the toolset one can be edited through the form. All others brings back the "User with (blank) role cannot be edited".
So it's may really be related to the way it was stored in the database, because WP seems not to recognize user role status.
==>
Please disable all other plugins to ensure and that way you will be able to know that if there is any plugin overriding the user capabilities.

I've tested with and without Toolset plugin enabled, and same results.
==>
Please try to create a new site where only Toolset plugins installed and create a new user and see if you can experience the same thing. If you want me to setup a sandbox site for you let me know, I will setup it and send you the link so you can play with it.

Please open a ticket for every new question you may have as we entertain only one question per ticket.