Closed vzani closed 6 years ago
you need to change :
yiisoft/yii2": ">=2.0.6"
to "yiisoft/yii2": "~2.0.14"
Yes. As notes in multiple 2.0 release announcements:
Since there is Yii 2.1 in development now, make sure you have a version constraint in your composer.json, that does not allow it to be installed automatically on update, so when next major version of Yii is released, your project won't break by itself. A version constraint that does not include 2.1 is for example ~2.0.14, make sure you do not have >= or * in version constraints in composer.json.
Aside from this issue about constraining the version in the composer file, I found that I was able to solve the actual error by modifying the log
key as follows:
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
'class' => 'yii\log\Logger',
],
The message is straightforward - it needs a class for the log, so you give it one.
sorry but where is this component file?
After upgrading php to 7.2 and running composer update, started facing the following issues:
My composer.json require:
My "components"
Thanks