T
T
Tatiana Komarova2017-07-13 11:08:20
MySQL
Tatiana Komarova, 2017-07-13 11:08:20

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:
DmvgRyy63x8.jpg
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

2 answer(s)
M
Maxim Timofeev, 2017-07-13
@tatia_kom

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

M
melnikov_m, 2017-07-13
@melnikov_m

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 question

Ask a Question

731 491 924 answers to any question