Catch errors in external file handlers (#7486)

Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
Yuriy Bakhtin 2025-04-10 13:39:41 +02:00 committed by GitHub
parent a483f791a7
commit daf7ac12d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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) {