This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Error during php app/console cache:clear

Discuss installing Symfony 2 here

Error during php app/console cache:clear

by alendo » Sun Jun 15, 2014 7:22 pm

I'm new of symfony2, I'm trying to install an existing symfony2 project, but when I exec
Code: Select all
php composer.phar install

I receive
Code: Select all
PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /Users/ale/Sites/agendadidattica/src/Agenda/CoreBundle/Command/InstallCommand.php on line 110
PHP Stack trace:
PHP   1. {main}() /Users/ale/Sites/agendadidattica/app/console:0
PHP   2. Symfony\Component\Console\Application->run() /Users/ale/Sites/agendadidattica/app/console:26
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124
PHP   4. Symfony\Component\HttpKernel\Kernel->boot() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:70
PHP   5. Symfony\Component\HttpKernel\Kernel->initializeContainer() /Users/ale/Sites/agendadidattica/app/bootstrap.php.cache:2275
PHP   6. Symfony\Component\DependencyInjection\ContainerBuilder->compile() /Users/ale/Sites/agendadidattica/app/bootstrap.php.cache:2496
PHP   7. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:613
PHP   8. Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass->process() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:117
PHP   9. ReflectionClass->__construct() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConsoleCommandPass.php:40
PHP  10. Symfony\Component\Debug\DebugClassLoader->loadClass() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConsoleCommandPass.php:0

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /Users/ale/Sites/agendadidattica/src/Agenda/CoreBundle/Command/InstallCommand.php on line 110

Call Stack:
    0.0002     232672   1. {main}() /Users/ale/Sites/agendadidattica/app/console:0
    0.0181    2889728   2. Symfony\Component\Console\Application->run() /Users/ale/Sites/agendadidattica/app/console:26
    0.0205    3092584   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124
    0.0205    3092888   4. Symfony\Component\HttpKernel\Kernel->boot() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:70
    0.0245    3309904   5. Symfony\Component\HttpKernel\Kernel->initializeContainer() /Users/ale/Sites/agendadidattica/app/bootstrap.php.cache:2275
    0.1008    7007744   6. Symfony\Component\DependencyInjection\ContainerBuilder->compile() /Users/ale/Sites/agendadidattica/app/bootstrap.php.cache:2496
    0.1021    7036896   7. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:613
    0.3641   15960584   8. Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass->process() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:117
    0.3647   15961824   9. ReflectionClass->__construct() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConsoleCommandPass.php:40
    0.3647   15962392  10. Symfony\Component\Debug\DebugClassLoader->loadClass() /Users/ale/Sites/agendadidattica/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConsoleCommandPass.php:0


I understood that the command that generates error is
Code: Select all
php app/console cache:clear


What can be wrong in the project?
alendo
Junior Member
 
Posts: 1
Joined: Sun Jun 15, 2014 7:13 pm