# Profile preference 404 error/ admin profile not work

**URL:** <https://meta.discourse.org/t/profile-preference-404-error-admin-profile-not-work/216640>\
**Category:** Bug\
**Created:** [January 31, 2022, 10:01pm UTC](https://meta.discourse.org/t/profile-preference-404-error-admin-profile-not-work/216640 "2022-01-31T22:01:10Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![f1r4s](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/f1r4s/32/245347_2.png) [@f1r4s](https://meta.discourse.org/u/f1r4s)\
**Post date:** [February 1, 2022, 4:28pm UTC](https://meta.discourse.org/t/profile-preference-404-error-admin-profile-not-work/216640/18 "2022-02-01T16:28:49Z")

</div>

Hi @jammydodger,

Well it’s show me something like this

 ![Screenshot at 2022-02-01 20-22-59](https://global.discourse-cdn.com/meta/original/3X/d/7/d736ff89e2a23c7d20ffcdc71422bfb962545215.png)

I see most of the badge NULL expect 3 badges have value 17

 ![Screenshot at 2022-02-01 20-28-29](https://global.discourse-cdn.com/meta/original/3X/4/0/40beb20c670486df279660afb2f6e4af65c3e17b.png)

and after i check the profile again; error still again in the “logs”;

```plaintext
Message

NoMethodError (undefined method `url' for nil:NilClass)
app/models/badge.rb:306:in `image_url'
(eval):10:in `_fast_attributes'
lib/freedom_patches/ams_include_without_root.rb:54:in `include!'
lib/freedom_patches/ams_include_without_root.rb:54:in `include!'
app/controllers/application_controller.rb:510:in `render_json_dump'
app/controllers/users_controller.rb:97:in `block (2 levels) in show'
app/controllers/users_controller.rb:89:in `show'
app/controllers/users_controller.rb:103:in `show_card'
app/controllers/application_controller.rb:387:in `block in with_resolved_locale'
app/controllers/application_controller.rb:387:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:356:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/request_tracker.rb:198:in `call'

Backtrace

app/models/badge.rb:306:in `image_url'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:99:in `block in attribute'
(eval):10:in `_fast_attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:468:in `rescue in attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:455:in `attributes'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:480:in `_serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:359:in `serializable_hash'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:448:in `block in merge_association'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:445:in `each'
active_model_serializers (0.8.4) lib/active_model/serializer.rb:445:in `merge_association'

Env

HTTP HOSTS: site.com

```

Should i select something else or maybe you prefer to have a look inside with yourself ?

---

_[View the full topic](https://meta.discourse.org/t/profile-preference-404-error-admin-profile-not-work/216640)._
