Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"An error occured when executing the cache:clear --no-warmup" while installing symfony-cmf-standard

I was trying to install symfony-cmf-standard using:

composer.phar create-project symfony-cmf/standard-edition symfony-cmf-standard/ --stability=dev

But I am getting the following error:

Could not open input file: app/console
Script sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception

[RuntimeException]
An error occured when executing the cache:clear --no-warmup

I am running the command as an Administrator so it should not be a permission issue.

like image 347
vishal Avatar asked Feb 15 '13 10:02

vishal


2 Answers

It gives error as when we use the command,

composer.phar create-project symfony-cmf/standard-edition symfony-cmf-standard/ --stability=dev

It creates symfony-cmf-standard folder as a project folder and starts installing dependencies but in between it tries to clear cache using

php app/console cache:clear

But as the current location is outside of the project folder it can not locate app/console so it fails.

Now if we change the directory to inside the project folder and clear cache manually by using command

php app/console cache:clear 

It clears cache and then we need to again update dependencies using

php composer.phar update 

It worked for me.

like image 91
vishal Avatar answered Nov 16 '22 03:11

vishal


On my side with php7.0 I had to install :

  • php7.0-mbstring
  • php7.0-xml

Then it worked :)

like image 40
Ssh-uunen Avatar answered Nov 16 '22 02:11

Ssh-uunen