An Error occurred while handling another error:
yii\web\HeadersAlreadySentException: Headers already sent in /app/common/messages/ru/app.php on line 1. in /app/vendor/yiisoft/yii2/web/Response.php:368
Stack trace:
#0 /app/vendor/yiisoft/yii2/web/Response.php(341): yii\web\Response->sendHeaders()
#1 /app/vendor/yiisoft/yii2/web/ErrorHandler.php(136): yii\web\Response->send()
#2 /app/vendor/yiisoft/yii2/base/ErrorHandler.php(152): yii\web\ErrorHandler->renderException(Object(yii\base\ErrorException))
#3 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\base\ErrorException))
#4 {main}
Previous exception:
yii\base\ErrorException: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /app/frontend/views/site/_galleries.php:23
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(8192, 'substr(): Passi...', '/app/frontend/v...', 23)
#1 /app/frontend/views/site/_galleries.php(23): substr(NULL, 0, 180)
#2 /app/vendor/yiisoft/yii2/base/View.php(347): require('/app/frontend/v...')
#3 /app/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/app/frontend/v...', Array)
#4 /app/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/app/frontend/v...', Array, NULL)
#5 /app/frontend/views/site/galleries.php(29): yii\base\View->render('_galleries', Array)
#6 [internal function]: yii\base\View->{closure}(Object(common\models\Photogalleries), 1, 2, Object(yii\widgets\ListView))
#7 /app/vendor/yiisoft/yii2/widgets/ListView.php(193): call_user_func(Object(Closure), Object(common\models\Photogalleries), 1, 2, Object(yii\widgets\ListView))
#8 /app/vendor/yiisoft/yii2/widgets/ListView.php(124): yii\widgets\ListView->renderItem(Object(common\models\Photogalleries), 1, 2)
#9 /app/vendor/yiisoft/yii2/widgets/BaseListView.php(160): yii\widgets\ListView->renderItems()
#10 /app/vendor/yiisoft/yii2/widgets/BaseListView.php(135): yii\widgets\BaseListView->renderSection('{items}')
#11 [internal function]: yii\widgets\BaseListView->yii\widgets\{closure}(Array)
#12 /app/vendor/yiisoft/yii2/widgets/BaseListView.php(134): preg_replace_callback('/{\\w+}/', Object(Closure), '<div class="row...')
#13 /app/vendor/yiisoft/yii2/base/Widget.php(146): yii\widgets\BaseListView->run()
#14 /app/frontend/views/site/galleries.php(24): yii\base\Widget::widget(Array)
#15 /app/vendor/yiisoft/yii2/base/View.php(347): require('/app/frontend/v...')
#16 /app/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/app/frontend/v...', Array)
#17 /app/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/app/frontend/v...', Array, Object(frontend\controllers\SiteController))
#18 /app/vendor/yiisoft/yii2/base/Controller.php(407): yii\base\View->render('galleries', Array, Object(frontend\controllers\SiteController))
#19 /app/frontend/controllers/SiteController.php(337): yii\base\Controller->render('galleries', Array)
#20 [internal function]: frontend\controllers\SiteController->actionGalleries()
#21 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#22 /app/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#23 /app/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('galleries', Array)
#24 /app/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('site/galleries', Array)
#25 /app/vendor/yiisoft/yii2/base/Application.php(384): yii\web\Application->handleRequest(Object(yii\web\Request))
#26 /app/frontend/web/index.php(18): yii\base\Application->run()
#27 {main}