嘿伙计们我正在尝试添加捆绑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>]...
答案 0 :(得分:0)
您可能已将捆绑类添加到AppKernel,此捆绑包需要从app config进行配置。
只需将缺少的配置添加到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
- 它应该清除缓存而不会出现问题。