【问题标题】:Where is the laravel error file located? or Is there a default error log in Laravel?laravel 错误文件在哪里?或者 Laravel 中是否有默认的错误日志?
【发布时间】:2016-12-29 17:03:51
【问题描述】:

我正在使用 laravel- 做一个中等项目很长时间了,当然我使用框架 -laravel- 的调试器,但是现在我有时会看到错误页面,但是有只是“哎呀,没有错误”,没有任何错误说明,我在 ajax 请求中看到了很多,但我只是实现了页面并且它消失了!

最后错误再次出现,我可以在终端中看到它,命令tail down here

这是我得到的

[2016-12-28 14:54:04] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:45
Stack trace:
#0 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php(25): Illuminate\Encryption\EncryptionServiceProvider->getEncrypterForKeyAndCipher(NULL, 'AES-256-CBC')
#1 D:\shop\tess\vendor\laravel\framework\src\Illuminate\Container\Container.php(731): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)

我在 github 上找到了这个,它帮助了 https://github.com/orchestral/testbench/issues/93

【问题讨论】:

    标签: laravel laravel-5.2


    【解决方案1】:

    确保在您的.env 文件中将APP_DEBUG 设置为true

    【讨论】:

    • 我说我正在使用调试器
    • 抱歉,不清楚您是否知道这一点。试试dd(config('app.debug')); 看看是否真的定位?可能存在某种本地权限问题。
    • 调试器工作正常,这就是这个问题的原因。
    • 看到您编辑的问题的解决方案:请下次尝试明确您的要求。你的问题标题应该是Where is the laravel error file located?Is there a default error log in Laravel?,但不是What would be the reason to see the“Whoops something went wrong” without error details
    • 好的!这是因为我不知道要寻找什么或要问什么!不过还是谢谢
    【解决方案2】:

    您可以使用以下命令检查错误tail -f storage/logs/laravel.log可能是不同的错误

    【讨论】:

    • 这个命令有什么作用?只是在您输入错误日志时回显它?
    • @brahimm 2 seconds of Googling 就够了。
    • 最后我得到了错误 Illuminate\Encryption\EncryptionServiceProvider->getEncrypterForKeyAndCipher(NULL, 'AES-256-CBC')
    猜你喜欢
    • 2015-05-31
    • 2015-08-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-10
    相关资源
    最近更新 更多