Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PHP Fatal error: During class fetch: Uncaught ReflectionException: Class Doctrine\Bundle\FixturesBundle\Fixture not found #1195

@saschafoerster

Description

@saschafoerster

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
When doing a regular install of Kimai2 with git, you get this error after the command:
composer install --no-dev --optimize-autoloader
When you do first
composer install --optimize-autoloader without --no-dev, then the following installation steps work fine.

Logfile

saschafoerster@BonnCloud:/volume1/web/kimai2$ php72 bin/console cache:clear --env=prod
PHP Fatal error:  During class fetch: Uncaught ReflectionException: Class Doctrine\Bundle\FixturesBundle\Fixture not found in /volume1/web/kimai2/vendor/symfony/config/Resource/ClassExistenceResource.php:150
Stack trace:
#0 [internal function]: Symfony\Component\Config\Resource\ClassExistenceResource::throwOnRequiredClass('Doctrine\\Bundle...')
#1 /volume1/web/kimai2/src/DataFixtures/CustomerFixtures.php(29): spl_autoload_call('Doctrine\\Bundle...')
#2 /volume1/web/kimai2/vendor/composer/ClassLoader.php(444): include('/volume1/web/ki...')
#3 /volume1/web/kimai2/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/volume1/web/ki...')
#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('App\\DataFixture...')
#5 [internal function]: spl_autoload_call('App\\DataFixture...')
#6 /volume1/web/kimai2/vendor/symfony/config/Resource/ClassExistenceResource.php(78): class_exists('App\\DataFixture...')
#7 /volume1/web/kimai2/vendor/symfony/dependency-injection/ContainerBuilder.php(353): Symfony\Component\Confi in /volume1/web/kimai2/src/DataFixtures/CustomerFixtures.php on line 29

Fatal error: During class fetch: Uncaught ReflectionException: Class Doctrine\Bundle\FixturesBundle\Fixture not found in /volume1/web/kimai2/vendor/symfony/config/Resource/ClassExistenceResource.php:150
Stack trace:
#0 [internal function]: Symfony\Component\Config\Resource\ClassExistenceResource::throwOnRequiredClass('Doctrine\\Bundle...')
#1 /volume1/web/kimai2/src/DataFixtures/CustomerFixtures.php(29): spl_autoload_call('Doctrine\\Bundle...')
#2 /volume1/web/kimai2/vendor/composer/ClassLoader.php(444): include('/volume1/web/ki...')
#3 /volume1/web/kimai2/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/volume1/web/ki...')
#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('App\\DataFixture...')
#5 [internal function]: spl_autoload_call('App\\DataFixture...')
#6 /volume1/web/kimai2/vendor/symfony/config/Resource/ClassExistenceResource.php(78): class_exists('App\\DataFixture...')
#7 /volume1/web/kimai2/vendor/symfony/dependency-injection/ContainerBuilder.php(353): Symfony\Component\Confi in /volume1/web/kimai2/src/DataFixtures/CustomerFixtures.php on line 29

Additional context
Add any other context about the problem here.

  • Kimai version: 1.4.2
  • PHP version: 7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions