报错The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
小白问题:导入已有项目,运行composer install后,报错“The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.”。
网上查了一下,都说到项目根目录下,运行“php artisan key:generate” 就可以了。 但运行这个命令时,还是报“The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.”。
好像不管跑哪个命令都还是报这个错,不知道哪里设置错了? 请指教啊~
6 Comments
有没有大神帮忙啊~
不知道有没有人遇到过这种问题啊。
看看这个能不能解决你的问题:https://github.com/laravel/framework/issues/9080
PS:尽量用 Google 搜索引擎,技术问题用百度搜索是一件低效率的事情
十分感谢回答。 我试了里面的方法, 改app.php 或者 各种命令比如“php artisan key:generate php artisan config:clear php artisan config:cache” “composer update” 都不行。 只要打入无论什么命令,执行都会报The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.”
但laravel new 或者 composer create-project laravel/laravel 新建的项目,都没问题。 执行“php artisan key:generate“ 也是可以的。 照理说环境应该没问题吧,难道工程里会有什么问题?
执行composer install 后的信息是这样的: Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Package operations: 91 installs, 0 updates, 0 removals
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
symfony/var-dumper suggests installing ext-symfony_debug symfony/routing suggests installing doctrine/annotations (For using the annotation loader) symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader) symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service) symfony/routing suggests installing symfony/expression-language (For using expression matching) paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.) symfony/event-dispatcher suggests installing symfony/dependency-injection symfony/http-kernel suggests installing symfony/browser-kit symfony/http-kernel suggests installing symfony/config symfony/http-kernel suggests installing symfony/dependency-injection symfony/console suggests installing symfony/lock swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is not installed) ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator) ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator) ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter) ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).) ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid) ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
symfony/translation suggests installing symfony/config
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB) monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server) monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required)) monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server) monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server) monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver) monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib) monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome) monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar) monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server) monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server) league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2) league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3) league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage) league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching) league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem) league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files) league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib) league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage) league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter) league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage) league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications) laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (~3.0).)laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).) laravel/framework suggests installing league/flysystem-cached-adapter (Required to use Flysystem caching (~1.0).) laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).) laravel/framework suggests installing nexmo/client (Required to use the Nexmo transport (~1.0).) laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).) laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).) laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~3.0).) laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (~3.3).) laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (~1.0).)
google/cloud-core suggests installing opis/closure (May be used to serialize closures to process jobs in the batch daemon. Please require version ^3.)
google/cloud-core suggests installing symfony/lock (Required for the Spanner cached based session pool. Please require the following commit: 3.3.x-dev#1ba6ac9)
google/cloud-storage suggests installing google/cloud-pubsub (May be used to register a topic to receive bucket notifications.)
google/cloud-storage suggests installing phpseclib/phpseclib (May be used in place of OpenSSL for creating signed Cloud Storage URLs. Please require version ^2.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses) sebastian/global-state suggests installing ext-uopz () phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5) phpunit/phpunit suggests installing ext-xdebug () phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
Generating optimized autoload files
In Encrypter.php line 43:
The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
这个问题困扰到现在,还是无果。