简体   繁体   English

Laravel 新错误显示 package(点火)导致共享主机错误

[英]Laravel new error displaying package (Ignition) causes error on shared hosting

Laravel's new error displaying package runs command at startup and it causes the error Laravel 的新错误显示 package 在启动时运行命令并导致错误

Process class relies on proc_open , which is not available on your PHP installation.进程 class 依赖于proc_open ,这在您的 PHP 安装中不可用。

Here is error trace这是错误跟踪

at Process->__construct('git log --pretty=format:\'%H\' -n 1', '/home/u7640462/congresssun.com/dev')
in AddGitInformation.php line 50

at AddGitInformation->command('git log --pretty=format:\'%H\' -n 1')
in AddGitInformation.php line 25

It's shared hosting so I'm not able to change php.ini file effectively.它是共享主机,所以我无法有效地更改php.ini文件。 I can't enable proc_open on php.ini我无法在 php.ini 上启用 proc_open

So how can I get away with this error?那么我怎样才能摆脱这个错误呢?

Even if I set .env for production and close debugging it gives me the above error.即使我将.env设置为生产并关闭调试,它也会给我上述错误。

It appears you can turn off the Git functionality by modifying your config/flare.php configuration to set flare.reporting.collect_git_information to false.看来您可以通过修改config/flare.php配置flare.reporting.collect_git_information设置为false 来关闭Git 功能。

This isthe only spot that uses the Process class so it should resolve this issue, at least.这是唯一使用Process class 的地方,所以它至少应该解决这个问题。

(Fundamentally, though, find a better web host that doesn't do this. You are likely to run into other issues with disabled functionality that may be much harder to work around.) (不过,从根本上说,要找到一个更好的 web 主机,但它不会这样做。您可能会遇到其他更难解决的禁用功能问题。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM