Open karkraeg opened 1 month ago
I use the following snippet to render this "Related objects" passage in ca_occurrences_default_html.php
in my theme:
{{{<ifcount code="ca_objects" min="1"><h5>Related Objects (^ca_objects._count)</h5>
<div class="row">
<div id="browseResultsContainer">
<?php echo caBusyIndicatorIcon($this->request).' '.addslashes(_t('Lädt...')); ?>
</div><!-- end browseResultsContainer -->
</div><!-- end row -->
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery("#browseResultsContainer").load("<?php echo caNavUrl($this->request, '', 'Search', 'objects', array('search' => 'occurrence_id:^ca_occurrences.occurrence_id'), array('dontURLEncodeParameters' => true)); ?>", function () {
jQuery('#browseResultsContainer').jscroll({
autoTrigger: true,
loadingHtml: '<?php echo caBusyIndicatorIcon($this->request).' '.addslashes(_t('Loading...')); ?>',
padding: 20,
nextSelector: 'a.jscroll-next'
});
});
});
</script>
</ifcount>}}}
What does your browse.conf look like?
I just pushed a change that should address this issue, but I'll need your browse.conf config to better test it.
Hi, after Updating to the php8 branch of Pawtucket2 I sometimes get "Something went wrong" errors on Occurrence detail pages where I try to display related objects (and sometimes related occurrences as well):
When I reload the page it always works:
I pulled the latest changes right now I do have a
log_db_errors
file now which contains errors like this:Is this due to a misconfiguration on my parts or a valid bug? Thanks!