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:
- ThinkPHP interface cross domain request error [Solved]
- Fastadmin Menu “cURL error 77: error setting certificate verify locations
- composer Error while processing content unencoding: Unknown failure within decompression softwar
- [Solved] ‘node’ command failed to start the project, with an error: “unknown database’ mydb ‘”
- [Solved] Request exceeded the limit of 10 internal redirects due to possible configuration error
- PHP large file upload error 413: request entity too large [How to Solve]
- [PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large
- [Solved] Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path:
- [Solved] has been blocked by CORS policy: Response to preflight request doesn‘t pass access control check: No
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- [Solved] tp6.0 open_basedir Error: Warning: require(): open_basedir restriction in effect.
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- 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 -v Error: error while loading shared libraries: libonig.so.5:cannot open share directory
- Workman Run Error: stream_socket_server() has been disabled for security reasons
- PHP solves the problem that composer exceeds the memory size Allowed memory size
- Configure: error: Cannot find libz error appears when brew installs php70
- PHP: The Difference between \Throwable, \Error and \Exception
- Error during PHP installation and configuration error: off_t undefined; check your library configuration
- [Solved] Fatal error: Uncaught Error: Class ‘Imagick‘ not found