安装nomayaBundle报错

installing nomayaBundle error

大家好,我正在尝试添加捆绑包 NomayaSocialBundle,但出现此错误

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "buttons" at path "nomaya_social" must be configured.

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:
    [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "buttons" at path "nomaya_social" must be configured.

我真的不知道如何修复它所以这是我在执行命令后得到的 php composer.phar update nomaya/social-bundle

    C:\wamp\www\MTOCrowdRise>php -r "eval('>'.file_get_contents('https://getcomposer.org/installer'));"
enter code here`All settings correct for using Composer
Downloading...
Composer successfully installed to: C:\wamp\www\MTOCrowdRise\composer.phar
Use it: php composer.phar
C:\wamp\www\MTOCrowdRise>php composer.phar update nomaya/social-bundle
You are running composer with xdebug enabled. 
This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Updating dependencies (including require-dev)
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "buttons" at path "nomaya_social" must be configured.

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:
    [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
The child node "buttons" at path "nomaya_social" must be configured.

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] 
[--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] 
[--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]
 [-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] 
[--prefer-lowest] [-i|--interactive] [--] [<packages>]...

您可能已经将捆绑包 class 添加到 AppKernel,并且此捆绑包需要从应用程序配置中进行配置。

只需将缺少的配置添加到 config.yml(最小的一个):

nomaya_social:
    buttons:
        facebook:
            url:            null
            locale:         "fr_FR"
            send:           false
            width:          300
            showFaces:      false
            layout:         "button_count"
    links: 
        facebook:           "http://www.facebook.com/yann.chauvel"
        googleplus:         "https://plus.google.com/105931415830389032796"

并手动调用 php app/console cache:clear - 它应该可以毫无问题地清除缓存。