Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Can't change avatar for admin

Can't change avatar for admin

Added by Yosu Cadilla over 9 years ago

new installation everything seems alright except i receive this error when trying to change my avatar “Error saving the image.” I am using the same avatar file that I just uploaded here :P


Replies (10)

RE: Can't change avatar for admin - Added by Yosu Cadilla over 9 years ago

Because I was having some minor troubles, I upgraded my VM from 512MB ram to 2GB RAM.
Now the error does not show up, a message stating “Avatar changed successfully” is displayed BUT the avatar is a no show all over the app.
I already refreshed and emptied the browser cache and refreshed back again.

RE: Can't change avatar for admin - Added by Florian Liefers over 9 years ago

On my installation it is exactly the same (not only for the admin user).
After uploading the image i get a “Avatar changed successfully” message, but the avatar does not appear on any site.

RE: Can't change avatar for admin - Added by Stefan Englert over 9 years ago

Same here..
Has anyone located or solved this problem?

RE: Can't change avatar for admin - Added by Oliver Günther over 9 years ago

Hi everyone,

is there any relevant log output in the production.log ?

As the error seems to affect multiple users: Could you file a bug (assign it to the dev team) using this link ?

Best,
Oliver

RE: Can't change avatar for admin - Added by Stefan Englert over 9 years ago

Hi,
no there’s nothing relevant found in the logs…

