Skip to content

Exception in admin panel (admin/stories#show) #318

@etagwerker

Description

@etagwerker

Before we start...:

  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Branch/Commit:

main branch

Expected behavior:

I would expect https://points.ombulabs.com/madmin/stories/9165 (madmin/stories#show) to show me a story.

Actual behavior:

Right now it is producing a 500 error page.

Steps to reproduce:

  1. Sign in as an admin
  2. Go to /madmin
  3. Go to any stories
  4. Click on the story id

Context and environment:

This is currently happening in production.

Screenshots and Videos

Screenshot 2024-01-08 at 10 46 06 AM

Logs

2024-01-08T15:13:57.611572+00:00 app[web.1]: I, [2024-01-08T15:13:57.611529 #2]  INFO -- : [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd] Completed 500 Internal Server Error in 18ms (ActiveRecord: 5.4ms | Allocations: 5256)
2024-01-08T15:13:57.613090+00:00 app[web.1]: E, [2024-01-08T15:13:57.613017 #2] ERROR -- : [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd]
2024-01-08T15:13:57.613091+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd] ActionView::Template::Error (undefined method `truncate' for nil:NilClass):
2024-01-08T15:13:57.613091+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd]     1: <% field.value(record).each do |object| %>
2024-01-08T15:13:57.613092+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd]     2:   <div>
2024-01-08T15:13:57.613092+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd]     3:     <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-indigo-500 underline" %>
2024-01-08T15:13:57.613093+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd]     4:   </div>
2024-01-08T15:13:57.613093+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd]     5: <% end %>
2024-01-08T15:13:57.613094+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd]
2024-01-08T15:13:57.613094+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd] app/madmin/resources/user_resource.rb:12:in `display_name'
2024-01-08T15:13:57.613095+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd] app/views/madmin/application/show.html.erb:31
2024-01-08T15:13:57.613095+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd] app/views/madmin/application/show.html.erb:21:in `each'
2024-01-08T15:13:57.613095+00:00 app[web.1]: [e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd] app/views/madmin/application/show.html.erb:21
2024-01-08T15:13:57.614632+00:00 heroku[router]: at=info method=GET path="/madmin/stories/9165" host=points.ombulabs.com request_id=e23d9c62-218b-46ba-a2d6-5bc6c0d5eabd fwd="71.225.154.116" dyno=web.1 connect=1ms service=24ms status=500 bytes=1891 protocol=https

I will abide by the code of conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions