laravel-menu-builder icon indicating copy to clipboard operation
laravel-menu-builder copied to clipboard

Installer Fix - Exception ->" Argument #1 ($command) must be of type array, string given"

Open locopine opened this issue 4 years ago • 0 comments

Error handling during execution of "php artisan menu:install" : "Symfony\Component\Process\Process::__construct(): Argument #1 ($command) must be of type array, string given, called in /path/of/the/application/vendor/codexshaper/laravel-menu -builder/src/Commands/InstallMenuBuilder.php on line 75.

`-> % php artisan menu:install Publishing the MenuBuilder assets, database, and config files Copied Directory [\vendor\codexshaper\laravel-menu-builder\database\seeds] To [\database\seeds] Publishing complete. Migrating the database tables into your application Migrating: 2019_08_22_221932_create_menus_table Migrated: 2019_08_22_221932_create_menus_table (641.77ms) Migrating: 2019_08_27_165403_create_menu_items_table Migrated: 2019_08_27_165403_create_menu_items_table (740.65ms) Migrating: 2019_08_27_165403_create_menu_settings_table Migrated: 2019_08_27_165403_create_menu_settings_table (1,351.78ms) Dumping the autoloaded files and reloading all new files

TypeError

Symfony\Component\Process\Process::__construct(): Argument #1 ($command) must be of type array, string given, called in \path\of\the\application\vendor\codexshaper\laravel-menu -builder\src\Commands\InstallMenuBuilder.php on line 75

at \path\of\the\application\vendor\symfony\process\Process.php:141 137▕ * @param int|float|null $timeout The timeout in seconds or null to disable 138▕ * 139▕ * @throws LogicException When proc_open is not installed 140▕ */ ➜ 141▕ public function __construct(array $command, string $cwd = null, array $env = null, $input = null, ?float $timeout = 60) 142▕ { 143▕ if (!\function_exists('proc_open')) { 144▕ throw new LogicException('The Process class relies on proc_open, which is not available on your PHP installation.'); 145▕ }

1 \path\of\the\application\vendor\codexshaper\laravel-menu-builder\src\Commands\InstallMenuBuilder.php:75 Symfony\Component\Process\Process::__construct(""D:\php8_0_3\php.exe" J:\prj_developer\www\amago_sgi/composer.phar dump-autoload")

2 \path\of\the\application\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36 CodexShaper\Menu\Commands\InstallMenuBuilder::handle(Object(Illuminate\Filesystem\Filesystem)) `

locopine avatar Sep 03 '21 03:09 locopine