Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on migration #15753

Closed
lyudmila-petrova opened this issue Feb 23, 2018 · 1 comment
Closed

Exception on migration #15753

lyudmila-petrova opened this issue Feb 23, 2018 · 1 comment

Comments

@lyudmila-petrova
Copy link

What steps will reproduce the problem?

I have clean yii2-app-advanced and run vagrant up command.

What is the expected result?

Migration without exeption and green tests out of the box.

What do you get instead?

On vagrant up i've got an exeption:

shop: Migrated up successfully.
shop: Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\console\Request::cookieValidationKey'
shop:
shop: in /app/vendor/yiisoft/yii2/base/Component.php:209
shop:
shop: Stack trace:
shop: #0 /app/vendor/yiisoft/yii2/BaseYii.php(546): yii\base\Component->__set('cookieValidatio...', 'test')
shop: #1 /app/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\BaseYii::configure(Object(yii\console\Request), Array)
shop: #2 [internal function]: yii\base\BaseObject->__construct(Array)
shop: #3 /app/vendor/yiisoft/yii2/di/Container.php(383): ReflectionClass->newInstanceArgs(Array)
shop: #4 /app/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('yii\console\Req...', Array, Array)
shop: #5 /app/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get('yii\console\Req...', Array, Array)
shop: #6 /app/vendor/yiisoft/yii2/di/ServiceLocator.php(137): yii\BaseYii::createObject(Array)
shop: #7 /app/vendor/yiisoft/yii2/base/Module.php(742): yii\di\ServiceLocator->get('request', true)
shop: #8 /app/vendor/yiisoft/yii2/console/Application.php(219): yii\base\Module->get('request')
shop: #9 /app/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->getRequest()
shop: #10 /app/yii_test(22): yii\base\Application->run()
shop: #11 {main}
shop:
shop: --> Create bash-alias 'app' for vagrant user

Additional info

Q A
Yii version 2.0.14
PHP version PHP 7.1.14-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Feb 9 2018 09:33:27) ( NTS )
Operating system ubuntu16.04
@samdark
Copy link
Member

samdark commented Feb 23, 2018

Duplicate of yiisoft/yii2-app-advanced#346

@samdark samdark marked this as a duplicate of yiisoft/yii2-app-advanced#346 Feb 23, 2018
@samdark samdark closed this as completed Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants