Is it just me or is anyone else experiencing this issue?
When I set the "Profile picture preset:" the default picture in user settings doesn't show on new accounts.

BTW I am using advance profile kit and user pane modules. Not sure if that is the cause but will test it with those disabled and report back.
In the interim is there anyone else experiencing this behavior?


itaine’s picture

reporting back: disabled APK and Author pane modules and same behavior. When imagecache profiles are set, I get text "Guest's Picture" where there is suppose to be the default picture.

harmony’s picture

I have the same issue. I am using v6.6. I have searched but have been unable to find any info on this issue other than this post. I do notice that the pictures field in the users db table is not being filled in like the users who upload their own pictures. Is this normal?


totocol’s picture

Same issue here. Now the user's pictures are not showing across the site. Just the "user's picture" text.

Might have to disable the modules if we cannot find an answer.


totocol’s picture


Just make sure the GD2 module is also installed. It fixes the issue. Its working just fine after that.

itaine’s picture

you talking about the ImageAPI GD2? if so I had that enabled and still had the issue regarding the default image.

totocol’s picture

Can you explain little bit better? I do not seem to have any issues anymore. Did you follow all the instructions regarding picture sizes and pixels?, Did you check that you do not have anything else in your theme that might be overriding the pictures styling?. Check that with firebug. Did you update the PHP and cleared the Cache after you installed the module?. Is it only having with new accounts?

spas’s picture


I'm having the same issue and I will try to explain it better:

I have set default user image with full path and this is what I get when try to use it with imagecache profile on comment and also on User profile page:

Only local images are allowed. /files/imagecache/thumb_64/"/>

Everything works fine when I upload a picture to the user profile, but that's not the case with default pictures.
Obviously default picture is not processed.

Thank you in advance.

oldphotos’s picture

Have the same issue.

User photos show just fine. The default photo doesn't show. In internet explorer it's a white box with an x - even though the path is correct to the photo (and photo is right size, etc).

Using ImageAPI GD2.

Has anyone found a solution?

halver’s picture

The problem is that it is looking for the default photo in the wrong place. If you tell it to look for the default photo in, for example it will in fact append that path to wherever imagecache is storing files, for example in system/files/imagecache/user_image_default with the result that it is looking for a photo in system/files/imagecache/user_image_default/ oops.
You can see this for yourself with firebug.
This is obviously a bug that should be fixed pretty easily. But in the meantime you can solve it by simply putting your default pic where the module expects to find it. In my case, for example, I put one default_avatar.gif in system/files/imagecache/user_image_default and one in system/files/imagecache/user_image_large. Then, in user settings, set the default photo to be simply default_avatar.gif (or whatever your image is called), with no path in front of it.
Good luck.

patchak’s picture

This helped, default images are showing now, thanks a lot!!

lipinponmala007’s picture

in my case i checked that image location and it is found to be varying when i vary the default settings for user .so i made an image for the location where the browser says ..thus i managed this problem

and the above method seems to be working for me...

andypost’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Looks like the problem is more related to imagecache not this module.

Any opinions?

Kristina’s picture

My default user pictures comes up as a broken image.

I tried placing the expected images in the right places but it seems the permissions on those folders won't let me. I've tried changing the permissions to those folders and it won't let me change them either.

Kristina’s picture

To fix this and get around the permissions problem. I had to install imce and upload the images through that.

virtualdrupal’s picture

Just chiming in to say this is still an issue.. had to manually create the imagecache folder for each profile, resize the default image manually and copy it to the appropriate folders.

Guty’s picture

Same issue here. Everything works fine for user uploaded pictures, but default picture doesn't show up.
I'm using Drupal 6.15 with
imageapi 6.x-1.6
imagecache 6.x-2.0-beta10
imagecache_profiles 6.x-1.1

For me there are two issues:
1st: Help text of 'Default picture' in 'User settings' is misleading. It says 'URL of picture to display for users with no custom picture selected'.
A look in firebug shows that this has to be just the path and the name of the picture beyond the 'Picture image path' field above.
OK. This is another story.

2nd: When I've updated the path and name as describe in my first issue, the default picture still doesn't show up. Another look in firebug shows the reason. The URL shown in firebug is while the real URL would be
I seen that on the profile page.

I use these settings in 'User settings':
Picture image path: avatar
Default picture: default-picture.jpg

So it looks like imagecache_profile doesn't care about the 'Picture image path'. Visiting the URL that it should be shows the image with right dimensions.

BTW: GD is turned off. I just use imagemagick.
Quick workaround: Place a link from the in the location where the picture should be to the location where it actually gets generated from the module (after you typed in the URL in your browser for the first time).

Hope this is some help.

andypost’s picture

#16 Can you see default avatar with imagecache_profile module disabled?
What versions of modules are you using?

Flying Drupalist’s picture

I was using the latest stable, after seeing #17 I updated to the latest, got this:
Fatal error: Cannot access empty property in /www/sites/all/modules/imagecache_profiles/views/ on line 32

