Symfony2 error on command line - symfony

When i try to update with composer, or clear cache, or other command i have :
[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: file_put_contents(/vagrant/crm_neo/app/cache/dev/assetic/routing.yml): failed to open stream: No such file or directory in /vagrant/crm_neo/vendor/symfony/assetic-bundle/Symfony/Bundle/AsseticBundle/DependencyInjection/Compiler/RouterResourcePass.php line 43
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.
What can i do ? Thanks !

Related

How to resolve the error in oozie compilation

I'm getting the following error in oozie compilation.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project oozie-core: Compilation failure
[ERROR] error: error reading /home/oozie/.m2/repository/javax/jdo/jdo2-api/2.3-ec/jdo2-api-2.3-ec.jar; error in opening zip file.
Please help me to rectify this.

Bootstrap 3 in Symfony2

I'm trying to use bootstrap in my symfony project . But when I configure json file through this error. However I have included
new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle()
I have looked up from here
error:
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:
PHP Fatal error: Class 'Braincrafted\Bundle\BootstrapBundle\BraincraftedBo
otstrapBundle' not found in /home/kanat/Public/bootstrap/app/AppKernel.php
I have looked up from here
like the error says, its having touble clearing the cache, that could be a directory permission issue,set the folder permissions to read write and execute and then try to clear cache again, (in linux it would be sudo chmod -R 777 *)

Drupal have error Fatal error: require_once(): Failed opening required

Fatal error: require_once(): Failed opening required '/home/webmaster/main/sites/all/modules/advanced_forum/includes/views/advanced_forum_handler_field_node_topic_iconinc' (include_path='.:/usr/share/php:/usr/share/pear') in /home/webmaster/main/includes/bootstrap.inc on line 3186
I update module after that have error.
First, check integrity of your module.
Second, if your module is okay use registry_rebuild. Place it on your sites/all/modules folder and call (registry_rebuild.php).
Example with your browser : http://yourdomain.local/sites/all/modules/registry_rebuild/registry_rebuild.php

An error occurred when executing the "'cache:clear --no-warmup'" command

[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
i like to upgrade my symfony2.0 project to symfony 2.3 .
https://github.com/symfony/symfony-standard/blob/v2.3.1/UPGRADE.md
i followed above one to upgrade my project .But i'm facing following errors
[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.
run sudo php composer.phar update --no-scripts
I had the same error. I tried to run
php app/console
and got another error. I fixed this error and afterwards I could update without this unspecific error.

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to load class "Twig_Extension_Escaper"'

I have this error in my system in the production server, but I have no idea why cause in my development server everything run fine.
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Unable to load class "Twig_Extension_Escaper"' in /home/content/79/11253479/html/witf/path/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php:259 Stack trace: #0 /home/content/79/11253479/html/witf/path/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php(98): Symfony\Component\ClassLoader\ClassCollectionLoader::getOrderedClasses(Array) #1 /home/content/79/11253479/html/witf/path/app/bootstrap.php.cache(2303): Symfony\Component\ClassLoader\ClassCollectionLoader::load(Array, '/home/content/7...', 'classes', false, false, '.php') #2 /home/content/79/11253479/html/witf/path/app/bootstrap.php.cache(2139): Symfony\Component\HttpKernel\Kernel->doLoadClassCache('classes', '.php') #3 /home/content/79/11253479/html/witf/path/app/bootstrap.php.cache(2173): Symfony\Component\HttpKernel\Kernel->boot() #4 /home/content/79/11253479/html/index.php(27): Symfony\Component\HttpKernel\Kernel->handle(Object(S in /home/content/79/11253479/html/witf/path/vendor/symfony/symfony/src/Symfony/Component/ClassLoader/ClassCollectionLoader.php on line 259
please try composer update -o and afterwards app/console cache:clear --env=prod.
Further check that the file vendor/twig/twig/lib/Twig/Extension/Escaper.php actually exists on your production server.

Resources