You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i found some error when use your extensions in my new server. it told header already sent on ChatRoom.php file. I use Yii 2.0.14
.....
if ($message) {
$model->message = $message;
$model->userId = Yii::$app->user->id;
if ($model->save()) {
echo $model->data(); // this cause error
} else {
print_r($model->getErrors());
exit(0);
}
} else {
\echo $model->data(); //this cause error
}
Hi there
i found some error when use your extensions in my new server. it told header already sent on ChatRoom.php file. I use Yii 2.0.14
.....
if ($message) {
$model->message = $message;
$model->userId = Yii::$app->user->id;
....
then i find solution in yiisoft/yii2#15782
I try replace following code like
...
if ($message) {
$model->message = $message;
$model->userId = Yii::$app->user->id;
...
Thanks for your attentions.. Sorry for bad english :D
The text was updated successfully, but these errors were encountered: