哎呀,好像出了点问题,laravel
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/51209477/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Whoops, looks like something went wrong, laravel
提问by moussa elenany
I get free host from 000webhost.com and it was working fine, but after two weeks i get the error
"Whoops, looks like something went wrong".
I use laravel framework for php.
Can anyone help me?
我从 000webhost.com 获得了免费主机,它运行良好,但两周后我收到错误消息“哎呀,好像出了点问题”。我为 php 使用 laravel 框架。
谁能帮我?
回答by Aakash Tushar
First of all, in config/app.php
set debug to true
or in your .env file set APP_DEBUG=true
. This should turn on the debugging errors Onon your server. If errors are still not visible, try php artisan config:clear
for making changes to take effect. You may also check storage/logs/laravel.log
for errors.
首先,在config/app.php
set debugtrue
或您的 .env 文件 set 中APP_DEBUG=true
。这应该打开调试错误,在你的服务器上。如果错误仍然不可见,请尝试php artisan config:clear
使更改生效。您也可以检查storage/logs/laravel.log
错误。
Possible problems are:
可能的问题是:
- Your server's configurations does not meet the Laravel's requirements.
- Laravel does not have read/write access to
bootstrap/cache
folder. - Project dependencies not installed or not supported.
- 您的服务器配置不符合Laravel 的要求。
- Laravel 没有
bootstrap/cache
文件夹的读/写权限。 - 未安装或不支持项目依赖项。
回答by moussa elenany
I get the solution :
我得到了解决方案:
- First i go to app.php and change the value of APP_DEBUG = true
- I get the error name " No application key generated "
- I run code
php artisan key:generate
- 首先我去 app.php 并更改 APP_DEBUG = true 的值
- 我收到错误名称“未生成应用程序密钥”
- 我运行代码
php artisan key:generate