Answer the question
In order to leave comments, you need to log in
What is the error when reading DB in bowels of Yii2?
When trying to log in to the site (the usual Yii2 authorization scheme, users are stored in the database), the following error occurs on the hosting:
Everything works without problems on the local server. I don't even get the point. What can't he find when analyzing the base schema? Where to dig?
Answer the question
In order to leave comments, you need to log in
As I understand it, out of some kind of fright, you climbed to edit the vendor folder?
Because in the original file $info['default']
, and you $info['admin']
have an error saying that there is no such element in the $info array. Why do you touch the vendor folder at all, you can’t edit anything there
Flush the DB structure cache
Yii::$app->db->getSchema()->refresh();
May help..
The error explicitly states that there is no admin column
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question