Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 8, 201410 yr 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.
Archived
This topic is now archived and is closed to further replies.