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
Missing argument 2 for yii\db\BaseActiveRecord::afterSave(), called in C:\EasyPHP\data\localweb\yii\basic\vendor\vova07\yii2-users-module\models\backend\User.php on line 143 and defined
because the "public function afterSave($insert, $changedAttributes)" have change with a new add parameter in the base framework.
The text was updated successfully, but these errors were encountered:
To fix it - IN models/backend/User.php in two lines add parameter $changedAtrr:
public function afterSave($insert,$changedAtrr)
{
parent::afterSave($insert,$changedAtrr);
if ($this->profile !== null) {
$this->profile->save(false);
}
}
When create a new user, we have this errorr
Missing argument 2 for yii\db\BaseActiveRecord::afterSave(), called in C:\EasyPHP\data\localweb\yii\basic\vendor\vova07\yii2-users-module\models\backend\User.php on line 143 and defined
because the "public function afterSave($insert, $changedAttributes)" have change with a new add parameter in the base framework.
The text was updated successfully, but these errors were encountered: