yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
14.24k stars 6.91k forks source link

Rbac unserialize error on get role data #17963

Closed iambakhodir closed 4 years ago

iambakhodir commented 4 years ago

image

my rule common\rules\ProfileRule.php image

common\config\main.php 'authManager' => [ 'class' => 'yii\rbac\DbManager', ],

Data on db name data
profile_rule O:24:"common\rules\ProfileRule":3:{s:4:"name";s:12:"profile_rule";s:9:"createdAt";i:1586364793;s:9:"updatedAt";i:1586364793;}
Q A
Yii version 2.0.35-dev
PHP version 7.3.9
PostgreSQL 10
Operating system MacOS Catalina 10.15.4
iambakhodir commented 4 years ago

I searched everywhere, found nothing. on all versions of php and postgres checked, but nothing has changed.

iambakhodir commented 4 years ago

It was a mamp pro problem