symfony - InvalidArgumentException: The file "/var/www/html/secerp/app/config/config_.yml" does not exist -
i have problem after installation of fosuserbundle cannot access symfony anymore. every command returns
[invalidargumentexception] file "/var/www/html/secerp/app/config/config_.yml" not exist.
seems lost this->environment infomation of app/appkernel
public function registercontainerconfiguration(loaderinterface $loader) { $loader->load($this->getrootdir().'/config/config_'.$this->getenvironment().'.yml'); }
changes did before:
[root@symfony secerp]# composer require friendsofsymfony/user-bundle "~2.0@dev" ./composer.json has been updated loading composer repositories package information updating dependencies (including require-dev) nothing install or update generating autoload files > incenteev\parameterhandler\scripthandler::buildparameters updating "app/config/parameters.yml" file > sensio\bundle\distributionbundle\composer\scripthandler::buildbootstrap > sensio\bundle\distributionbundle\composer\scripthandler::clearcache clearing cache dev environment debug true > sensio\bundle\distributionbundle\composer\scripthandler::installassets trying install assets symbolic links. installing assets symfony\bundle\frameworkbundle web/bundles/framework assets installed using symbolic links. installing assets sensio\bundle\distributionbundle web/bundles/sensiodistribution assets installed using symbolic links. > sensio\bundle\distributionbundle\composer\scripthandler::installrequirementsfile > sensio\bundle\distributionbundle\composer\scripthandler::removesymfonystandardfiles > sensio\bundle\distributionbundle\composer\scripthandler::preparedeploymenttarget [root@symfony secerp]# cd vendor/ autoload.php doctrine/ incenteev/ kriswallsmith/ psr/ sensiolabs/ symfony/ composer/ friendsofsymfony/ jdorn/ monolog/ sensio/ swiftmailer/ twig/ [root@symfony secerp]# cd vendor/ autoload.php doctrine/ incenteev/ kriswallsmith/ psr/ sensiolabs/ symfony/ composer/ friendsofsymfony/ jdorn/ monolog/ sensio/ swiftmailer/ twig/ [root@symfony secerp]# php app/console cache:clear --env=prod [invalidargumentexception] file "/var/www/html/secerp/app/config/config_.yml" not exist.
can me fix problem or had same problem before?
edit: running composer update again leads following results:
[root@symfony secerp]# composer update loading composer repositories package information updating dependencies (including require-dev) nothing install or update generating autoload files > incenteev\parameterhandler\scripthandler::buildparameters updating "app/config/parameters.yml" file > sensio\bundle\distributionbundle\composer\scripthandler::buildbootstrap > sensio\bundle\distributionbundle\composer\scripthandler::clearcache [symfony\component\dependencyinjection\exception\runtimeexception] string value must composed of strings and/or numbers, found parameter "kernel.environment" of type null inside string value "%kernel.logs_dir%/%kernel.environment%.log". script sensio\bundle\distributionbundle\composer\scripthandler::clearcache handling post-update-cmd event terminated exception [runtimeexception] error occurred when executing "'cache:clear --no-warmup'" command. 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] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [packages1] ... [packagesn]
with following error when access page:
runtimeexception in parameterbag.php line 251: string value must composed of strings and/or numbers, found parameter "kernel.environment" of type null inside string value "%kernel.logs_dir%/%kernel.environment%.log". in parameterbag.php line 251 @ parameterbag->symfony\component\dependencyinjection\parameterbag\{closure}(array('%kernel.environment%', 'kernel.environment')) @ preg_replace_callback('/%%|%([^%\s]+)%/', object(closure), '%kernel.logs_dir%/%kernel.environment%.log') in parameterbag.php line 258 @ parameterbag->resolvestring('%kernel.logs_dir%/%kernel.environment%.log', array()) in parameterbag.php line 203 @ parameterbag->resolvevalue('%kernel.logs_dir%/%kernel.environment%.log', array()) in parameterbag.php line 193 @ parameterbag->resolvevalue(array('type' => 'stream', 'path' => '%kernel.logs_dir%/%kernel.environment%.log', 'level' => 'debug'), array()) in parameterbag.php line 193 @ parameterbag->resolvevalue(array('main' => array('type' => 'stream', 'path' => '%kernel.logs_dir%/%kernel.environment%.log', 'level' => 'debug'), 'console' => array('type' => 'console', 'bubble' => false, 'verbosity_levels' => array('verbosity_verbose' => 'info', 'verbosity_very_verbose' => 'debug'), 'channels' => array('!doctrine')), 'console_very_verbose' => array('type' => 'console', 'bubble' => false, 'verbosity_levels' => array('verbosity_verbose' => 'notice', 'verbosity_very_verbose' => 'notice', 'verbosity_debug' => 'debug'), 'channels' => array('doctrine'))), array()) in parameterbag.php line 193 @ parameterbag->resolvevalue(array('handlers' => array('main' => array('type' => 'stream', 'path' => '%kernel.logs_dir%/%kernel.environment%.log', 'level' => 'debug'), 'console' => array('type' => 'console', 'bubble' => false, 'verbosity_levels' => array('verbosity_verbose' => 'info', 'verbosity_very_verbose' => 'debug'), 'channels' => array('!doctrine')), 'console_very_verbose' => array('type' => 'console', 'bubble' => false, 'verbosity_levels' => array('verbosity_verbose' => 'notice', 'verbosity_very_verbose' => 'notice', 'verbosity_debug' => 'debug'), 'channels' => array('doctrine')))), array()) in parameterbag.php line 193 @ parameterbag->resolvevalue(array(array('handlers' => array('main' => array('type' => 'stream', 'path' => '%kernel.logs_dir%/%kernel.environment%.log', 'level' => 'debug'), 'console' => array('type' => 'console', 'bubble' => false, 'verbosity_levels' => array('verbosity_verbose' => 'info', 'verbosity_very_verbose' => 'debug'), 'channels' => array('!doctrine')), 'console_very_verbose' => array('type' => 'console', 'bubble' => false, 'verbosity_levels' => array('verbosity_verbose' => 'notice', 'verbosity_very_verbose' => 'notice', 'verbosity_debug' => 'debug'), 'channels' => array('doctrine')))))) in mergeextensionconfigurationpass.php line 45 @ mergeextensionconfigurationpass->process(object(containerbuilder)) in mergeextensionconfigurationpass.php line 39 @ mergeextensionconfigurationpass->process(object(containerbuilder)) in compiler.php line 117 @ compiler->compile(object(containerbuilder)) in containerbuilder.php line 614 @ containerbuilder->compile() in bootstrap.php.cache line 2638 @ kernel->initializecontainer() in bootstrap.php.cache line 2411 @ kernel->boot() in bootstrap.php.cache line 2442 @ kernel->handle(object(request)) in app_dev.php line 28
i have generated symfony-project folder , moved source-files in it. no idea went wrong...
Comments
Post a Comment