Comments (12)
Sounds like it didn't install correctly. Try: rm -rf vendor/symfony/monolog-bundle && php composer.phar install
from monolog-bundle.
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
There is no extension able to load the configuration for "monolog" (in /srv/www/htdocs/icms/app/config/config_dev.yml). Looked for namespace "monolog", found "framework", "security", "twig", "swiftmailer", "assetic", "doctrine", "doctrine_migrations", "sensio_framework_extra", "jms_aop", "jms_di_extra", "jms_security_extra", "icms_base_manager", "web_profiler", "sensio_distribution"
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.
Also tried to use update and not working.
from monolog-bundle.
OK something looks very wrong. Did it not install the monolog bundle when you ran install? Are you sure you have symfony/monolog-bundle
required in your composer.json?
from monolog-bundle.
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
It didn't add a line to AppKernal.php for it but when I added it back manually it seems to not give any errors so seem to have got it fixed I'd still like to know why it happened to start with through.
from monolog-bundle.
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.
from monolog-bundle.
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.
from monolog-bundle.
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]
The service "sonata.cache.invalidation.simple" has a dependency on a non-existent service "logger".
So, I rolled back all deletetions/ commenting out and I'm back to square one. Any ideas why this is happening?
from monolog-bundle.
@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.
from monolog-bundle.
@Seldaek Thanks for your quick response. I tried that and it has fixed the problem - thank you.
from monolog-bundle.
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.
Other thing what I have noticed, I had too update from dev-master v2.1.5 => 2.1.x-dev v2.1.8 on first run of "composer.phar update".
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.
from monolog-bundle.
I just ran into the same problem. What fixed it for me was just running composer.phar update
again. On the second update, it went Updating symfony/swiftmailer-bundle
and Installing symfony/monolog-bundle
, after which everything went back to normal.
There was some composer.phar self-update
involved too earlier today, so make sure you're up-to-date ;)
from monolog-bundle.
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" />
from monolog-bundle.
Related Issues (20)
- Runtime environment variable support for log level HOT 1
- Monolog error after sentry added HOT 1
- fingers_crossed logs everything when a warning is logged HOT 1
- Deprecation warning on final class extension HOT 1
- Incompatibility with monolog 3.x HOT 1
- Segmentation fault on cache:clear when configuring symfony_mailer handler type HOT 4
- Bubble: false property doesn't work with doctrine channel like expected HOT 1
- Suggestion: Allow 200 status code to exclude http codes
- Allow setting exclude_fields through the bundle configuration
- Exclude unecessary files with `.gitattributes` HOT 1
- No log generated when using excluded_http_codes with some sub handlers under group (symfony/monolog-bundle 3.x). HOT 3
- Misfunction with the default prod settings and when using custom query to login HOT 1
- How to catch SlackWebhookHandler exceptions? HOT 1
- Add support for `#[Target]` attribute to autowire channels HOT 5
- WithMonologChannel on argument instead of the class HOT 1
- Handler fingers_crossed set to "error" in production prevents login in Symfony 7 without any error HOT 3
- Reset service for logs buffer HOT 3
- Add support for setting the basePath on line formatter
- Channel not used when calling function outside of class HOT 3
- Using a custom handler with a nested handler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monolog-bundle.