[5.7.x]: Seeing lots of "bacBaseManager: not found" in the logs
What happened?
Description
Since 5.7.0 I have been getting a lot of these errors in the logs:
bacBaseManager: not found
Googling that leads me to https://www.yiiframework.com/doc/api/2.0/yii-rbac-basemanager
Craft CMS version
5.7.0
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Hi, thanks for getting in touch! Can you please share the list of installed plugins and versions?
Thanks!
yii\rbac\BaseManager is part of the https://www.yiiframework.com/doc/guide/2.0/en/security-authorization (Role Based Access Control). We don’t use it in the cms or any of our plugins, you listed above. Are you, by any chance, configuring an authManager component in your config/app.php or using it via a custom module or plugin?
I think it has something to do with Docker or something else on my system. The logs are not coming from my web app at all. Sorry for the inconvienience.
Reopening because I do think it has to do something with Craft. I found that you guys updated the yii2-debug toolbar in 5.7.0 which uses rbac, and the latest version has this in their changelog:
Enh #459: Add yii\debug\Module::$authManager to select RBAC manager used by UserPanel (default is authManager) (jafaripur)
The actual fix is already in yii2-debug but not released yet: https://github.com/yiisoft/yii2-debug/pull/531
Maybe keep this issue open so that when its released it can be bumped in Craft?
We're in a tricky situation where we can't say if we're getting a 500 from this issue or not.
@boboldehampsink do you get 500s out of this situation?
No I don't think so. But it's only an issue for people who have enabled the debug bar.
A new release of the debug bar is out now with a fix for this. It can be bumped in Craft's dependencies now.
Updated to 2.1.27 for the next Craft 4 and 5 releases.
Craft 4.15.7 and 5.7.11 are out with yii2-debug 2.1.27.