Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would expect to see little pictures under "Contributors" but instead there is just an empty space. Sniff.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2013-02-19 at 7.14.02 PM.png | 46.56 KB | webchick |
Comments
Comment #1
ezra-g CreditAttribution: ezra-g commentedSaddest of sauces.
Assigning to me to start the search and rescue party.
Comment #2
ezra-g CreditAttribution: ezra-g commentedafter some troubleshooting it appears that the default user accounts are created without valid URIs for the user images.
Troubleshooting flow:
- Found that view displays the existing user avatars with no image style applied but all image styles fail to render, without even a broken image URL
- Followed the code flow in views_hanlder_field_user_picture.inc to
if (file_valid_uri($picture_filepath)) {
failing- Manually uploaded a new avatar for the "Jeff Noyes" test user, got the error message "The specified file profiles/commons/images/avatars/avatar-jeff_noyes.png could not be deleted, because it is not a valid URI. "
So, we need to change how these images are saved.
Comment #3
ezra-g CreditAttribution: ezra-g commentedChatted with japerry and he's going to take a stab at a solution here.
Comment #4
japerryFixed!
Required doing some re-writing of the picture upload, the facebook Oath module does it correctly. The method used by the previous code relied on a file already in the upload directory, whereas this code fetches an image from a remote server, even if that remote server is 'localhost'
http://drupalcode.org/project/commons.git/commit/df66a45
Comment #5
ezra-g CreditAttribution: ezra-g commentedThanks - Nice work, japerry!