omeka-s-themes / freedom

An Omeka S Theme
GNU General Public License v3.0
2 stars 3 forks source link

Issue with display errors for deleted items #23

Closed cynthialeng closed 5 months ago

cynthialeng commented 6 months ago

Hi,

I'm encountering an issue where the page displays "Omeka S encountered an error" when an item previously showcased using the "Item with metadata" and "Item carousel" is deleted. The error log shows: "Error: Call to a member function primaryMedia() on null in /home/japnsit1/mapping.japn.sites.carleton.edu/themes/freedom/view/common/block-layout/item-with-metadata.phtml:11". However, "Universal Viewer", "Browse preview", and "Media embed" work correctly.

Is it possible to make this process automatic so that, if an item is deleted in the future, the pages that include it will still load normally?

Thanks!

error
nelsonamaya82 commented 5 months ago

Hi @cynthialeng, thanks for reporting this issue. We're looking at this now and will update this ticket as soon as it's fixed.

nelsonamaya82 commented 5 months ago

@cynthialeng this issue is fixed now in the master branch and will be included in the next theme release. Thanks!

nelsonamaya82 commented 5 months ago

@cynthialeng the issue in the "Item carousel" block is fixed in the block's repository directly but we need to release a new version including this fix. Will check this with the team.