我想在 Windows 8 xampp 上安装奏鸣曲。
我使用命令 php composer.phar create-project sonata-project/sandbox:2.3.x-dev 下载后出现错误。我发现错误对我来说是 2 行:
在 bin\load.data.php
rm -rf ./app/cache/*
我可以评论
-d memory_limit=1024M -d max_execution_time=600 ./app/console doctrine:fixtures:load --verbose --env=dev --no-debug
如果我将内存限制增加到 1024m 并将时间增加到 600 in
php.ini
并删除该部分,我仍然会收到此错误:Executing : C:\Users\Felek\Desktop\xampp\php\php.exe ./app/console doctrine:fix tures:load --verbose --env=dev --no-debug Careful, database will be purged. Do you want to continue Y/N ? [RuntimeException] Aborted Exception trace: () at C:\Users\Felek\Desktop\xampp\htdocs\sonata\sandbox\vendor\symfony\symfony \src\Symfony\Component\Console\Helper\DialogHelper.php:115 Symfony\Component\Console\Helper\DialogHelper->ask() at C:\Users\Felek\Desktop\ xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\src\Symfony\Component\Console \Helper\DialogHelper.php:242 Symfony\Component\Console\Helper\DialogHelper->askConfirmation() at C:\Users\Fe lek\Desktop\xampp\htdocs\sonata\sandbox\vendor\doctrine\doctrine-fixtures-bundle \Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand.php:73 Doctrine\Bundle\FixturesBundle\Command\LoadDataFixturesDoctrineCommand->execute () at C:\Users\Felek\Desktop\xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\ src\Symfony\Component\Console\Command\Command.php:252 Symfony\Component\Console\Command\Command->run() at C:\Users\Felek\Desktop\xamp p\htdocs\sonata\sandbox\vendor\symfony\symfony\src\Symfony\Component\Console\App lication.php:896 Symfony\Component\Console\Application->doRunCommand() at C:\Users\Felek\Desktop \xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\src\Symfony\Component\Consol e\Application.php:193 Symfony\Component\Console\Application->doRun() at C:\Users\Felek\Desktop\xampp\ htdocs\sonata\sandbox\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\ Console\Application.php:96 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at C:\Users\Felek\D esktop\xampp\htdocs\sonata\sandbox\vendor\symfony\symfony\src\Symfony\Component\ Console\Application.php:124 Symfony\Component\Console\Application->run() at C:\Users\Felek\Desktop\xampp\ht docs\sonata\sandbox\app\console:34 doctrine:fixtures:load [--fixtures[="..."]] [--append] [--em="..."] [--purge-wit h-truncate] An error occurs when running a command!
我尝试再次删除并安装数据库,但没有任何结果。我能做些什么来解决这个错误?