2

I got following error when I update the composer.phar...

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
 Unrecognized options "gaufrette" under "vich_uploader"



 Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception



[RuntimeException]
 An error occurred when executing the "'cache:clear --no-warmup'" command.

Here is my Vich Uploader Configuration

   vich_uploader:
   db_driver: orm
    gaufrette: true
    storage: vich_uploader.storage.gaufrette

and i got this error...

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
 Unrecognized options "gaufrette" under "vich_uploader"

please let me know why it happened?

Matteo
  • 37,680
  • 11
  • 100
  • 115
ganesh
  • 61
  • 6

1 Answers1

4

Check the indentation of your config.yml, the options "gaufrette" is not under "vich_uploader" but as storage value, as example:

vich_uploader:
    db_driver: orm
    storage:   gaufrette

See the doc for further details

hope this help

Matteo
  • 37,680
  • 11
  • 100
  • 115
  • ok, i edit your question with your configuration. Try removing the `gaufrette:true`from the config in accordion with the [doc](https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/storage/gaufrette.md#configuration) – Matteo Dec 17 '14 at 09:10
  • always view the `gaufrette`key? have you remove correctly? – Matteo Dec 17 '14 at 09:43