Backend unusable if storage driver is not available
If I have a storage which relies on a not-existing driver (because I deactivated the extension providing that driver) the backend isn't usable on multiple places anymore.
[BUGFIX] Catch some FAL exceptions for missing driver
If a driver of a storage isn't available anymore (e.g. because an
extension was deactivated), an exception is thrown and the backend
stops working on multiple sites.
This patch catches the InvalidArgumentException which is thrown by the
DriverRegistry and ensures a proper working mode. The exception is
- editing a record with inline record to a file of that storage
- editing a record with image manipulation of a file of that storage
- opening the element browser where the last folder was within that storage
Reviewed-by: Georg Ringer <firstname.lastname@example.org>
Tested-by: Georg Ringer <email@example.com>
Reviewed-by: Alexander Opitz <firstname.lastname@example.org>
Tested-by: Alexander Opitz <email@example.com>