PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, February 9, 2022

[FIXED] Attempted to load class "DoctrineCacheBundle" from namespace "Doctrine\Bundle\DoctrineCacheBundle"

 February 09, 2022     symfony, symfony4     No comments   

Issue

Can anyone help me, guys? Every time I run the command php bin/console server:run this error occurs:

PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "DoctrineCacheBundle" from namespace "Doctrine\Bundle\DoctrineCacheBundle". Did you forget a "use" statement for another namespace? in C:\Users\XX-2\Desktop\React Projects\test_project\src\Kernel.php:23


Solution

Possible this is because of update doctrine bundle. Remove this line Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true], from bundles.php, it works for me.



Answered By - Ihor Kostrov
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing