collectiveaccess / pawtucket2

Pawtucket Improved
GNU General Public License v3.0
85 stars 76 forks source link

"Back" Link on Object Details Throws Error 500 #75

Closed miqrogroove closed 8 months ago

miqrogroove commented 1 year ago

If I navigate from a collection details page to an object details page, it shows a Back link in the upper-left corner. This link never works. It causes a long delay, followed by a server error.

PHP error log excerpt:

[01-May-2023 09:30:58 America/New_York] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 3221344 bytes) in app/lib/View.php on line 331
[01-May-2023 09:30:58 America/New_York] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 3227648 bytes) in Unknown on line 0

Back link source:

    <div class='navLeftRight col-xs-1 col-sm-1 col-md-1 col-lg-1'>
        <div class="detailNavBgLeft">
            <a href='/Browse/objects/facet/row_id/4227/key/ecc7411b22d8481e480b6140ebe83778'><i class='fa fa-angle-double-left'></i><div class='small'>Back</div></a>
        </div><!-- end detailNavBgLeft -->
    </div><!-- end col -->

Workaround:

Remove all references to {{{resultsLink}}} from theme file ca_objects_default_html.php to hide the Back link.