2016-02-23 64 views
0

嘿,大家好我嘗試添加的捆綁NomayaSocialBundle,我得到這個錯誤安裝nomayaBundle錯誤

[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更新nomaya /社交束

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>]... 
+0

你已經添加了一些連接到bundle的配置到config.yml嗎? –

+0

@PawełMikołajczuk是的,我沒有 –

+0

你可以檢查我的答案,並告訴我們你的配置從config.yml包? –

回答

0

你可能已經加入捆綁類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叫 - 它應該清除緩存沒有問題。