Symfony Sylius安装失败

时间:2015-07-23 09:39:15

标签: symfony sylius

我正在尝试在https://github.com/Sylius/Syliushttp://sylius.org/get-started之后安装Sylius但是没有办法,我总是在终端中收到错误:

[2015-07-21 17:51:59] php.DEBUG: "Symfony\Component\Console\Helper\TableHelper" is deprecated since version 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\Table" instead. {"type":16384,"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Helper\HelperSet.php","line":86,"level":4352} []
[2015-07-21 17:51:59] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2015-07-21 17:51:59] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2015-07-21 17:52:00] doctrine.DEBUG: SHOW DATABASES [] []
[2015-07-21 17:52:00] php.DEBUG: "Symfony\Component\Console\Helper\ProgressHelper" is deprecated since version 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\ProgressBar" instead. {"type":16384,"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Helper\HelperSet.php","line":84,"level":4352} []
[2015-07-21 17:52:00] event.DEBUG: Notified event "console.command" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". [] []
[2015-07-21 17:52:00] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2015-07-21 17:52:00] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2015-07-21 17:52:00] event.DEBUG: Notified event "console.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] []
[2015-07-21 17:52:00] php.CRITICAL: Uncaught Exception: The command terminated with an error code: 1. {"type":1,"file":"E:\_projects\symfony\sylius-standard\vendor\sylius\sylius\src\Sylius\Bundle\InstallerBundle\Command\CommandExecutor.php","line":81,"level":16383,"stack":[{"file":"E:\_projects\symfony\sylius-standard\vendor\sylius\sylius\src\Sylius\Bundle\InstallerBundle\Command\AbstractInstallCommand.php","line":122,"function":"runCommand","class":"Sylius\Bundle\InstallerBundle\Command\CommandExecutor","type":"->","args":["doctrine:database:create",[]]},{"file":"E:\_projects\symfony\sylius-standard\vendor\sylius\sylius\src\Sylius\Bundle\InstallerBundle\Command\InstallDatabaseCommand.php","line":50,"function":"runCommands","class":"Sylius\Bundle\InstallerBundle\Command\AbstractInstallCommand","type":"->","args":[["doctrine:database:create","doctrine:schema:create","cache:clear","doctrine:phpcr:repository:init"],"object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php","line":259,"function":"execute","class":"Sylius\Bundle\InstallerBundle\Command\InstallDatabaseCommand","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php","line":886,"function":"run","class":"Symfony\Component\Console\Command\Command","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php","line":195,"function":"doRunCommand","class":"Symfony\Component\Console\Application","type":"->","args":["object","object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php","line":96,"function":"doRun","class":"Symfony\Component\Console\Application","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php","line":126,"function":"doRun","class":"Symfony\Bundle\FrameworkBundle\Console\Application","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\sylius\sylius\src\Sylius\Bundle\InstallerBundle\Command\CommandExecutor.php","line":74,"function":"run","class":"Symfony\Component\Console\Application","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\sylius\sylius\src\Sylius\Bundle\InstallerBundle\Command\InstallCommand.php","line":48,"function":"runCommand","class":"Sylius\Bundle\InstallerBundle\Command\CommandExecutor","type":"->","args":["sylius:install:database",[],"object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php","line":259,"function":"execute","class":"Sylius\Bundle\InstallerBundle\Command\InstallCommand","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php","line":886,"function":"run","class":"Symfony\Component\Console\Command\Command","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php","line":195,"function":"doRunCommand","class":"Symfony\Component\Console\Application","type":"->","args":["object","object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php","line":96,"function":"doRun","class":"Symfony\Component\Console\Application","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php","line":126,"function":"doRun","class":"Symfony\Bundle\FrameworkBundle\Console\Application","type":"->","args":["object","object"]},{"file":"E:\_projects\symfony\sylius-standard\app\console","line":17,"function":"run","class":"Symfony\Component\Console\Application","type":"->","args":["object"]}]} []

以下是我日志的几行:

>php app/console doctrine:database:create
Created database for connection named `sylius`

有人能告诉我我做错了什么或遗失了吗?

-----------编辑

好吧,我删除了我之前创建的数据库,创建了trought终端,数据库创建效果很好:

Step 2 of 4. Setting up the database.
Creating Sylius database for environment dev.
The command terminated with an error code: 1.
PHP Fatal error:  Uncaught exception 'Exception' with message 'The command termi
nated with an error code: 1.' in E:\_projects\symfony\sylius\src\Sylius\Bundle\I
nstallerBundle\Command\CommandExecutor.php:81
Stack trace:
#0 E:\_projects\symfony\sylius\src\Sylius\Bundle\InstallerBundle\Command\Abstrac
tInstallCommand.php(122): Sylius\Bundle\InstallerBundle\Command\CommandExecutor-
>runCommand('doctrine:databa...', Array)
#1 E:\_projects\symfony\sylius\src\Sylius\Bundle\InstallerBundle\Command\Install
DatabaseCommand.php(50): Sylius\Bundle\InstallerBundle\Command\AbstractInstallCo
mmand->runCommands(Array, Object(Symfony\Component\Console\Input\ArrayInput), Ob
ject(Symfony\Component\Console\Output\ConsoleOutput))
#2 E:\_projects\symfony\sylius\vendor\symfony\symfony\src\Symfony\Component\Cons
ole\Command\Command.php(245): Sylius\Bundle\InstallerBundle\Command\InstallDatab
aseCommand->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(S
ymfony\Component\Console\Output\ConsoleOutput))
#3 E:\_projects\symfony\sylius\vendor\sy in E:\_projects\symfony\sylius\src\Syli
us\Bundle\InstallerBundle\Command\CommandExecutor.php on line 81

Fatal error: Uncaught exception 'Exception' with message 'The command terminated
 with an error code: 1.' in E:\_projects\symfony\sylius\src\Sylius\Bundle\Instal
lerBundle\Command\CommandExecutor.php on line 81

Exception: The command terminated with an error code: 1. in E:\_projects\symfony
\sylius\src\Sylius\Bundle\InstallerBundle\Command\CommandExecutor.php on line 81


Call Stack:
    0.0000     124368   1. {main}() E:\_projects\symfony\sylius\app\console:0
    0.1250    2980672   2. Symfony\Component\Console\Application->run() E:\_proj
ects\symfony\sylius\app\console:26

但是现在我在终端中遇到了不同的错误:

catch
{
    // handle exception
}

0 个答案:

没有答案
相关问题