Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Uncaught Error: Class 'Doctrine\Bundle\DoctrineExtensionsBundle\DoctrineExtensionsBundle' not found in /home/mciat/Software/api-yelo.eco/src/Kernel.php:25 #430

Closed
Wyzbidul opened this issue May 7, 2021 · 1 comment
Labels

Comments

@Wyzbidul
Copy link

Wyzbidul commented May 7, 2021

Hi everyone, I am a beginner in web development (but I have notions in server tools and linux environment) trying to launch an API that was supposedly working on another server but when I tried implementing it on my server, here is the issue I encountered.

I am currently working on an API with a README saying I only needed to have the following requirements :

  • PHP >= 7.2
  • node v10
  • Composer - Install

But I have an error whether I use composer update or composer install that stops the proper installation of my directory.

Here are the different configuration files :
composer.json
image
image

Kernel.php
image
image

Bundles.php
image

Error
And the error I get at the end of 'composer install' is as follows :
`Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!! PHP Fatal error: Uncaught Error: Class 'Doctrine\Bundle\DoctrineExtensionsBundle\DoctrineExtensionsBundle' not found in /home/mciat/Software/api-yelo.eco/src/Kernel.php:25
!! Stack trace:
!! #0 /home/mciat/Software/api-yelo.eco/vendor/symfony/http-kernel/Kernel.php(429): App\Kernel->registerBundles()
!! #1 /home/mciat/Software/api-yelo.eco/vendor/symfony/http-kernel/Kernel.php(130): Symfony\Component\HttpKernel\Kernel->initializeBundles()
!! #2 /home/mciat/Software/api-yelo.eco/vendor/symfony/framework-bundle/Console/Application.php(159): Symfony\Component\HttpKernel\Kernel->boot()
!! #3 /home/mciat/Software/api-yelo.eco/vendor/symfony/framework-bundle/Console/Application.php(65): Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()
!! #4 /home/mciat/Software/api-yelo.eco/vendor/symfony/console/Application.php(149): Symfony\Bundle\FrameworkBundle\Console\Application->doRun()
!! #5 /home/mciat/Software/api-yelo.eco/bin/console(42): Symfony\Component\Console\Application->run()
!! #6 {main}
!! thrown in /home/mciat/Software/api-yelo.eco/src/Kernel.php on line 25
!!
Script @auto-scripts was called via post-update-cmd

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

Steps
Steps to reproduce the behavior:

  1. run 'composer install'
  2. See error

Expected behavior
the script should execute properly and show :

Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "4.3.*"
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package sensiolabs/security-checker is abandoned, you should avoid using it. Use https://github.com/fabpot/local-php-security-checker instead.
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
44 packages you are using are looking for funding.
Use the composer fund command to find out more!

Synchronizing package.json with PHP packages
Don't forget to run npm install --force or yarn install --force to refresh your JavaScript dependencies!
Run composer recipes at any time to see the status of your Symfony recipes.

Request
If you have any solutions to this issue please tell me, I am using Symfony 4.3 with PHP 7.4 and Composer 2.0 on a Ubuntu 18.04 with WSL 2 on VSCode (windows 10 host). If more information is needed to diagnose the issue please do tell !

@Wyzbidul Wyzbidul added the Bug label May 7, 2021
@stof
Copy link
Owner

stof commented Sep 14, 2021

This repo is about StofDoctrineExtensionsBundle, not about Doctrine\Bundle\DoctrineExtensionsBundle\DoctrineExtensionsBundle

@stof stof closed this as completed Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants