yii2-usuario icon indicating copy to clipboard operation
yii2-usuario copied to clipboard

Trying to get property 'enableGdprCompliance' of non-object

Open ofilin opened this issue 4 years ago • 1 comments

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

ofilin avatar Feb 16 '21 19:02 ofilin

In config file, you forget insert: 'modules' => [ 'user' => ['class' => \Da\User\Module::class] ],

mazurva avatar Oct 12 '21 08:10 mazurva

closing per no further comment

maxxer avatar Dec 31 '22 07:12 maxxer