diff --git a/CHANGELOG.md b/CHANGELOG.md index e7397c3f1d..feb46f1428 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ HumHub Changelog 1.17.3 (Unreleased) ---------------------- - Fix #7484: Use password type on the installation DB config form +- Fix #7486: Catch errors in external file handlers - Fix #7487: Fix comments list when comment is active from another parent comment 1.17.2 (April 7, 2025) diff --git a/protected/humhub/modules/file/handler/FileHandlerCollection.php b/protected/humhub/modules/file/handler/FileHandlerCollection.php index 16543e5d1b..c0a7a9d0a0 100644 --- a/protected/humhub/modules/file/handler/FileHandlerCollection.php +++ b/protected/humhub/modules/file/handler/FileHandlerCollection.php @@ -57,7 +57,11 @@ class FileHandlerCollection extends Component { parent::init(); - $this->trigger(self::EVENT_INIT); + try { + $this->trigger(self::EVENT_INIT); + } catch (\Exception $ex) { + Yii::error('Could not init file handler. Error: ' . $ex->getMessage(), 'file'); + } // Register default handlers if ($this->type === self::TYPE_CREATE) {