Not registered
register now
DrupalCamp LA 2009

Bug Report: users cannot change their profile pic

Note: this is an archived site. Visit us at http://ladrupal.org.
Submitted by Senpai on Sat, 2009-07-11 09:42
  • Help and Support

It seems that whenever a user goes to upload a different profile pic, the site will not show it. No matter whether the image is deleted first, or simply overwritten, the site stubbornly decides to hold onto the original image and display it.

Steps To Reproduce:
1. Visit the user’s account page.
2. Delete the old image.
3. After deletion, the old image is gone.
4. Upload a new image, and save the form.
5. The original image is once again displayed on that user’s account page.

‹ Drupal work/jobs the dates are wrong on the promotions page ›
  • Login to post comments

Investigating

Submitted by mike stewart on Sat, 2009-07-11 09:46.

hmm, odd. I’ve seen at least three profile picture changes, by users… first I’ve heard of a problem…. perhaps we’ve changed something since those pictures changed. I will look into.

  • Login to post comments

Update, the image changes, but the user doesn't see it

Submitted by Senpai on Sat, 2009-07-11 10:06.

After uploading a new user picture, the image has changed everywhere else in the site except for the user’s own account page, making them think that the new upload was unsuccessful.

  • Login to post comments

reload

Submitted by Karl on Sat, 2009-07-11 10:30.

you have to reload your page. this is an ancient Drupal bug, where whatever image you upload gets renamed to picture-[uid].jpg so your browser can’t tell that its changed.

On the rest of the site its being imagecached, which (I think) is now smart enough to flush its cache when you reupload a pic, but on user/edit its just your raw picture. Imagecaching it even on user/edit can solve the problem.

  • Login to post comments

Yeah, umm, rule 35!

Submitted by Senpai on Sat, 2009-07-11 10:39.

There’s a module for that. It’s called imagecache_profile_pictures, and it solves this ‘ancient’ Drupal bug.

Now, why are we coming up on the 7th major iteration of core with this bug still unfixed, that’s what I wanna know! ;)

  • Login to post comments

and why there aren’t any

Submitted by mike stewart on Sat, 2009-07-11 10:34.

and why there aren’t any errors in the log. at least none related to this… ;-)

  • Login to post comments
  • Schedule
  • About
  • Attendees
  • Sponsors
  • News
  • Drupalchix
  • Venue
  • Sessions
  • Forums
  • FAQ
  • Contact Us

Attendees

View All

Drupalchix Information

View all Sponsors

  • News
  • FAQ
  • About LADrupal
  • Become a Sponsor
  • Twitter

Designed and Built by This By Them
Powered by Drupal 6 / copyright © 2009