<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  </head>
  <body>
    <p>I'm afraid this appears to be a bug in a <a moz-do-not-send="true" href="https://github.com/archivesspace/archivesspace/pull/1831">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="moz-cite-prefix">On 15/06/2021 15:01, Schanz, Megan
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CH2PR12MB37010BE1E101000383B98EF2CE309@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);">
        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="moz-txt-link-freetext" href="ActionView::Template::Error">ActionView::Template::Error</a> (undefined method `resource_uri'
          for #<a class="moz-txt-link-rfc2396E" href="DigitalObject:0x6111049f"><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="moz-txt-link-freetext" href="show.html.erb:34:in">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="moz-txt-link-freetext" href="controller.rb:116:in">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="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="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>