From 31a53e074123085a7485f4d7e1e97cf0554153f8 Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Mon, 6 Apr 2026 18:40:25 +0300 Subject: [PATCH] Fix Yii debug config --- docs/develop/environment.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/develop/environment.md b/docs/develop/environment.md index 5ff0dfd..d8e2e70 100644 --- a/docs/develop/environment.md +++ b/docs/develop/environment.md @@ -82,23 +82,26 @@ You may want to enable the [Yii Debug Module](http://www.yiiframework.com/doc-2. in `.env` ```env // @humhub/.env -HUMHUB_CONFIG__BOOSTRAP=['debug'] -HUMHUB_CONFIG__MODULES__DEBUG='{"class":"yii\\\debug\\\Module", "allowedIPs": ["127.0.0.1", "::1"]}' +HUMHUB_CONFIG__BOOTSTRAP=["debug"] +HUMHUB_CONFIG__MODULES__DEBUG='{"class":"humhub\\components\\DebugModule", "allowedIPs": ["127.0.0.1", "::1"]}' ``` or in `protected/config/web.php` ```php return [ 'bootstrap' => ['debug'], - 'modules' => [ - 'debug' => [ - 'class' => 'yii\debug\Module', - 'allowedIPs' => ['127.0.0.1', '::1'], - ], - ] + 'modules' => [ + 'debug' => [ + 'class' => 'humhub\components\DebugModule', + 'allowedIPs' => ['127.0.0.1', '::1'], + ], + ] ]; ``` +Note: Class `humhub\components\DebugModule` is available since HumHub 1.18.3, use `yii\debug\Module` for older versions. + + ## Update your installation Git based installations can be updated manually as follows: