Needs work
Project:
Drupal core
Version:
main
Component:
user system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Feb 2016 at 22:52 UTC
Updated:
6 Jan 2026 at 09:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
swentel commentedHmm, yeah, we should make it persistent field, just like the body field is so you can re-use it easily.
Comment #6
dpiWe cannot rely on the user picture being available in Drupal 8, the comment_user_picture/node_user_picture theme toggles actually refer to whether the author user entity's compact view mode is rendered.
I propose changing references to user picture to the view mode. This primarily consists of translation string changes and adding theme variable replacing the existing picture variables.
Before I add tests I want to make sure validate this is the correct course of action.
Patch
There is no behaviour change here, references to user pictures already use compact view mode.
user_view()to use view builder directly.user_picture_enabled()t()in theme setting form. Use translation trait instead.Comment #7
swentel commentedI don't think we can make this change from a BC point of view. If people upgrade, they suddenly will get different output which is not what we want to happen.
- edit - scratch that, nothing changes effectively ..
Comment #10
borisson_I don't think we can change anything in the stable theme, so I don't think we can do this. If we do, we should use proper deprecation for
user_picture_enabled.Comment #11
borisson_Setting to needs work to add the deprecation.
Comment #20
smustgrave commentedSo is this just about marking user_picture_enabled as depreciated?
Comment #21
smustgrave commentedper #17
Comment #24
smustgrave commentedWonder if this is still a need feature request?
Comment #25
paintingguy commentedYes.
After upgrading from D9 to 10 user_picture was renamed to field_user_picture . I cannot fix this or create a new field without appending field to the machine name.
Any help on fixing this would be greatly appeciated
Comment #26
smustgrave commentedComment #27
dpiComment #28
geekinformatic commentedThis is expected behavior in Drupal 10 and not something that can be “fixed” by renaming or recreating the field.
In Drupal 8+ (including Drupal 9 and 10), user pictures are implemented using the Field API, and all configurable fields are required to use the field_ prefix. Because of this, user_picture can no longer exist as a configurable field, and core correctly provides field_user_picture instead. Drupal core does not allow creating or renaming configurable fields without the field_ prefix.
If you are encountering breakages after upgrading, the solution is to update any custom code, templates, Views, or configuration that still reference user_picture and change those references to field_user_picture.