If the user disables an gallery image (not one of the tx_generic_gallery_items but the "images" item inside the "tx_generic_gallery_items" item) an FE error occurs:
"Call to a member function getOriginalResource() on null"
The reason is in the model GalleryItem.php:
public function getImage()
{
**if ($this->image === null) {
return $this->imageReference->getOriginalResource()->getOriginalFile();**
}
If the user disables an gallery image (not one of the tx_generic_gallery_items but the "images" item inside the "tx_generic_gallery_items" item) an FE error occurs:
"Call to a member function getOriginalResource() on null"
The reason is in the model GalleryItem.php: