这是由于访问laravel项目报错的,解决几种可能出现的错误。

 

1)打开:D:\java\wamp\www\subway\app\config\app.php 修改:'debug' => true, debug基本为true

 

2)打开debug后出现这个错误,报错:OpenSSL did not produce a secure random number

Php代码  laravel遇到的问题
  1. pen: D:\java\wamp\www\subway\vendor\symfony\security\Symfony\Component\Security\Core\Util\SecureRandom.php  
  2.                 $this->logger->info('OpenSSL did not produce a secure random number.');  
  3.             }  
  4.         }  
  5.    
  6.         // initialize seed  
  7.         if (null === $this->seed) {  
  8.             if (null === $this->seedFile) {  
  9.                 throw new \RuntimeException('You need to specify a file path to store the seed.');  
  10.             }  
  11.    

 解决:php.ini 启用 extension=php_openssl.dll 扩展后,重启wamp服务。

 

 

RuntimeException in compiled.php line 6904: No supported encrypter found. The cipher and / or key length are invalid.
 
 
laravel5.1开始APP_KEY必须是长度32且有cipher。去.env设置或者是config/app.php设置吧

相关文章:

  • 2022-01-28
  • 2022-01-21
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2021-09-24
  • 2021-04-14
猜你喜欢
  • 2022-12-23
  • 2021-09-24
  • 2021-05-03
  • 2021-09-24
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案