After uploading a user picture, the picture shows fine in edit mode after save. However, the picture is not displayed after switching to view mode. Instead the default picture is displayed for all users as if no user pictures exist. I had verified that the image files are actually loaded in the correct folder but somehow they are not linked to the users. BTW, the default picture image file exists in the same folder with the same permission (750) so does not look like a file permission issue.

This used to work fine when I was on drupal 7.28. I noticed this issue and other image display issues after upgrading to 7.29. After upgrade to 7.30 and now 7.31, other image display issues seem to have been resolved but the user picture issue remained.

Any help is appreciated!

Comments

dcam’s picture

There is another old issue dealing with user pictures being lost. Please check #935592: User picture is deleted after calls to user_save(). There is an RTBC patch in comment #89. Try applying it and see if that fixes the problem.

qmhao99’s picture

I did see that issue and tried the patch, which I thought might be related. However, the patch did not solve my issue. Not only that, after applying the patch, the picture could not even get displayed in edit mode after pressing the Save button.

Version: 7.31 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.