kartik-v / yii2-detail-view

Various enhancements to the Yii 2 Detail View with ability to edit data and manage styles using BS3.
http://demos.krajee.com/detail-view
Other
70 stars 56 forks source link

Array to string conversion yii2-bootstrap/src/Alert #180

Closed RichWeber closed 3 years ago

RichWeber commented 3 years ago

Steps to reproduce the issue

  1. Use method Yii::$app->session->addFlash()
  2. Add few errors

Expected behavior and actual behavior

When I follow those steps, I see:

yii\base\ErrorException: Array to string conversion in /opt/vendor/yiisoft/yii2-bootstrap/src/Alert.php:110

#0 /opt/vendor/yiisoft/yii2-bootstrap/src/Alert.php(110): yii\web\ErrorHandler->handleError()
#1 /opt/vendor/yiisoft/yii2-bootstrap/src/Alert.php(89): yii\bootstrap\Alert->renderBodyEnd()
#2 /opt/vendor/yiisoft/yii2/base/Widget.php(141): yii\bootstrap\Alert->run()
#3 /opt/vendor/kartik-v/yii2-detail-view/src/DetailView.php(915): yii\base\Widget::widget()
#4 /opt/vendor/kartik-v/yii2-detail-view/src/DetailView.php(1221): kartik\detail\DetailView->renderAlertBlock()
#5 /opt/vendor/kartik-v/yii2-detail-view/src/DetailView.php(864): kartik\detail\DetailView->renderPanel()
#6 /opt/vendor/kartik-v/yii2-detail-view/src/DetailView.php(785): kartik\detail\DetailView->runWidget()
#7 /opt/vendor/yiisoft/yii2/base/Widget.php(141): kartik\detail\DetailView->run()

Libraries

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.