[Archivesspace_Users_Group] Error viewing a digital object from the frontend site
Schanz, Megan
schanzme at msu.edu
Tue Jun 15 10:01:34 EDT 2021
Hi everyone,
We are running across an error loading a digital object on the public front end site (but does load and function fine on the backend staff side). Nothing immediately looks out of place with that digital object record as compared to others. I tried re-saving the record to force a reindex of that object, which didn't change the error. Any help or suggestions would helpful!
The error users see is the typical "something went wrong" message. This is the error we are seeing in our logs when attempting to load that page:
I, [2021-06-15T13:28:26.735417 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Started GET "/repositories/2/digital_objects/3342" for [IP] at 2021-06-15 13:28:26 +0000
I, [2021-06-15T13:28:26.737099 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Processing by ObjectsController#show as HTML
I, [2021-06-15T13:28:26.737218 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Parameters: {"repo_slug"=>"2", "obj_type"=>"digital_objects", "slug_or_id"=>"3342"}
I, [2021-06-15T13:28:26.782973 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendering objects/show.html.erb within layouts/application
I, [2021-06-15T13:28:26.783870 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_idbadge.html.erb (0.3ms)
I, [2021-06-15T13:28:26.786098 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_cite_page_action.html.erb (1.8ms)
I, [2021-06-15T13:28:26.811105 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_request_hiddens.html.erb (24.3ms)
I, [2021-06-15T13:28:26.812185 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_request_page_action.html.erb (25.6ms)
I, [2021-06-15T13:28:26.812858 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_staff_link_action.html.erb (0.2ms)
I, [2021-06-15T13:28:26.813104 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_page_actions.html.erb (28.9ms)
I, [2021-06-15T13:28:26.813776 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_breadcrumbs.html.erb (0.3ms)
I, [2021-06-15T13:28:26.814377 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_digital.html.erb (0.3ms)
I, [2021-06-15T13:28:26.815070 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_dates.html.erb (0.1ms)
I, [2021-06-15T13:28:26.816935 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_multi_notes.html.erb (0.0ms)
I, [2021-06-15T13:28:26.831346 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered digital_objects/_linked_instances.html.erb (14.0ms)
I, [2021-06-15T13:28:26.832042 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.832604 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_present_list_external_docs.html.erb (0.1ms)
I, [2021-06-15T13:28:26.833089 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.834073 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered repositories/_full_repo.html.erb (0.4ms)
I, [2021-06-15T13:28:26.834370 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered repositories/_repository_details.html.erb (0.9ms)
I, [2021-06-15T13:28:26.834845 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_accordion_panel.html.erb (0.1ms)
I, [2021-06-15T13:28:26.836665 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered shared/_record_innards.html.erb (21.9ms)
I, [2021-06-15T13:28:26.850905 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Rendered objects/show.html.erb within layouts/application (67.7ms)
I, [2021-06-15T13:28:26.852604 #57] INFO -- : [2d67df51-6e7d-4007-b293-a38c457127ed] Completed 500 Internal Server Error in 115ms
F, [2021-06-15T13:28:26.854132 #57] FATAL -- : [2d67df51-6e7d-4007-b293-a38c457127ed]
F, [2021-06-15T13:28:26.854269 #57] FATAL -- : [2d67df51-6e7d-4007-b293-a38c457127ed] ActionView::Template::Error (undefined method `resource_uri' for #<DigitalObject:0x6111049f>):
F, [2021-06-15T13:28:26.854696 #57] FATAL -- : [2d67df51-6e7d-4007-b293-a38c457127ed] 31: end
[2d67df51-6e7d-4007-b293-a38c457127ed] 32: %>
[2d67df51-6e7d-4007-b293-a38c457127ed] 33: <% if AppConfig[:pui_search_collection_from_archival_objects] %>
[2d67df51-6e7d-4007-b293-a38c457127ed] 34: <%= render partial: 'shared/search_collection_form', :locals => {:resource_uri => @result.resource_uri, :action_text => "#{t('actions.search_in', :type => t('resource._singular'))}"} %>
[2d67df51-6e7d-4007-b293-a38c457127ed] 35: <% end %>
[2d67df51-6e7d-4007-b293-a38c457127ed] 36: <%= render partial: 'shared/children_tree', :locals => {:heading_text => heading_text, :root_node_uri => @result.root_node_uri, :current_node_uri => @result.uri} %>
[2d67df51-6e7d-4007-b293-a38c457127ed] 37: </div>
F, [2021-06-15T13:28:26.854867 #57] FATAL -- : [2d67df51-6e7d-4007-b293-a38c457127ed]
F, [2021-06-15T13:28:26.855039 #57] FATAL -- : [2d67df51-6e7d-4007-b293-a38c457127ed] app/views/objects/show.html.erb:34:in `_app_views_objects_show_html_erb___1370737355_3282'
[2d67df51-6e7d-4007-b293-a38c457127ed] app/controllers/objects_controller.rb:116:in `show'
And here is the database record:
MariaDB [archivesspace]> select * from digital_object where id = 3342\G
*************************** 1. row ***************************
id: 3342
lock_version: 13
json_schema_version: 1
repo_id: 2
digital_object_id: 483a5879-ffeb-4418-80ba-a96bf3dfd133
title: Lacrosse Photographs 2013
level_id: 271
digital_object_type_id: NULL
publish: 1
restrictions: 0
system_generated: 0
created_by: [user]
last_modified_by: [user]
create_time: 2020-12-21 20:35:35
system_mtime: 2021-06-15 13:20:52
user_mtime: 2021-06-15 13:20:52
suppressed: 0
slug: NULL
is_slug_auto: 0
Thank you!
- Megan
_____________________________________
Megan Schanz
Application Developer & Systems Administrator
Michigan State University Libraries
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20210615/8632ba2f/attachment.html>
More information about the Archivesspace_Users_Group
mailing list