-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MonologBundle error on install #30
Comments
Sounds like it didn't install correctly. Try: |
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException] Also tried to use update and not working. |
OK something looks very wrong. Did it not install the monolog bundle when you ran install? Are you sure you have |
I deleted the monolog stuff out of config_dev.yml and ran update again and now it put the info into config_prod.yml instead and seems happy :P |
Well it shouldn't add the appkernel line automatically so that's alright, but the rest sounds quite strange indeed. That said unless you can reproduce the problem reliably it's a bit hard to fix anything. I will close this for now since it seems to be resolved. |
I am also having the problem described about re; monolog-bundle: PHP Fatal error: Class 'Symfony\Bundle\MonologBundle\MonologBundle' not found in /Library/WebServer/Documents/myProject/app/AppKernel.php on line 14 I also get the error re; cache:clear --no-warm-up command I most definitely have vendor/symfony-monolog-bundle installed and everything was fine until I ran composer install (monolog was installed a while ago, so shouldn't have been affected by composer). @Seldaek I am going to do as you suggested and delete the bundle then re-install. I will post here to say whether or not it worked. |
OK, it didn't fix it. Commenting out the reference to MonologBundle() in AppKernel.php and running composer install (where Monolog Bundle is required) gave me this error: There is no extension able to load the configuration for "monolog" (in /Library/WebServer/Documents/myProject/app/config/config_dev.yml). Looked for namespace "monolog", {found ...big long list of things} So, I removed all references to monolog from the config_dev.yml and config_prof.yml files and tried composer install again, which gave me this: [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] So, I rolled back all deletetions/ commenting out and I'm back to square one. Any ideas why this is happening? |
@Tocacar no idea which versions of what you have now, but I would recommend just removing vendor/symfony and vendor/monolog then running composer update to get the latest versions of everything in compatible ways. |
@Seldaek Thanks for your quick response. I tried that and it has fixed the problem - thank you. |
I had the same problem. I removed vendor/symfony/monolog-bundle as suggested, but before running "composer.phar update" for second time, I executed "composer.phar self-update", because on first update, it told "Warning: This development build of composer is over 30 days old...." After that everything was fine. And after running "composer.phar self-update", "composer.phar update" made extra update for symfony/swiftmailer-bundle. So, I think cause of problem could be outdated composer.phar. |
I just ran into the same problem. What fixed it for me was just running There was some |
I ran into this problem: [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] The service "sonata.cache.invalidation.simple" has a dependency on a non-existent service "logger". and tried all the solutions tried here. I could only fix this by patching Resources/config/cache.xml in sonata-project/cache-bundle: remove <argument type="service" id="logger" /> and add <argument type="service" id="mailer" /> |
I was doing:
php composer.phar update
and gotUpdating monolog/monolog (dev-master 52b454f => 1.2.1)
Checking out 1.2.1
Updating symfony/monolog-bundle (dev-master v2.1.5 => 2.1.x-dev v2.2.0-BETA1)
Checking out v2.2.0-BETA1
...
PHP Fatal error: Class 'Symfony\Bundle\MonologBundle\MonologBundle' not found in /srv/www/htdocs/icms/app/AppKernel.php on line 10
PHP Stack trace:
...
Fatal error: Class 'Symfony\Bundle\MonologBundle\MonologBundle' not found in /srv/www/htdocs/icms/app/AppKernel.php on line 10
...
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.
Now every time I run
php app/console cache:clear
now I get the error as well.The text was updated successfully, but these errors were encountered: