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
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.
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.
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)
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)
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.
Replies (10)
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.
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.
Same here..
Has anyone located or solved this problem?
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
Hi,
no there’s nothing relevant found in the logs…
Stefan
That is the output on my installation:
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…..
Yes, you are right. The image is displayed when typing the url manually.
I’ve filed a new bug to the dev team as you said…
Cheers,
Stefan
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.