Hi

I have avatar selection set up, but I seem to randomly lose all images that have been uploaded - those uploaded by users (through the normal procedure and end up in "pictures" by default) are not deleted, but those that aer added to avatar_selection (and go to the avatar_selection folder) are deleted. Looking at the webfolder, it is empty.

I am not sure when, but there is a chance this happens every cron run.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stella’s picture

Status: Active » Fixed
FileSize
1.3 KB

Sorry, this was due to a change in how uploaded files are handled in D6. The attached patch should hopefully fix this issue for you.

Cheers,
Stella

NaheemSays’s picture

Thanks.

jancici’s picture

thanks, that patch did help to me too.

stella’s picture

Released in avatar selection 6.x-1.2.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

NaheemSays’s picture

Status: Closed (fixed) » Active

I am still losing avatars - not all of them at once, but a few randomly here and there.

The avatar selection module still lists them, and they are also there in the files database table, but not there on the webserver.

stella’s picture

Can you send me your avatar selection settings please? Are you using public or private file downloads by the way?

NaheemSays’s picture

Public file downloads.

As for settings, none of the boxes on the admin/settings/avatar_selection page are ticked. Avatars are available to all roles.

I may have figured out how to reproduce this - it seems that there is a clash with allowing people to upload their own avatars (Drupal core function).

how to reproduce:

1. Select avatar via avatar selection, save.
2. change your mind, upload an avatar from the "upload picture" box.
3. Change you mind again - try to upload new picture. Get an error that files/ does not exist or pictures folder not writable (That is probably a core bug)
4. Click delete. This deleted the image that was selected in step 1, not 2.
5. Upload a new picture. The picture uploaded in step 2 is seen, not the new one.

EDIT - number 4 and 5 have been changed.

EDIT 2 - I suppose only step 4 is a avatar_selection bug. The rest is probably Core?

stella’s picture

Status: Active » Needs review
FileSize
1.74 KB

That issue with about the file not existing was actually an avatar selection bug. It may be related to the problems you're seeing. Try the attached patch or the next dev release (available later today).

Cheers,
Stella

stella’s picture

Marked #244791: Avatars quit working as a duplicate of this issue.

stella’s picture

Status: Needs review » Fixed

Released in 6.x-1.3.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Sinan Erdem’s picture

Status: Closed (fixed) » Active

Sorry, I am using version 1.6 but some of the avatars disappear... I tried to set file permissions to read only, didnt have chance to test yet...

Cheers,

Sinan

stella’s picture

Status: Active » Closed (fixed)

Sounds like your particular issue is the same as #432474: Avatar disappearing from the selector. Closing in favour of that one.