Yii2 Error (after installing or after migration)

This issue keeps happening to me and i tend to forget the resolution.

arning: include(C:\wamp\www\backup\basic2\vendor\yiisoft\yii2/base/Component.php): failed to open stream: No such file or directory in C:\wamp\www\backup\basic2\vendor\yiisoft\yii2\BaseYii.php on line 290

 

So the system complained failed to open stream.

THE SOLUTION IS: CHECK THE db.php connection details.

This issue is caused by Yii2 not being able to connect to DB.

 

And make sure you change the right db.php file (check the directory of the file and check the URL you are accessing).

 

Leave a Reply

Your email address will not be published. Required fields are marked *