Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

locopine
Copy link

@locopine locopine commented Sep 3, 2021

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))
`

divergent from package downloaded by composer.
Execution of the command "composer dump-autoload" passed in array,
as required by the "Process" class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant