AppKernel.php
...
//new Bc\Bundle\BootstrapBundle\BcBootstrapBundle(), <= substituir ou comentar linha
new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle(), <= inserir
....
Resolveu o problema da linha 24, mas apareceram outros no meu caso e ainda não resolv
O proximo erro..
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "/srv/gerente/app/config/config.yml" from "/srv/gerente/app/config/config_dev.yml". (There is no extension able to load the configuration for "bc_bootstrap" (in /srv/gerente/app/config/config.yml). Looked for namespace "bc_bootstrap", found "framework", "security", "twig", "monolog", "swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "jms_aop", "jms_di_extra", "jms_security_extra", "cacic_common", "braincrafted_bootstrap", "cacic_relatorio", "cacic_ws", "knp_paginator", "jms_translation", "ijanki_ftp", "fm_elfinder", "web_profiler", "sensio_distribution")
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
There is no extension able to load the configuration for "bc_bootstrap" (in /srv/gerente/app/config/config.yml). Looked for namespace "bc_bootstrap", found "framework", "security", "twig", "monolog", "swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "jms_aop", "jms_di_extra", "jms_security_extra", "cacic_common", "braincrafted_bootstrap", "cacic_relatorio", "cacic_ws", "knp_paginator", "jms_translation", "ijanki_ftp", "fm_elfinder", "web_profiler", "sensio_distribution"
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.
Resolução:
No arquivo config.yml
....
# Twig Configuration
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
globals:
cacic_version: 3.0.0
form:
resources:
- "BraincraftedBootstrapBundle:Form:form_div_layout.html.twig" (linha alterada)
braincrafted_bootstrap: (linha alterada)
assets_dir: "%kernel.root_dir%/../vendor/twitter/bootstrap"
jquery_path: "%kernel.root_dir%/../vendor/jquery/jquery/jquery-1.9.1.js"
less_filter: lessphp
............
Mas ainda apresenta erro o seguinte erro:
PHP Warning: constant(): Couldn't find constant Monolog\Logger::DEBUG in /srv/gerente/vendor/symfony/monolog-bundle/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php on line 110
PHP Warning: constant(): Couldn't find constant Monolog\Logger::INFO in /srv/gerente/vendor/symfony/monolog-bundle/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php on line 110
PHP Fatal error: Class 'Monolog\Logger' not found in /srv/gerente/vendor/symfony/monolog-bundle/Symfony/Bundle/MonologBundle/DependencyInjection/Compiler/DebugHandlerPass.php on line 54
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.
Autor: Joao Mendes
77 comentários
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
Installing assets for Cacic\CommonBundle into web/bundles/caciccommon
Installing assets for Cacic\RelatorioBundle into web/bundles/cacicrelatorio
Installing assets for JMS\TranslationBundle into web/bundles/jmstranslation
Installing assets for FM\ElfinderBundle into web/bundles/fmelfinder
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
root@srvcacic:/srv/gerente# php app/console assetic:dump
Dumping all dev assets.
Debug mode is on. 17:21:39 [dir+] /srv/gerente/app/../web/assets
17:21:39 [file+] /srv/gerente/app/../web/assets/login_part_1.js
17:21:40 [dir+] /srv/gerente/app/../web/js
17:21:40 [file+] /srv/gerente/app/../web/js/jquery_jquery-1.9.1_1.js
17:21:40 [file+] /srv/gerente/app/../web/assets/base_part_3.js [RuntimeException]
The source file "/srv/gerente/app/../vendor/twitter/bootstrap/js/transition.js" does not exist.
- { resource: parameters.yml }
- { resource: security.yml } framework:
#esi: ~
translator: { fallback: en }
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routing.yml"
strict_requirements: "%kernel.debug%"
form: true
csrf_protection: true
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
default_locale: "%locale%"
trusted_proxies: ~
session: ~ # Twig Configuration
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
globals:
cacic_version: 3.0.0
form:
resources:
- "BraincraftedBootstrapBundle:Form:bootstrap.html.twig" braincrafted_bootstrap:
auto_configure:
assetic: false
twig: true
knp_menu: true
knp_paginator: true # Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: false
bundles: [ CacicCommonBundle, CacicRelatorioBundle, FMElfinderBundle, CocarBundle ]
java: /usr/bin/java
filters:
#closure:
# jar: %kernel.root_dir%/Resources/java/compiler.jar
#yui_css:
# jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
cssembed:
jar: "%kernel.root_dir%/Resources/java/cssembed-0.4.5.jar"
yui_js:
jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.2.jar"
yui_css:
jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.2.jar"
lessphp:
file: "%kernel.root_dir%/../vendor/leafo/lessphp/lessc.inc.php"
apply_to: "\.less$"
less:
node: /usr/local/bin/node
node_paths: [/usr/local/lib/node_modules/]
apply_to: "\.less$"
cssrewrite: ~
assets:
bootstrap_css:
inputs:
- %kernel.root_dir%/../vendor/twbs/bootstrap/less/bootstrap.less
- %kernel.root_dir%/../vendor/braincrafted/bootstrap-bundle/Braincrafted/Bundle/BootstrapBundle/Resources/less/form.less
filters:
- less
- cssrewrite
output: css/bootstrap.css
bootstrap_js:
inputs:
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/transition.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/alert.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/button.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/carousel.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/collapse.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/dropdown.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/modal.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/tooltip.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/popover.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/scrollspy.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/tab.js
- %kernel.root_dir%/../vendor/twbs/bootstrap/js/affix.js
- %kernel.root_dir%/../vendor/braincrafted/bootstrap-bundle/Braincrafted/Bundle/BootstrapBundle/Resources/js/bc-bootstrap-collection.js
output: js/bootstrap.js
jquery_js:
inputs:
- "%kernel.root_dir%/../vendor/jquery/jquery/jquery-1.10.2.js"
output: js/jquery.js
filters: [?yui_js]
bootstrap_less:
inputs:
- '%kernel.root_dir%/../vendor/twbs/bootstrap/less/bootstrap.less'
filters: [less,cssembed] # Doctrine Configuration
doctrine:
dbal:
driver: "%database_driver%"
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8 orm:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true # Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
host: "%mailer_host%"
username: "%mailer_user%"
password: "%mailer_password%"
spool:
type: file
path: "%kernel.root_dir%/spool" # KNP Paginator Configuration
knp_paginator:
page_range: 5 # default page range used in pagination control
default_options:
page_name: page # page query parameter name
sort_field_name: sort # sort field query parameter name
sort_direction_name: direction # sort direction query parameter name
distinct: true # ensure distinct results, useful when ORM queries are using GROUP BY statements
template:
pagination: KnpPaginatorBundle:Pagination:sliding.html.twig # sliding pagination controls template
sortable: KnpPaginatorBundle:Pagination:sortable_link.html.twig # sort link template # Configuration for FMElFinderBundle
fm_elfinder:
locale: %locale%
editor: simple
compression: false
connector:
roots:
downloads:
driver: elfinder.driver.filesystem
path: downloads jms_translation:
configs:
app:
dirs: [%kernel.root_dir%, %kernel.root_dir%/../app]
output_dir: %kernel.root_dir%/Resources/translations
ignored_domains: [routes]
excluded_names: [*TestCase.php, *Test.php]
excluded_dirs: [cache, data, logs]
#extractors: [alias_of_the_extractor]
src:
dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
output_dir: %kernel.root_dir%/../src/Cacic/CommonBundle/Resources/translations
ignored_domains: [routes]
excluded_names: [*TestCase.php, *Test.php]
excluded_dirs: [Common, Entity, Form]
#extractors: [alias_of_the_extractor] doctrine_migrations:
dir_name: %kernel.root_dir%/../src/Cacic/CommonBundle/DoctrineMigrations
namespace: Cacic\CommonBundle\Migrations
table_name: migration_versions
name: Cacic Migrations services:
twig.text_extension:
class: Twig_Extensions_Extension_Text
tags:
- name: twig.extension
elfinder.driver.filesystem:
class: FM\ElFinderPHP\Driver\ElFinderVolumeLocalFileSystem
cacic_demo.command.demo_command:
class: Cacic\CommonBundle\Command\DemoCommand
tags:
- { name: console.command }
cacic_demo.command.upgrade_command:
class: Cacic\CommonBundle\Command\UpgradeCommand
tags:
- { name: console.command } config_dev.yml imports:
- { resource: config.yml } framework:
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
profiler: { only_exceptions: false } web_profiler:
toolbar: true
intercept_redirects: false monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
firephp:
type: firephp
level: info assetic:
use_controller: true swiftmailer:
delivery_address: www-data@localhost
sender_address: cacic@localhost
Usuário do Servidor de Updates (para AGENTE)
Eu coloquei o do ftp: ftpcacic Senha: ****** Usuário de Servidor para Updates(PARA AGENTES): Botei usuário: admin Senha: 123456 Path no Servidor de Updates Este eu coloquei: /agentes Estaria correto as configurações? Minha rede é: 192.168.1.0 /24 Fico no aguardo...