Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update an avatar #1579

Open
mzch opened this issue Jan 2, 2020 · 0 comments
Open

Unable to update an avatar #1579

mzch opened this issue Jan 2, 2020 · 0 comments

Comments

@mzch
Copy link

mzch commented Jan 2, 2020

I installed Helpy 2.7.0 freshly and tried to update an avatar, then Helpy printed Oops there has been an error...

I, [2020-01-02T14:53:04.606839 #12858]  INFO -- : Started PATCH "/admin/users/1-admin" for 118.243.18.144 at 2020-01-02 14:53:04 +0900
I, [2020-01-02T14:53:04.610657 #12858]  INFO -- : Processing by Admin::UsersController#update as HTML
I, [2020-01-02T14:53:04.611013 #12858]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"6tAgQdv3a8zUv8Ozj9/LC7Vp0MFPhebAjie+IA3WxJGLkjCi8won0je9rjncnhdCee393AL2THGE7ssIJSPzmg==", "user"=>{"profile_image"=>#<ActionDispatch::Http::UploadedFile:0x000055a815da35a0 @tempfile=#<Tempfile:/tmp/RackMultipart20200102-12858-ycbxho.png>, @original_filename="Face of Myself.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"user[profile_image]\"; filename=\"Face of Myself.png\"\r\nContent-Type: image/png\r\n">, "name"=>"Admin", "company"=>"", "city"=>"", "state"=>"", "zip"=>"", "time_zone"=>"UTC", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "work_phone"=>"", "cell_phone"=>"", "email"=>"[email protected]", "twitter"=>"", "linkedin"=>"", "signature"=>"", "notify_on_private"=>"0", "notify_on_public"=>"0", "notify_on_reply"=>"0"}, "commit"=>"Save", "id"=>"1-admin"}
D, [2020-01-02T14:53:04.616117 #12858] DEBUG -- :   User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
D, [2020-01-02T14:53:04.626434 #12858] DEBUG -- :    (1.0ms)  SELECT DISTINCT name FROM "taggings" LEFT OUTER JOIN "tags" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."context" = $1  [["context", "teams"]]
D, [2020-01-02T14:53:04.628209 #12858] DEBUG -- :   User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 1]]
D, [2020-01-02T14:53:04.633391 #12858] DEBUG -- :   ActsAsTaggableOn::Tag Load (1.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = $1 AND "taggings"."taggable_type" = $2 AND (taggings.context = 'teams' AND taggings.tagger_id IS NULL)  [["taggable_id", 1], ["taggable_type", "User"]]
D, [2020-01-02T14:53:04.637827 #12858] DEBUG -- :    (0.8ms)  SELECT COUNT(*) FROM "topics" WHERE (assigned_user_id = NULL OR current_status = 'new') AND ("topics"."current_status" != $1)  [["current_status", "closed"]]
D, [2020-01-02T14:53:04.639742 #12858] DEBUG -- :   CACHE (0.1ms)  SELECT COUNT(*) FROM "topics" WHERE (assigned_user_id = NULL OR current_status = 'new') AND ("topics"."current_status" != $1)  [["current_status", "closed"]]
D, [2020-01-02T14:53:04.642763 #12858] DEBUG -- :    (0.9ms)  SELECT COUNT(*) FROM "topics" WHERE "topics"."assigned_user_id" = $1 AND "topics"."current_status" = $2  [["assigned_user_id", 1], ["current_status", "pending"]]
D, [2020-01-02T14:53:04.644894 #12858] DEBUG -- :    (0.5ms)  SELECT COUNT(*) FROM "topics" WHERE "topics"."current_status" = $1  [["current_status", "open"]]
D, [2020-01-02T14:53:04.646951 #12858] DEBUG -- :    (0.8ms)  SELECT COUNT(*) FROM "topics" WHERE "topics"."current_status" IN ('new', 'open', 'pending')
D, [2020-01-02T14:53:04.650304 #12858] DEBUG -- :    (0.9ms)  SELECT COUNT(*) FROM "topics" WHERE "topics"."current_status" IN ('new', 'open', 'pending') AND "topics"."assigned_user_id" = $1  [["assigned_user_id", 1]]
D, [2020-01-02T14:53:04.652729 #12858] DEBUG -- :    (0.5ms)  SELECT COUNT(*) FROM "topics" WHERE "topics"."current_status" = $1  [["current_status", "spam"]]
D, [2020-01-02T14:53:04.654999 #12858] DEBUG -- :    (0.5ms)  SELECT COUNT(*) FROM "topics" WHERE "topics"."current_status" = $1  [["current_status", "trash"]]
D, [2020-01-02T14:53:04.658315 #12858] DEBUG -- :    (0.4ms)  BEGIN
D, [2020-01-02T14:53:04.667730 #12858] DEBUG -- :    (1.2ms)  ROLLBACK
I, [2020-01-02T14:53:04.671353 #12858]  INFO -- : Completed 500 Internal Server Error in 60ms (ActiveRecord: 10.9ms)
F, [2020-01-02T14:53:04.673529 #12858] FATAL -- :
ActionView::MissingTemplate (Missing template admin/users/profile, admin/base/profile, application/profile with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :"inky-builder", :"inky-erb", :"inky-raw", :"inky-ruby", :inky, :jbuilder, :"inky-jbuilder"]}. Searched in:
  * "/srv/helpy/helpy/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/helpy_imap-aafced9cfb7f/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/helpy_onboarding-dd7c96a7b963/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/twitter-bootstrap-rails-3.2.2/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/kaminari-core-1.1.1/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/grape-swagger-rails-0.3.1/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/devise_invitable-1.7.5/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/devise-bootstrap-views-1.1.0/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/devise-i18n-1.8.2/app/views"
  * "/srv/helpy/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/devise-4.7.1/app/views"
):
  app/controllers/admin/users_controller.rb:119:in `update'
  app/controllers/application_controller.rb:195:in `set_time_zone'


I, [2020-01-02T14:53:04.674836 #12858]  INFO -- : Processing by ErrorsController#internal_server_error as HTML
I, [2020-01-02T14:53:04.675109 #12858]  INFO -- :   Parameters: {"utf8"=>"✓", "authenticity_token"=>"6tAgQdv3a8zUv8Ozj9/LC7Vp0MFPhebAjie+IA3WxJGLkjCi8won0je9rjncnhdCee393AL2THGE7ssIJSPzmg==", "user"=>{"profile_image"=>#<ActionDispatch::Http::UploadedFile:0x000055a815da35a0 @tempfile=#<Tempfile:/tmp/RackMultipart20200102-12858-ycbxho.png>, @original_filename="Face of Myself.png", @content_type="image/png", @headers="Content-Disposition: form-data; name=\"user[profile_image]\"; filename=\"Face of Myself.png\"\r\nContent-Type: image/png\r\n">, "name"=>"Admin", "company"=>"", "city"=>"", "state"=>"", "zip"=>"", "time_zone"=>"UTC", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "work_phone"=>"", "cell_phone"=>"", "email"=>"[email protected]", "twitter"=>"", "linkedin"=>"", "signature"=>"", "notify_on_private"=>"0", "notify_on_public"=>"0", "notify_on_reply"=>"0"}, "commit"=>"Save", "id"=>"1-admin"}
I, [2020-01-02T14:53:04.683840 #12858]  INFO -- :   Rendered errors/internal_server_error.html.erb within layouts/errors (2.5ms)
I, [2020-01-02T14:53:04.692565 #12858]  INFO -- :   Rendered layouts/_google_analytics.html.erb (0.8ms)
I, [2020-01-02T14:53:04.692934 #12858]  INFO -- :   Rendered app/themes/singular/views/layouts/_head.html.erb (7.5ms)
I, [2020-01-02T14:53:04.695968 #12858]  INFO -- : Completed 500 Internal Server Error in 21ms (Views: 16.2ms | ActiveRecord: 0.0ms)

Anyone can help me?

@mzch mzch changed the title Unable update an avatar Unable to update an avatar Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant