M
M
Mikha Pankratov2015-04-16 12:05:15
Yii
Mikha Pankratov, 2015-04-16 12:05:15

Yii2 How to fix errors when adding comments module?

Good afternoon,
I want to figure it out and add myself - the module
https://github.com/vova07/yii2-start-comments-module
I add the comments widget code to the view
An error occurs -

PHP Fatal Error – yii\base\ErrorException

Call to a member function checkAccess() on a non-object

I think the error is in the rights, how to get around it or how to fix it?
tell someone is not difficult. :-) Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-04-16
@TsarS

Probably, you must first install and configure the RBAC module from vova07?
Did you install using composer? the yii2-users-module module is there in dependencies (and it already has RBAC in dependencies)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question