Postponed (maintainer needs more info)
Project:
Lock Field Values
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2024 at 22:10 UTC
Updated:
7 Jul 2026 at 22:41 UTC
Jump to comment: Most recent
Comments
Comment #4
pearls commentedThanks mohd. Tested. Now we have 2 issues. Here's the log.
Comment #5
kul.pratap commentedWorking on it.
Comment #6
kul.pratap commented@pearls What do you mean by "I get the following PHP error when I do anything else with user" can you please ellaborate what are you doing with the user because i can't able to reproduce the issue in my site everything is working right on the User Interface.
Comment #7
pearls commentedThere is a boolean field in user entity that triggers role assignment when it'ss value is on.There are also text fields that should not be changed.
In some scenarios, the administrator needs to lock these field for some users. I use the module for these fields. However, even if the administrator does not touch any of these field, It keeps giving the errors mentioned in the previous comment.
@kul, Thanks for support .
Comment #8
kul.pratap commentedPlease check.
Comment #9
pearls commentedTested.
After MR!2, "Lock field values checkbox" disappeared .
You see that the Lock Values Checkbox does not appear when you try to edit a member profile.
Comment #10
divyansh.gupta commentedThe original error no longer appears, which is great but it seems that the “Lock field values” checkbox is missing when editing a user profile. This may have been unintentionally affected by the recent changes.
So moving this issue back to NW, so that someone can resolve this bug caused!!
Comment #11
justcaldwellI'm unable to replicate this error in either Drupal 10 or 11. I tested with text and boolean fields added to both Basic Page nodes and a user profile. The current MR is not viable in its current form—
hook_field_widget_form_alter()was removed in Drupal 10.To go any further, I think we'll need detailed instructions for reproducing the error, including Drupal core version, PHP version, etc.