Kunstmaan / KunstmaanBundlesStandardEdition

The "Kunstmaan Bundles Standard Edition" distribution
http://bundles.kunstmaan.be
MIT License
89 stars 39 forks source link

Fresh installation failed #154

Closed laymain closed 9 years ago

laymain commented 9 years ago

Hi,

When I follow the first step of the installation guide, it fails with the following error:

  [Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException]
  You have requested a non-existent parameter "sm*".

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

  [RuntimeException]
  An error occurred when executing the ""cache:clear --no-warmup"" command.
laymain commented 9 years ago

I have found where this issue came from, I had special chars in my secret token including '%':

# This file is auto-generated during the composer install
parameters:
...
    secret: 'h)j%%s^1395cueqw^8irewts=bhag%sm*%v8!#j!q3=c5y(@@h'
...

Special chars in parameters.yml should be escaped '%' -> '%%'

laymain commented 9 years ago

Why closing this issue? The bug still persists

laymain commented 9 years ago

Oh my bad, that's not a bug, it's linked to Symfony2 and detailed in their documentation http://symfony.com/doc/current/book/service_container.html#service-parameters

denbatte commented 9 years ago

I was a bit confused because this was linked to a other issue that you closed yourself.

Anyway, glad it has been fixed. Thank you for adding a link to the documentation with it. For future reference: Seems you need to escape a @ with a extra @ and a % with a extra %.