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

New Project build failed #37936

Closed
Fabricio872 opened this issue Aug 25, 2020 · 5 comments
Closed

New Project build failed #37936

Fabricio872 opened this issue Aug 25, 2020 · 5 comments

Comments

@Fabricio872
Copy link

Symfony version(s) affected: 4.4.11

Description
I have a problem installing new project with symfony cli version 4.18.4. Project seems to install correctly but after running it with symfony CLI server it outputs error:

Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry or null, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in /home/fabricio/PhpstormProjects/tw_catalog/tw_catalog_build/var/cache/dev/ContainerPxvsF1h/srcApp_KernelDevDebugContainer.php on line 4575

And also the error message seems broken (see attached image) also in image the profiler is in middle of the page it is because i captured whole page with firefox screenshots not only visible part

How to reproduce

  • installl project with command:
    symfony new tw_catalog_build --version=4.4 --full
  • run dev enviroment with command:
    symfony serve

i have php version 7.4.3, Composer version 1.10.1 and OS Ubuntu 20.04

Possible Solution

Additional context

Screenshot_2020-08-25 Welcome to Symfony

@fabian-laine
Copy link

+1

@ro0NL
Copy link
Contributor

ro0NL commented Aug 25, 2020

see #37935

@ldelpri
Copy link

ldelpri commented Aug 25, 2020

same errorr appears creating an entity with terminal:

Argument 2 passed to Symfony\Bundle\MakerBundle\Validator::validateDoctrineFieldName() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bun  
  dle\DoctrineBundle\Registry given, called in C:\wamp64\www\centro_ticket\vendor\symfony\maker-bundle\src\Maker\MakeEntity.php on line 303  

@fabpot fabpot closed this as completed Aug 25, 2020
@fabpot
Copy link
Member

fabpot commented Aug 25, 2020

This is due to a BC break in Doctrine (see doctrine/DoctrineBundle#1202). Fixed in FrameworkExtraBundle with a new release (v5.6.0). Everything should work again.

@Fabricio872
Copy link
Author

This is due to a BC break in Doctrine (see doctrine/DoctrineBundle#1202). Fixed in FrameworkExtraBundle with a new release (v5.6.0). Everything should work again.

Thank you ti works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants