Hi,
I have this problem. I have set up all settings to enable user profile pictures (avatars). On the admin/config/people/accounts I set directory for these pictures as "avatar" and it was correctly created under sites/default/files.

When I upload a common JPG picture on the users profile page, no error appeared after select picture and Save, but when I look at the users profile page there is just a ALT text of the IMG element (Picture of the user admin) and the image element SRC attribute points to:

http://mydomain.com/system/temporary/styles/square_thumbnail/temporary/r...

Of course this URL doesn't even exists and I have no idea where it comes from.

Thanks for any ideas about that.

Texis

Comments

dddave’s picture

Category: bug » support

1. Check wether the pic got uploaded.
2. Check the field settings for the user picture and the display settings.
3. Check wether imagecache is working correctly.

texis’s picture

Add. 1 - No, I can't find image anywhere in the directory structure of the web event there was not any error message during User profile save with image selected.
Add. 2 - Not sure what do you mean here - on the admin/config/people/accounts/fields I see only two fields - Username and password(account) and Timezone(timezone), on the admin/config/people/accounts/display there is just a filed History with Format = visible.
Add. 3 - Don't know how to check it - in fact - don't know what is the imagecache.

Thanks

texis’s picture

OK, one more update - I found the image in the tmp directory under Drupal root.

T.

dddave’s picture

What modules are you using for your profiles? Just plain core or something else in addition? Which theme are you using? If you are not using Bartik please retry with Bartik enabled.

Sorry for using the phrase "imagecache". This module was contrib in D6 but in D7 it is part of core's image module. Please go to your modules page and click on the help link for the image module. You'll find an explanation for what image does and another link to the image documentation on drupal.org. Please work through this docs to make sure you set up everything correctly.

texis’s picture

OK if you mean modules related to the profile management I don't have anything special than core provided module(s).

I've tried to switch to the Seven and Bartik themes but result is the same. Image is stored in default folder forthe temporary files (in my case it is sites/default/files/tmp) but the link on the user profile page still requires image being located in non-existing directory
system/temporary/styles/square_thumbnail/temporary/

As far as I noticed from behaviour of uploading images to other content types I would expect that image is moved from that temporary location to the
sites/default/files/styles/square_thumbnail?

And another differency I noticed is that in other content type edit, I do "Select of the image", than "Upload" and finally "Save" the post, but in case of editing user profile I just select image and do a "Save" so not sure if the problem might be related to this.

Thanks.

shyamala’s picture

In Drupal 7.7, Bartik theme. No other module related to profile installed.
- changed the profile path at user/1#overlay-context=user/1&overlay=admin/config/people/accounts to avatar
- Enabled user pictures
- picture upload style: thumbnail and size:1024x1024 these are default settings (I made no alterations)
- saved configuration
- All settings at user/1#overlay-context=user/1&overlay=admin/config/media are default, no changes made
- uploaded profile image
- upload successful, image path shows: sites/default/files/styles/thumbnail/public/avatar/picture-1-1314546417.jpg

Not able to replicate the issue.

Please try the above steps or provide more details to replicate the issue.

ench0’s picture

I am having a very similar if not the same issue. I have the Media Gallery module installed and it seems that it has something to do with this problem.

I will try a fresh Drupal install vs Drupal + Media Gallery and report here. If you're suspecting that themes may be causing this - I have Sasson + Plato 7.x-1.0 as my default theme. I will try with/without it too...

ench0’s picture

ok so I did clean drupal install, not a single module added and the problem IS happening. Here's what I did:
---------

  1. Installed drupal from localization profile l10n_install-7.x-1.0-beta16-core.tar.gz.
  2. In admin/config/people/accounts
  3. - changed the user pictures directory from "pictures" to "avatars"
    - set default avatar picture filename to "avatar.png"

  4. Observed that dir /sites/default/files/avatars was created.
  5. Uploaded a file avatar.png to above dir.
  6. Created a new regular user t1.
  7. Logged in as t1.
  8. Went to t1's profile.
  9. Observed that default avatar image was not visible on t1's profile page. An alt text "picture of t1" was displayed where the picture was expected to be. Firebug shows that the avatar's img src="http://www.MYSITE.com/avatar.png".
  10. Moved avatar.png to the root dir of the site - avatar picture is displayed in t1's profile.
sherick’s picture

texis
Have you checked the file permissions for sites/default/files folder and subfolders? It seems the image is uploaded to temporary folder, but system can't move the image to files folder.

dddave’s picture

Status: Active » Closed (fixed)

Closing stale issues against oooooold versions.

csmcreative’s picture

Wow I have just spent a ton of time on this and for my last test i used a different png for my user pic and all is well. Now, like always, I have no idea what the issue is but it works. Try deleting it and uploading something different. Hopefully it works for you.

kristi wachter’s picture

Issue summary: View changes

Just to add another data point:

I had a client site with this behavior. I found that adding an Image field to the user fields (at admin/config/people/accounts/fields ) worked when the built-in user picture field did not, so that's a possible work-around.