Steps to reproduce bug

1. Go into your user account in Drupal 5. Upload a user picture.
2. Save your user account.
3. You will now see a user picture on your account page.
4. Save your account again.
5. Your user picture is now gone.

Behavior I expected:

I expected Drupal to leave the user picture alone unless I checked the "delete this" box.

Behavior happening instead:

Instead it is deleting every time i save, regardless of whether I make edits to the user account or not.

I'm running 5.7.

Comments

vm’s picture

I'm not seeing this in the 5.x-dev which will become Drupal 5.8

This if there is a bug in 5.7 it's already been fixed. My suggestion is to use the 5.x-dev version. I don't have a 5.7 installation to double check your problem.

In 5.x-dev there is a delete checkbox and unless this checkbox is checked this user picture isn't removed.

bflora’s picture

Hi, Very,

I'm about 5 weeks into working/customizing this current install of Drupal... is there any way I can make the change to it instead of starting over from scratch? I've got about 800 articles loaded up, 300 users etc. etc. I just assumed something like this would work...and it isn't.

vm’s picture

what will be 5.8 is a bug fix release. Nothing will happen to your customizations or your data. Regardless when 5.8 is released you are going to update to that version anyway ?

the only other thing you can do is dig through the issue query and locate the patchs for the profile.module or user.module and see which one of them fixed the problem. then patch your files.

bflora’s picture

Not sure what you're suggesting...can you explain it in a bit more detail? Thanks.

vm’s picture

First suggestion: update your site to the latest code where I can't reproduce your problem.

Second suggestion: search the issue query of drupal core for similar issues where a patch would be provided to patch your installation.

My first suggestion is a bit easier, but the choice is yours.

A 3rd option would be , set up a test site with a Fresh 5.7 installation. can your reproduce this problem on a fresh install ? if not, then its own of your previously mentioned customizations that is the problem and in that case I can't point you in any specific direction.

drumm’s picture

Status: Active » Postponed (maintainer needs more info)

I do not see anything added to Drupal 5.x after 5.7 which would have fixed this issue, so I assume it works on a clean install of 5.7. Someone should test to be sure.

I am guessing this is the fault of a contributed module's implementation of hook_user(). What contributed modules are installed?

bflora’s picture

Ah, that sounds quite possible. Ok, that's progress. Below are the list of all the contributed modules I'm running (building a TeamSugar-style site). Beneath this admittedly lengthy list, I will list all the modules that might be hitting the hook_user(). If I miss any, let me know.

MODULES I'M RUNNING
-------------------------------
ACL
Forum Access
Activity
Request Invitation
Adsense Basic
Advanced Profile
CCK + several field types
Image
Image Gallery
Image Cache
ImageCache Profile Pictures
Active Menu
AJAX Submit
Collapsiblock
Javascript Tools
JS Calendar
Tabs
Kudos
PrivateMsg
Usernode
NodeQueue
Smart Queue taxonomy
OG
Actions
Advanced Forum
Auto Nodetitles
Bio
Bloginfo
Custom Links
DiggThis
Form Store
Global Redirect
Google Anlytics and Sitemap
Image Caption
Insert View
Legal
LoginTobaggin
NodeType
Paging
Pathauto
Poormanscron
Printer Friendly Pages
Related Block
Scheduler
Similar by Terms
Subform Element
SWFObject
Taxonomy Acces Control
Taxonomy Batch Operations
Taxonomy Manager
Taxonomy Node Operations
Text Links Ads Integration
Tiny MCE
Token
Troll
Upload Preview
Username Ajax Check
Pageroute
Views
Buddylist
Tagadelic
JQuery
Panels

MODULES ON THIS LIST THAT IMPLEMENT HOOK_USER()
------------------------------------------------------------------------

Advanced Profile
ImageCache Profile Pictures
PrivateMsg
Usernode
OG
Bio
Bloginfo
LoginTobaggin
Taxonomy Access Control
Username Ajax Check
Buddylist

--------------------------------------------------------

Obvious culprits might be advanced profile and ImageCache Profile Pictures.

Thoughts? Should I disable these modules and see what happens?

bflora’s picture

Priority: Critical » Normal

Ok. I disabled the ImageCache User Profile module...and now I can save my user account without losing my user image. So we know where the problem is. There is a conflict between the ImageCache Profiles module (http://drupal.org/project/imagecache_profiles) and Drupal 5.7.

Now, I can go file a ticket over at that project...but in the meantime, is there something I can do/investigate/check within the ImageCacheProfiles module to see if I can't fix this on my own ans submit the patch to the module's project? I'm realy liking the ability to blow up user profile images and shrink 'em down as needed. So what should I go hunting for in the code?

bflora’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok, now that's really weird. I re-enabled the ImageCache Profiles module...and now I can save my account without losing my user image. It's working perfectly. I have no idea why it wasn't working before and now it is. Bizarre. I guess this is fixed and solved!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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