error: Installing the Aimeos shop bundle
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
error: Installing the Aimeos shop bundle
Help me please. I do everything as instructed https://github.com/aimeos/aimeos-symfony
used symfony vagrant homestead, db pgsql
my settings:
.env
doctrine.yaml
I want to add bundle aimeos shop to an existing project and also made a new project as written in the instructions. Always the same error:
used symfony vagrant homestead, db pgsql
my settings:
.env
Code: Select all
DATABASE_URL="postgresql://homestead:secret@127.0.0.1:5432/myshop"
Code: Select all
doctrine:
dbal:
url: '%env(resolve:DATABASE_URL)%'
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '13'
orm:
auto_generate_proxy_classes: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
parameters:
env(DATABASE_URL): 'postgresql://homestead:secret@127.0.0.1:5432/myshop'
database_host: 127.0.0.1
database_port: 5432
database_name: myshop
database_user: homestead
database_password: secret
I want to add bundle aimeos shop to an existing project and also made a new project as written in the instructions. Always the same error:
Code: Select all
> Aimeos\ShopBundle\Composer\ScriptHandler::installBundle
Installing the Aimeos shop bundle
> Aimeos\ShopBundle\Composer\ScriptHandler::setupDatabase
In Process.php line 143:
[TypeError]
Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given, called in /home/vagrant/projec
ts/myshop/vendor/aimeos/aimeos-symfony/Composer/ScriptHandler.php on line 137
Exception trace:
at phar:///usr/local/bin/composer/vendor/symfony/process/Process.php:143
Symfony\Component\Process\Process->__construct() at /home/vagrant/projects/myshop/vendor/aimeos/aimeos-symfony/Composer/ScriptHandler.php:137
Aimeos\ShopBundle\Composer\ScriptHandler::executeCommand() at /home/vagrant/projects/myshop/vendor/aimeos/aimeos-symfony/Composer/ScriptHandler.php:41
Aimeos\ShopBundle\Composer\ScriptHandler::setupDatabase() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:386
Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:246
Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:123
Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar:///usr/local/bin/composer/src/Composer/Installer.php:374
Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/UpdateCommand.php:240
Composer\Command\UpdateCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:298
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:1028
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:299
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:370
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:138
Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:88
require() at /usr/local/bin/composer:29