Как исправить Класс Process основан на proc_open, который недоступен в вашей PHP установке - PullRequest
0 голосов
/ 22 января 2020

Я хочу загрузить на хостинг, но не могу загрузить.

(1/1) LogicException

The Process class relies on proc_open, which is not available on your PHP installation.
in Process.php line 143

at Process->__construct(array(), '/stage/data01/bipaio/public_html', null, null, 60.0)in Process.php line 195
at Process::fromShellCommandline('git log --pretty=format:\'%H\' -n 1', '/stage/data01/bipaio/public_html')in AddGitInformation.php line 51
at AddGitInformation->command('git log --pretty=format:\'%H\' -n 1')in AddGitInformation.php line 25
at AddGitInformation->hash()in AddGitInformation.php line 13
at AddGitInformation->handle(object(Report), object(Closure))in Pipeline.php line 171

1 Ответ

0 голосов
/ 29 января 2020

В Laravel 6 или выше ( proc_open Error )


Это происходит из-за того, что служба отчетов об ошибках Flare включена в режиме отладки. Обходной путь для этого.

Publi sh Flare config file

php artisan vendor:publish --tag=flare-config

, затем в

config/flare.php

Обновление Это

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

'send_logs_as_events' => false,

Надеюсь, что это будет работать

...