Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
DChiuch Posted December 8, 2014 Posted December 8, 2014 Hi, is there any way to catch exceptions in template logic?My template logic includes a \IPS\gallery\Image::loadFromUrl($url); call, and at the moment, if I try to load a gallery image which doesn't exist, I get "exception 'OutOfRangeException'". I'd like to be able to handle this so that the page loads with no image, rather than having the page be entirely broken.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.