[Archivesspace_Users_Group] Error viewing a digital object from the frontend site
Schanz, Megan
schanzme at msu.edu
Tue Jun 15 13:55:18 EDT 2021
Thank you for your prompt help; that did indeed resolve our issue!
- Megan
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Andrew Morrison <andrew.morrison at bodleian.ox.ac.uk>
Sent: Tuesday, June 15, 2021 12:22 PM
To: archivesspace_users_group at lyralists.lyrasis.org <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Error viewing a digital object from the frontend site
I'm sorry to have caused this problem. I have just submitted a fix<https://urldefense.com/v3/__https://github.com/archivesspace/archivesspace/pull/2301__;!!HXCxUKc!kRHYtidbjIGKnPxhgrzZQ51jGKyWjDIxDXDJgPIAO7W1kIZrjm0jPuUT_u9KAB0$> but it is up to the ArchivesSpace Program Team to decide whether and how to release it.
The fix is in a single template. You could download it from here...
https://raw.githubusercontent.com/bodleian/archivesspace/fix-pui-digital-object-bug/public/app/views/objects/show.html.erb<https://urldefense.com/v3/__https://raw.githubusercontent.com/bodleian/archivesspace/fix-pui-digital-object-bug/public/app/views/objects/show.html.erb__;!!HXCxUKc!kRHYtidbjIGKnPxhgrzZQ51jGKyWjDIxDXDJgPIAO7W1kIZrjm0jPuUTXCpQwiQ$>
...and put it in a local plug-in in your system (in public/views/objects). That template hasn't been changed since I introduced the bug in 2.8.0 so, for any release since, it will override the core template and fix the bug. Let me know if you need any help with that.
Andrew.
On 15/06/2021 16:18, Schanz, Megan wrote:
Oh interesting; both of those conditions exist for that digital object. We are running v2.8.1 right now. We do plan on upgrading in the near future if it is already fixed in newer versions.
- Megan
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org><mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Andrew Morrison <andrew.morrison at bodleian.ox.ac.uk><mailto:andrew.morrison at bodleian.ox.ac.uk>
Sent: Tuesday, June 15, 2021 11:00 AM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org> <archivesspace_users_group at lyralists.lyrasis.org><mailto:archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Error viewing a digital object from the frontend site
I'm afraid this appears to be a bug in a contribution I made<https://urldefense.com/v3/__https://github.com/archivesspace/archivesspace/pull/1831__;!!HXCxUKc!mxiBEVBeb-e1yJQa93-JiZV_eHl8eDdrgy81Jcgc9NR_k1aT7DcvtB8Yw2CCjJA$>. It occurs when both of the following conditions are met:
1. AppConfig[:pui_search_collection_from_archival_objects] is set to true in config.rb (by default it is false)
2. The digital object has one or more child digital object components
Is the case, and which version of ArchivesSpace are you running?
Andrew.
On 15/06/2021 15:01, Schanz, Megan wrote:
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
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!HXCxUKc!mxiBEVBeb-e1yJQa93-JiZV_eHl8eDdrgy81Jcgc9NR_k1aT7DcvtB8YY1y00g4$>
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!HXCxUKc!kRHYtidbjIGKnPxhgrzZQ51jGKyWjDIxDXDJgPIAO7W1kIZrjm0jPuUT6_-lpak$>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20210615/8ade2724/attachment.html>
More information about the Archivesspace_Users_Group
mailing list