yii2-language-picker icon indicating copy to clipboard operation
yii2-language-picker copied to clipboard

Getting unknown property: yii\console\Request::cookies

Open paskuale75 opened this issue 6 years ago • 5 comments

this happens when I try to run / yii migrated from the console.

paskuale75 avatar Aug 13 '18 10:08 paskuale75

[partial solved] remove bootstrap from config before launch ./yii migrate command

paskuale75 avatar Aug 13 '18 15:08 paskuale75

You don't need this extension in your console application. Configure the extension in the frontend, or backend config.

But this could be fixed in the extension too. I will look into this.

moltam avatar Aug 13 '18 17:08 moltam

@moltam I have configured the extension in the common/config, I have divided into two (backend and frontend ) ? if it's the solution I'll do it right away ;)

paskuale75 avatar Aug 16 '18 23:08 paskuale75

The bottom line is: do not bootstrap the extension in the common, or console config.

The extension is needed only in the frontend (maybe in the backend) app, so you have to modify your config according to this. You can configure the extension in the common config, if you need in more applications, but only bootstrap in the specific application configs.

moltam avatar Aug 17 '18 05:08 moltam

thanks @moltam I moved it on backend/config now the migration command works like a charm !! :100:

paskuale75 avatar Aug 17 '18 08:08 paskuale75