I have this return symfony error with all my url website :
"ClassNotFoundException: Attempted to load class "DoctrineFixturesBundle" from namespace "Doctrine\Bundle\FixturesBundle" in C:\dev\Apache2.4.6\htdocs\MySite\app\AppKernel.php line 23. Do you need to "use" it from another namespace?"
This error appear when I modified the config.yml (part doctrine orm)for resolve others problem but it's not resolving. Indeed a back my change in this file and re-run my website but now nothing run correctly. I have this error anytime and anywhere.
I copy my code here but for response at simple question :
- do you have adding this line in AppKernel.php : $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); ? RESPONSE : YES
- do you have install fixtures bundle ? RESPONSE : YES
- do you have install/update and self-update composer ? RESPONSE : YES
- do you have load fixtures in DB ? RESPONSE : YES (it run perfectly)
- do you have cleaning the cache ? RESPONSE : YES
All my fixtures engine run correctly just before this generate error.
AppKernel.php
if (in_array($this->getEnvironment(), array('dev', 'test'))) { $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } composer.json
"require": { "php": ">=5.3.3", "symfony/symfony": "~2.4", "doctrine/orm": "2.4.2", "doctrine/doctrine-bundle": "~1.2", "twig/extensions": "~1.0", "symfony/assetic-bundle": "~2.3", "symfony/swiftmailer-bundle": "~2.3", "symfony/monolog-bundle": "~2.4", "sensio/distribution-bundle": "~2.3", "sensio/framework-extra-bundle": "~3.0", "sensio/generator-bundle": "~2.3", "incenteev/composer-parameter-handler": "~2.0", "doctrine/doctrine-fixtures-bundle": "dev-master" }, config.yml
doctrine: dbal: driver: "%database_driver%" host: "%database_host%" port: "%database_port%" dbname: "%database_name%" user: "%database_user%" password: "%database_password%" charset: UTF8 # if using pdo_sqlite as your database driver, add the path in parameters.yml # e.g. database_path: "%kernel.root_dir%/data/data.db3" # path: "%database_path%" orm: auto_generate_proxy_classes: "%kernel.debug%" auto_mapping: true Thank for your precious help