Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anna_st's avatar

How to get around the proc_open() function ? Laravel 11

Hi,

I have a problem with installing an application on a server. The application is based on Laravel 11 and PHP 8.2 I am getting an error:

Fatal error: Uncaught Error: Call to undefined function proc_open() in .../vendor/sebastian/version/src/Version.php:85 Stack trace: #0 .../vendor/sebastian/version/src/Version.php(61): SebastianBergmann\Version->getGitInformation() #1 .../vendor/sebastian/version/src/Version.php(36): SebastianBergmann\Version->generate() #2 .../vendor/phpunit/phpunit/src/Runner/Version.php(37): SebastianBergmann\Version->__construct() #3 .../vendor/phpunit/phpunit/src/Runner/Version.php(45): PHPUnit\Runner\Version::id() #4 .../vendor/nunomaduro/collision/src/Adapters/Phpunit/Autoload.php(10): PHPUnit\Runner\Version::series() #5 .../vendor/composer/autoload_real.php(41): require('/home/.../...') #6 .../vendor/composer/autoload_real.php(45): {closure}() #7 .../vendor/autoload.php(25): ComposerAutoloaderInit7e8c3c14ff33b199b4a0838993eb8423::getLoader() #8 .../public_html/index.php(13): require('/home/.../...') #9 thrown in .../vendor/sebastian/version/src/Version.php on line 85

I tried to issue the command: php artisan vendor:publish --tag=flare-config

to set in config/flare.php 'collect_git_information' => false

but I get the message No publishable resources for tag [flare-config]

I looked for the flare.php file but it is not in any folder. On my hotsting function proc_open is off because of security reasons. On my computer application works fine.

Does anyone have an idea how to solve this problem ?

Anna

0 likes
2 replies
aleahy's avatar
aleahy
Best Answer
Level 25

This message seems around the composer packages for unit testing.

I would try doing a composer install without installing the dev packages. PHPUnit is one of these.

On your server, run composer install --no-dev . This should remove those packages so they won't be autoloaded and have this issue.

I'm not sure how config/flare.php is related...

1 like
anna_st's avatar

@aleahy It worked !!! :) I spent six days on this problem. Thank You very much for your help.

1 like

Please or to participate in this conversation.