Assetic \ AssetWriter :: getCombinations () method no exception exists when deploying symfony2 using capifony

My deployment does not work on call:

cd /var/www/prod/releases/20130513164742 && php app/console assetic:dump --env=prod --no-debug 

My setup worked fine, but today I can’t deploy it with the cap deploy command I checked by cloning the repo in my prod environment and doing php app/console assetic:dump --env=prod --no-debug (in dev mode) and it worked fine!

Any idea?

  ** [out :: prod] executing "sh -c 'cd /var/www/prod/releases/20130513164742 && php app/console assetic:dump --env=prod --no-debug'" ** [out :: prod] PHP Deprecated: getEntityManager is deprecated since Symfony 2.1. Use getManager instead in /var/www/prod/shared/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle/Registry.php on line 71 ** [out :: prod] Dumping all prod assets. ** [out :: prod] Debug mode is off. ** [out :: prod] ** [out :: prod] ** [out :: prod] ** [out :: prod] ** [out :: prod] [ReflectionException] ** [out :: prod] Method Assetic\AssetWriter::getCombinations() does not exist ** [out :: prod] ** [out :: prod] ** [out :: prod] ** [out :: prod] assetic:dump [--watch] [--force] [--period="..."] [write_to] ** [out :: prod] ** [out :: prod] 

Edit:

after updating the provider on my git clone I get this error

 www-data@Prod:~/prod/dev$ php app/console assetic:dump --env=prod --no-debug PHP Catchable fatal error: Argument 2 passed to Doctrine\Bundle\DoctrineBundle\ManagerConfigurator::__construct() must be an array, none given, called in /var/www/prod/dev/app/cache/prod/appProdProjectContainer.php on line 116 and defined in /var/www/prod/dev/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle/ManagerConfigurator.php on line 35 
+8
symfony deployment assetic capifony
source share
2 answers

https://github.com/kriswallsmith/assetic/issues/412

Add "kriswallsmith/assetic": "v1.1.0-alpha4" ,

into your composer.json file and update again

You want to change this when you fixed the problem.

EDIT:

For the record, switching to "symfony/symfony": "2.3.*" Now works, not specified above

+19
source share

If anyone else has probelm after adding:

kriswallsmith/assetic": "v1.1.0-alpha4

You probably need to change the version for symfony/assetic-bundle to 2.3.* (I have 2.1 ) and update again:

Php composer.phar update

+5
source share

All Articles