Giter Site home page Giter Site logo

Comments (12)

Seldaek avatar Seldaek commented on May 22, 2024

Sounds like it didn't install correctly. Try: rm -rf vendor/symfony/monolog-bundle && php composer.phar install

from monolog-bundle.

Dragonrun1 avatar Dragonrun1 commented on May 22, 2024

[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.

Seldaek avatar Seldaek commented on May 22, 2024

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.

Dragonrun1 avatar Dragonrun1 commented on May 22, 2024

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.

Seldaek avatar Seldaek commented on May 22, 2024

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.

Tocacar avatar Tocacar commented on May 22, 2024

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.

Tocacar avatar Tocacar commented on May 22, 2024

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.

Seldaek avatar Seldaek commented on May 22, 2024

@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.

Tocacar avatar Tocacar commented on May 22, 2024

@Seldaek Thanks for your quick response. I tried that and it has fixed the problem - thank you.

from monolog-bundle.

didulis avatar didulis commented on May 22, 2024

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.

netmikey avatar netmikey commented on May 22, 2024

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.

hexmode avatar hexmode commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.