I, [2016-01-28T14:40:03.250472 #12281]  INFO -- : Started POST "/my/avatar?id=1" for xxx.xxx.xxx.xxx at 2016-01-28 14:40:03 +0100
I, [2016-01-28T14:40:03.252232 #12281]  INFO -- : Processing by MyController#update_avatar as HTML
I, [2016-01-28T14:40:03.252380 #12281]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"h3NoKsK/OFEzwdsVQwr5rqSHhk7DtlvsOFsvwT4LW4BK7QraipkS+2y+y5yGuhaL/sC4RXt4L/n6K3yRe621AA==", "avatar"=>#<ActionDispatch::Http::UploadedFile:0x007f6de602fa20 @tempfile=#<Tempfile:/tmp/RackMultipart20160128-12281-1y0e7iq.jpg>, @original_filename="stefan-av.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"avatar\"; filename=\"stefan-av.jpg\"\r\nContent-Type: image/jpeg\r\n">, "button"=>"", "id"=>"1"}
I, [2016-01-28T14:40:03.308276 #12281]  INFO -- : Redirected to https://example.com/my/avatar
I, [2016-01-28T14:40:03.308606 #12281]  INFO -- : Completed 302 Found in 56ms (ActiveRecord: 5.9ms)
I, [2016-01-28T14:40:03.334562 #12281]  INFO -- : Started GET "/my/avatar" for xxx.xxx.xxx.xxx at 2016-01-28 14:40:03 +0100
I, [2016-01-28T14:40:03.336420 #12281]  INFO -- : Processing by MyController#avatar as HTML
I, [2016-01-28T14:40:03.349879 #12281]  INFO -- :   Rendered vendored-plugins/openproject-local_avatars/app/views/users/_avatar.html.erb (2.3ms)
I, [2016-01-28T14:40:03.349952 #12281]  INFO -- :   Rendered vendored-plugins/openproject-local_avatars/app/views/my/avatar.html.erb within layouts/my (2.7ms)
I, [2016-01-28T14:40:03.351750 #12281]  INFO -- :   Rendered my/_sidebar.html.erb (1.6ms)
I, [2016-01-28T14:40:03.353458 #12281]  INFO -- :   Rendered common/_favicons.html.erb (0.4ms)
I, [2016-01-28T14:40:03.356688 #12281]  INFO -- :   Rendered search/_mini_form.html.erb (0.3ms)
I, [2016-01-28T14:40:03.358432 #12281]  INFO -- :   Rendered layouts/_action_menu.html.erb (0.0ms)
I, [2016-01-28T14:40:03.358784 #12281]  INFO -- :   Rendered layouts/base.html.erb (6.9ms)
I, [2016-01-28T14:40:03.358972 #12281]  INFO -- : Completed 200 OK in 22ms (Views: 11.6ms | ActiveRecord: 1.0ms)

Stefan

RE: Can't change avatar for admin - Added by Florian Liefers over 9 years ago

That is the output on my installation:

I, [2016-01-28T14:47:04.945767 #1607]  INFO -- : Started POST "/my/avatar?id=3" for xxx.xxx.xxx.xxx at 2016-01-28 14:47:04 +0100
I, [2016-01-28T14:47:04.946903 #1607]  INFO -- : Processing by MyController#update_avatar as HTML
I, [2016-01-28T14:47:04.946975 #1607]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"ODOYGKpHwz+im5k/WkuQFTr5rQzjW77dhJKM9Yo7gDFpyC9jBl7Skh01mnE1od2ccozpD0HkQVE2PALhvdHcNA==", "avatar"=>#<ActionDispatch::Http::UploadedFile:0x007f0011426e28 @tempfile=#<Tempfile:/tmp/RackMultipart20160128-1607-1xvxd6p.png>, @original_filename="fl_avatar.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"avatar\"; filename=\"fl_avatar.png\"\r\nContent-Type: image/png\r\n">, "button"=>"", "id"=>"3"}
I, [2016-01-28T14:47:05.121429 #1607]  INFO -- : Redirected to http://project.mydomain.de/my/avatar
I, [2016-01-28T14:47:05.121862 #1607]  INFO -- : Completed 302 Found in 175ms (ActiveRecord: 19.1ms)
I, [2016-01-28T14:47:05.206729 #1607]  INFO -- : Started GET "/my/avatar" for xxx.xxx.xxx.xxx at 2016-01-28 14:47:05 +0100
I, [2016-01-28T14:47:05.207958 #1607]  INFO -- : Processing by MyController#avatar as HTML
I, [2016-01-28T14:47:05.224000 #1607]  INFO -- :   Rendered vendor/bundle/ruby/2.1.0/bundler/gems/openproject-local_avatars-3a07a20ada4a/app/views/users/_avatar.html.erb (3.3ms)
I, [2016-01-28T14:47:05.224104 #1607]  INFO -- :   Rendered vendor/bundle/ruby/2.1.0/bundler/gems/openproject-local_avatars-3a07a20ada4a/app/views/my/avatar.html.erb within layouts/my (4.6ms)
I, [2016-01-28T14:47:05.226837 #1607]  INFO -- :   Rendered my/_sidebar.html.erb (2.5ms)
I, [2016-01-28T14:47:05.229873 #1607]  INFO -- :   Rendered common/_favicons.html.erb (0.7ms)
I, [2016-01-28T14:47:05.242005 #1607]  INFO -- :   Rendered search/_mini_form.html.erb (0.3ms)
I, [2016-01-28T14:47:05.244261 #1607]  INFO -- :   Rendered layouts/_action_menu.html.erb (0.0ms)
I, [2016-01-28T14:47:05.244847 #1607]  INFO -- :   Rendered layouts/base.html.erb (17.7ms)
I, [2016-01-28T14:47:05.245094 #1607]  INFO -- : Completed 200 OK in 37ms (Views: 25.3ms | ActiveRecord: 1.1ms)

RE: Can't change avatar for admin - Added by Stefan Englert over 9 years ago

the desired image has been correctly uploaded an processed.

You can find the avatar by typing the url manually:

https://example.com/users/[userid]/avatar

size 128 x 128 px

Only displaying the avatar is apparently broken…..

RE: Can't change avatar for admin - Added by Florian Liefers over 9 years ago

Yes, you are right. The image is displayed when typing the url manually.

RE: Can't change avatar for admin - Added by Stefan Englert over 9 years ago

I’ve filed a new bug to the dev team as you said…

Cheers,
Stefan

RE: Can't change avatar for admin - Added by Oliver Günther over 9 years ago

I’ve found the issue: The local avatar feature are only shown when Administration > Settings > Display > ‘Use Gravatar user icons’ is enabled.
As a workaround, enable this setting.

It is highly counter-intuitive and I suggest to remove that part. I’ve opened a PR for the relevant Plugin.
Progress is tracked in https://community.openproject.org/work_packages/22595, thanks to Stefan for creating the issue.

  • (1 - 10/10)
Loading...