1. Command:
php yii
2. Error:
Exception ‘yii\base\UnknownPropertyException’ with message ‘Setting unknown property: yii\console\Request::cookieValidationKey’
3. Reason:
console/yii file
$config = yii\helpers\ArrayHelper::merge(
require __DIR__ . '/config/main.php',
require __DIR__ . '/../conf/main-local.php'
);
$application = new yii\console\Application($config);
The above program execution entry combines all configurations before actual operation, and some configuration parameters are invalid for console operation
4. Solution:
Delete these parameters before performing console operations
unset($config['components']['request']);
$application = new yii\console\Application($config);
Read More:
- Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- PHP solves the problem that composer exceeds the memory size Allowed memory size
- [Solved] Fatal error: Uncaught Error: Class ‘Imagick‘ not found
- Hyperf [ERROR] Invalid protocol of registry consul[205]
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- [Solved] Cannot find config.m4. phpize installation extension error
- [Solved] Laravel Upload Files Verificate Error: The file failed to upload.
- [PHP] php8 jit does not support 32-bit systems WARNING: JIT not supported by host architecture
- Workman Run Error: stream_socket_server() has been disabled for security reasons
- Error while injecting dependencies into App\Controller\IndexController: No entry or class found for
- ThinkPHP interface cross domain request error [Solved]
- Configure: error: Cannot find libz error appears when brew installs php70
- Vant configures multiple sites, and new sites 404 error [How to Solve]
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- PHP error in Windows: class’ mysqli ‘not found
- [Solved] file_get_contents(): SSL operation failed with code 1
- [Solved] PHP -v Error: error while loading shared libraries: libonig.so.5:cannot open share directory
- composer Error while processing content unencoding: Unknown failure within decompression softwar
- [Solved] Fatal error: Class ‘think\Container‘ not found & [InvalidArgumentException] Could not find package