mirror of
https://github.com/humhub/humhub.git
synced 2025-04-20 15:11:52 +02:00
Catch errors in external file handlers (#7486)
Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
parent
a483f791a7
commit
daf7ac12d2
@ -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)
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user