We've moved discussions to Discord

User avatar not showing

Rob Thomas
Hey Guys, 

I just purchased the Jumpstart template, great work! When I create a and upload an avatar it's not showing. Any ideas on how to fix it.

Regards
Rob 
Chris Oliver
Hmm, any errors in the logs? Are you just using the local disk storage?
Rob Thomas
Hey Chris, 

Yup, I'm using all the defaults!

Rob
Rob Thomas
I'm using aws now and I am getting an

undefined method `upload' for nil:NilClass on 

resource.update_without_password(params)
Chris Oliver
Sounds like your Activestorage configuration isn't set right. I've seen that error before when AS was misconfigured.

Going to need your stacktrace though, the error alone is usually not enough for debugging. 
Chris Oliver
Just to confirm you have the following setup:

1. AWS credentials in your production credentials file.

2. This should be in your Gemfile:

gem 'aws-sdk-s3', require: false

3. Then add this other to your config/environments/production.rb:

config.active_storage.service = :amazon
Dan Tappin
Rob Thomas  i had a similar issue. From the logs I determined that I had a local ImageMagik install issue. The versions of the avatar image were not being created.  May be unrelated but figured I would throw that out there.
Dimitri Fajardo
Dan Tappin Been a long time but how did you fixed it? I'm having the same issue... I know it's a stretch but might as well try!

Notifications
You’re not receiving notifications from this thread.