And now is back at the stable...

Edit: Here's the url that profile was looking in:


That's right, there's no image at the end of the src, even though I had set one at default_avatar.jpg.

andypost’s picture

Caused by previous commit, fixed

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Fixed

This can be caused if you've entered a full URL in Drupal core's default profile field, such as If you reconfigure this value with a relative path, such as sites/all/files/image.jpg, the profile pictures should display as expected. The underlying reason is that theme_imagecache expects a path relative to the Drupal root directory, not a full URL.

@halver It appears the important the difference between the two paths you mentioned in #9 is that one specifies the site domain while the other uses a relative path -- you can place your image wherever you want.

If this doesn't resolve the problem for folks in this issue, please re-open.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

navid.kashani’s picture

Status: Closed (fixed) » Active

I Have the same issue #18

andypost’s picture

Status: Active » Postponed (maintainer needs more info)

this was already fixed? so what version you are using?

alexkessler’s picture

I stumbled upon the same problem.
Using the latest release (not dev) of imagecache and imagecache_profile always adds the path:[imagecache_profile_preset]/

So, if I now using a relative path inside Drupal core's default profile field such as:

I get a path like this:[imagecache_profile_preset]/site...

The only workaround is to put the default picture inside the [imagecache_profile_preset] folder and just
use image.jpg inside Drupal core's default profile field.

jwilson3’s picture

There is another case when an empty image is not shown, and i wanted to link it in here, for people that may arrive at this page from a search.


You want to show a user profile image at any other imagecache preset than one of the three specifically allowed on admin/user/settings.

I found a way you might do this on comment #2:

Namely, use:

theme('imagecache', 'specified_preset_name', $account->picture, [..])  

instead of:

theme('user_picture', $account);

However, there is an issue with this method when a user hasn't uploaded a profile image. Calling theme imagecache will proceed to create an 'empty' image for the preset you specify, that will look something like what the OP is experiencing.

<img src=""  [...] />

This is because $account->picture might be empty. Basically, you have to call theme('user_picture') to ensure imagecache_profiles does its magic to create the path to the default image correctly.

It might be obvious to others, but I had to dig through imagecache_profiles_user_picture() to find a solution on how to do this correctly by hand. Its described in option 2 of comment #5 of #374372: Imagecache user picture.

$account->imagecache_preset = 'specified_preset_name';
theme('user_picture', $account);
ressa’s picture

The solution for me was post #20 by ezra-g, thanks!

I had entered the complete path to a "default_pic" folder I had created, with this path it works:

Fidelix’s picture

Status: Postponed (maintainer needs more info) » Active

<img src="" class="imagecache imagecache-perfil_46">

The picture is actually at

My setting in the user config page is this:


It seems that imagecache is appending the picture, no matter whats the setting.

Fidelix’s picture

Status: Active » Postponed (maintainer needs more info)

Ignore me, please.

My image path was wrong, default image works perfectly when using relative paths.

MAds’s picture

Im not sure what kind of mess Ive made, but I still cant get the default avatar to show.

Using this code in the user-picture.tpl.php

$pict = $content_profile->get_variable('profile', 'field_avatar');
$title = $content_profile->get_variable('profile', 'title');
if (is_array($pict[0])) {
print theme('imagecache','frontpage', "user_pictures/".check_plain($account->uid)."/".$pict[0]['filename'], $title, $title);
else {
print theme('imagecache','frontpage', "sites/default/files/defaultavatar.jpg", $title, $title);

the uploaded picture works perfectly, as well as the default picture for users who have been deleted and no longer have profiles

It does not show the default photo for users who have profiles. In fact, although the default path has been set in the token avatar, the user picture settings and the above code, it instead creates a new path /sites/default/files/imagecache/frontpage/user_pictures/16/defaultavatar.jpg. As I have read from other posts, I can just put the default photo where it is searching, but in this case it is created for each new user (in this example 16), so it would be impossible to constantly go in and add the file. Additionally, when checking the database, the folder it is searching in is not even created until a photo is uploaded.

Any insight on how to sort this out is welcome. I have the imagecache profiles enabled.

Thanks in advance

jwilson3’s picture

@MAds If you have the ability to install imagecache_profile module, then there's no need to overwrite user-picture.tpl.php, you can specify the preset you want in the admin interface.

Albert Volkman’s picture

Thanks, #9 fixed it for me!

Lasac’s picture

@25, superb!

andypost’s picture

Just add a parameter for $account->imagecache_preset

 $account->imagecache_preset = 'specified_preset_name';
theme('user_picture', $account);

Source D6
Related for D7 #1300064-5: Integrate imagecache external with imagecache profiles

andypost’s picture

I'm waiting for change notification from #517814-136: File API Stream Wrapper Conversion

Closed as duplicate about 7.x #1305800: Default image not being resized

pillarsdotnet’s picture

Status: Postponed (maintainer needs more info) » Needs review

Change notice added; please review.

andypost’s picture

@pillarsdotnet Thanx a lot