<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  </head>
  <body>
    <p>I'm sorry to have caused this problem. I have just <a moz-do-not-send="true" href="https://github.com/archivesspace/archivesspace/pull/2301">submitted
        a fix</a> but it is up to the ArchivesSpace Program Team to
      decide whether and how to release it.<br>
    </p>
    <p><br>
    </p>
    <p>The fix is in a single template. You could download it from
      here...</p>
    <p><br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://raw.githubusercontent.com/bodleian/archivesspace/fix-pui-digital-object-bug/public/app/views/objects/show.html.erb">https://raw.githubusercontent.com/bodleian/archivesspace/fix-pui-digital-object-bug/public/app/views/objects/show.html.erb</a></p>
    <p><br>
    </p>
    <p>...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.<br>
    </p>
    <p><br>
    </p>
    <p>Andrew.</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 15/06/2021 16:18, Schanz, Megan
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CH2PR12MB370170B0F4FB26A12B6E6B15CE309@CH2PR12MB3701.namprd12.prod.outlook.com">
      
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        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.</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        - Megan</div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b>
          <a class="moz-txt-link-abbreviated" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><archivesspace_users_group-bounces@lyralists.lyrasis.org></a>
          on behalf of Andrew Morrison
          <a class="moz-txt-link-rfc2396E" href="mailto:andrew.morrison@bodleian.ox.ac.uk"><andrew.morrison@bodleian.ox.ac.uk></a><br>
          <b>Sent:</b> Tuesday, June 15, 2021 11:00 AM<br>
          <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:archivesspace_users_group@lyralists.lyrasis.org"><archivesspace_users_group@lyralists.lyrasis.org></a><br>
          <b>Subject:</b> Re: [Archivesspace_Users_Group] Error viewing
          a digital object from the frontend site</font>
        <div> </div>
      </div>
      <div>
        <p>I'm afraid this appears to be a bug in a <a href="https://urldefense.com/v3/__https://github.com/archivesspace/archivesspace/pull/1831__;!!HXCxUKc!mxiBEVBeb-e1yJQa93-JiZV_eHl8eDdrgy81Jcgc9NR_k1aT7DcvtB8Yw2CCjJA$" moz-do-not-send="true">
            contribution I made</a>. It occurs when both of the
          following conditions are met:</p>
        <p><br>
        </p>
        <p>1. AppConfig[:pui_search_collection_from_archival_objects] is
          set to true in config.rb (by default it is false)</p>
        <p>2. The digital object has one or more child digital object
          components</p>
        <p><br>
        </p>
        <p>Is the case, and which version of ArchivesSpace are you
          running?<br>
        </p>
        <p><br>
        </p>
        <p>Andrew.<br>
        </p>
        <p><br>
        </p>
        <p><br>
        </p>
        <div class="x_moz-cite-prefix">On 15/06/2021 15:01, Schanz,
          Megan wrote:<br>
        </div>
        <blockquote type="cite">
          <style type="text/css" style="display:none">p
        {margin-top:0;
        margin-bottom:0}</style>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            Hi everyone,</div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <br>
          </div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            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!</div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <br>
          </div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            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:</div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <br>
          </div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            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
            <div>I, [2021-06-15T13:28:26.737099 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed] Processing by
              ObjectsController#show as HTML</div>
            <div>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"}</div>
            <div>I, [2021-06-15T13:28:26.782973 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendering
              objects/show.html.erb within layouts/application</div>
            <div>I, [2021-06-15T13:28:26.783870 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_idbadge.html.erb (0.3ms)</div>
            <div>I, [2021-06-15T13:28:26.786098 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_cite_page_action.html.erb (1.8ms)</div>
            <div>I, [2021-06-15T13:28:26.811105 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_request_hiddens.html.erb (24.3ms)</div>
            <div>I, [2021-06-15T13:28:26.812185 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_request_page_action.html.erb (25.6ms)</div>
            <div>I, [2021-06-15T13:28:26.812858 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_staff_link_action.html.erb (0.2ms)</div>
            <div>I, [2021-06-15T13:28:26.813104 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_page_actions.html.erb (28.9ms)</div>
            <div>I, [2021-06-15T13:28:26.813776 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_breadcrumbs.html.erb (0.3ms)</div>
            <div>I, [2021-06-15T13:28:26.814377 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_digital.html.erb (0.3ms)</div>
            <div>I, [2021-06-15T13:28:26.815070 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_dates.html.erb (0.1ms)</div>
            <div>I, [2021-06-15T13:28:26.816935 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_multi_notes.html.erb (0.0ms)</div>
            <div>I, [2021-06-15T13:28:26.831346 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              digital_objects/_linked_instances.html.erb (14.0ms)</div>
            <div>I, [2021-06-15T13:28:26.832042 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_accordion_panel.html.erb (0.1ms)</div>
            <div>I, [2021-06-15T13:28:26.832604 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_present_list_external_docs.html.erb (0.1ms)</div>
            <div>I, [2021-06-15T13:28:26.833089 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_accordion_panel.html.erb (0.1ms)</div>
            <div>I, [2021-06-15T13:28:26.834073 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              repositories/_full_repo.html.erb (0.4ms)</div>
            <div>I, [2021-06-15T13:28:26.834370 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              repositories/_repository_details.html.erb (0.9ms)</div>
            <div>I, [2021-06-15T13:28:26.834845 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_accordion_panel.html.erb (0.1ms)</div>
            <div>I, [2021-06-15T13:28:26.836665 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              shared/_record_innards.html.erb (21.9ms)</div>
            <div>I, [2021-06-15T13:28:26.850905 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]   Rendered
              objects/show.html.erb within layouts/application (67.7ms)</div>
            <div>I, [2021-06-15T13:28:26.852604 #57]  INFO -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed] Completed 500
              Internal Server Error in 115ms</div>
            <div>F, [2021-06-15T13:28:26.854132 #57] FATAL -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]  
            </div>
            <div>F, [2021-06-15T13:28:26.854269 #57] FATAL -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]
              <a class="x_moz-txt-link-freetext" href="" moz-do-not-send="true">ActionView::Template::Error</a>
              (undefined method `resource_uri' for #<a class="x_moz-txt-link-rfc2396E" href="" moz-do-not-send="true"><DigitalObject:0x6111049f></a>):</div>
            <div>F, [2021-06-15T13:28:26.854696 #57] FATAL -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]     31:         end</div>
            <div>[2d67df51-6e7d-4007-b293-a38c457127ed]     32:      
              %></div>
            <div>[2d67df51-6e7d-4007-b293-a38c457127ed]     33:      
              <% if
              AppConfig[:pui_search_collection_from_archival_objects]
              %></div>
            <div>[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'))}"} %></div>
            <div>[2d67df51-6e7d-4007-b293-a38c457127ed]     35:      
              <% end %></div>
            <div>[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} %></div>
            <div>[2d67df51-6e7d-4007-b293-a38c457127ed]     37:    
              </div></div>
            <div>F, [2021-06-15T13:28:26.854867 #57] FATAL -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed]  
            </div>
            <div>F, [2021-06-15T13:28:26.855039 #57] FATAL -- :
              [2d67df51-6e7d-4007-b293-a38c457127ed] app/views/objects/<a class="x_moz-txt-link-freetext" href="" moz-do-not-send="true">show.html.erb:34:in</a>
              `_app_views_objects_show_html_erb___1370737355_3282'</div>
            <span>[2d67df51-6e7d-4007-b293-a38c457127ed]
              app/controllers/objects_<a class="x_moz-txt-link-freetext" href="" moz-do-not-send="true">controller.rb:116:in</a>
              `show'</span><br>
          </div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <span><br>
            </span></div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <span>And here is the database record:</span></div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <span><br>
            </span></div>
          <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <span>MariaDB [archivesspace]> select * from
              digital_object where id = 3342\G
              <div>*************************** 1. row
                ***************************</div>
              <div>id: 3342</div>
              <div>lock_version: 13</div>
              <div>json_schema_version: 1</div>
              <div>repo_id: 2</div>
              <div>digital_object_id:
                483a5879-ffeb-4418-80ba-a96bf3dfd133</div>
              <div>title: Lacrosse Photographs 2013</div>
              <div>level_id: 271</div>
              <div>digital_object_type_id: NULL</div>
              <div>publish: 1</div>
              <div>restrictions: 0</div>
              <div>system_generated: 0</div>
              <div>created_by: [user]</div>
              <div>last_modified_by: [user]</div>
              <div>create_time: 2020-12-21 20:35:35</div>
              <div>system_mtime: 2021-06-15 13:20:52</div>
              <div>user_mtime: 2021-06-15 13:20:52</div>
              <div>suppressed: 0</div>
              <div>slug: NULL</div>
              is_slug_auto: 0<br>
            </span></div>
          <div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <br>
            </div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <br>
            </div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              Thank you!</div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <br>
            </div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              - Megan</div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <br>
            </div>
            <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
              font-size:12pt; color:rgb(0,0,0)">
              <br>
            </div>
            <div id="x_Signature">
              <div>
                <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
                  font-size:12pt; color:rgb(0,0,0)">
                  <span style="color:rgb(102,102,102)">_____________________________________</span></div>
                <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
                  font-size:12pt; color:rgb(0,0,0)">
                  <span style="color:rgb(102,102,102)"><br>
                  </span></div>
                <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
                  font-size:12pt; color:rgb(0,0,0)">
                  <span style="color:rgb(102,102,102)">Megan Schanz</span></div>
                <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
                  font-size:12pt; color:rgb(0,0,0)">
                  <span style="color:rgb(102,102,102)">Application
                    Developer & Systems Administrator</span></div>
                <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
                  font-size:12pt; color:rgb(0,0,0)">
                  <span style="color:rgb(102,102,102)">Michigan State
                    University Libraries</span></div>
              </div>
            </div>
          </div>
          <br>
          <fieldset class="x_mimeAttachmentHeader"></fieldset>
          <pre class="x_moz-quote-pre">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" moz-do-not-send="true">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="x_moz-txt-link-freetext" href="https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!HXCxUKc!mxiBEVBeb-e1yJQa93-JiZV_eHl8eDdrgy81Jcgc9NR_k1aT7DcvtB8YY1y00g4$" moz-do-not-send="true">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="moz-txt-link-freetext" href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
    </blockquote>
  </body>
</html>