yii2-usuario
yii2-usuario copied to clipboard
Trying to get property 'enableGdprCompliance' of non-object
If using User model without module I have error "Trying to get property 'enableGdprCompliance' of non-object",
For fix: if ($this->module && $this->module->enableGdprCompliance) {
https://github.com/2amigos/yii2-usuario/blob/2504dd03b9b44971b783dde7c906757a63b14e79/src/User/Model/User.php#L167
In config file, you forget insert:
'modules' => [ 'user' => ['class' => \Da\User\Module::class] ],
closing per no further comment