Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting unknown property: bedezign\yii2\audit\Audit::tracePathMappings #285

Open
lloyd966 opened this issue Dec 3, 2021 · 1 comment
Open

Comments

@lloyd966
Copy link

lloyd966 commented Dec 3, 2021

I recently install this extension, and in general it works great. Thank you for this great extension.

Inside the view screen for an individual Entry, when I click Database or the Logs tab I get the following Error

Unknown Property – yii\base\UnknownPropertyException
Getting unknown property: bedezign\yii2\audit\Audit::tracePathMappings

Can anyone let me know how to fix this problem.

Please note that when I click on the Request or Profiling tab it works perfectly.

Any help would be greatly appreciated.

Lloyd

@lloyd966
Copy link
Author

lloyd966 commented Dec 5, 2021

Fixed.

Turns out I placed the following

'bedezign\yii2\audit\AuditTrailBehavior',

in the Controller behaviours rather than the Model behaviours. removing from the controller and placing in the Model fixed the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant