cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.7.x]: Seeing lots of "bacBaseManager: not found" in the logs

Open boboldehampsink opened this issue 1 year ago • 9 comments

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

boboldehampsink avatar Apr 17 '25 13:04 boboldehampsink

Hi, thanks for getting in touch! Can you please share the list of installed plugins and versions?

i-just avatar Apr 17 '25 13:04 i-just

Image

boboldehampsink avatar Apr 17 '25 13:04 boboldehampsink

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-just avatar Apr 17 '25 14:04 i-just

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.

boboldehampsink avatar Apr 17 '25 18:04 boboldehampsink

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)

boboldehampsink avatar Apr 22 '25 11:04 boboldehampsink

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?

boboldehampsink avatar Apr 24 '25 13:04 boboldehampsink

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?

ricricucit avatar May 07 '25 08:05 ricricucit

No I don't think so. But it's only an issue for people who have enabled the debug bar.

boboldehampsink avatar May 07 '25 08:05 boboldehampsink

A new release of the debug bar is out now with a fix for this. It can be bumped in Craft's dependencies now.

boboldehampsink avatar Jun 10 '25 05:06 boboldehampsink

Updated to 2.1.27 for the next Craft 4 and 5 releases.

brandonkelly avatar Jun 18 '25 17:06 brandonkelly

Craft 4.15.7 and 5.7.11 are out with yii2-debug 2.1.27.

brandonkelly avatar Jun 24 '25 16:06 brandonkelly