eureka2 / G6K

Generator of calculation simulator (calculator)
MIT License
20 stars 19 forks source link

Error just after installation #33

Closed rzmendrika closed 3 years ago

rzmendrika commented 4 years ago

Symfony\Component\Debug\Exception\FatalThrowableError: Argument 3 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given, called in /media/mendrika/Data/dev/Ilo/G6K/var/cache/dev/ContainerJ0xUTMr/getFosUser_UserManagerService.php on line 13 at FOS.UserBundle.Doctrine.UserManager.__construct(UserManager.php:41) at require(getFosUser_UserManagerService.php:13) at ContainerJ0xUTMr.srcApp_KernelDevDebugContainer.load(srcApp_KernelDevDebugContainer.php:481) at require(getFosUser_UserProvider_UsernameService.php:12) ... 19 more

houcemL commented 4 years ago

bonjour

C'est quoi la version de php que vous utilisez ? c'est mieux avec les versions php, symfony, doctrine ..

rzmendrika commented 4 years ago

Bonjour,

eureka2 commented 4 years ago

Hello,

It seems that FOSUserBundle is no longer compatible with Symfony 4.4

This implies that I have to completely rewrite the user management with the "Security" component of Symfony and it will take me a while.

Sorry for the inconvenience but if you want to contribute, you are welcome

Best regards

rzmendrika commented 4 years ago

Thanks, So what should I do now? how can I install it for symfony 4.3 for example?

eureka2 commented 4 years ago

@rzmendrika I'm actively working on replacing FOSUserBundle, can you wait a week or two? There is a lot of work, I can't go any faster, sorry!

rzmendrika commented 4 years ago

Thanks, It's OK! I cloned another project wich works fine and mine too now. I don't know if I should open another issue but I want to delete listbox from my project, and I want to ask if there will be an impact elsewhere.

houcemL commented 4 years ago

@eureka2
if it's a fosuser issue may be we should report the bug in theire repos ... i'm not sure about that i think it's a dependancy issue because i had some similar issue but on another services especially when it come to ManagerRegistry or EntityManager (i was developping some sf command to import data for mysql to be used in by data sources).. or other services of doctrine .. if i found somenthing usefull i will share it with you !

DallyRKT commented 4 years ago

@eureka2 For my part, I saw that right after the installation, I receive a message telling me that the engine is undergoing maintenance. Can you confirm that this is the case or not?

rzmendrika commented 4 years ago

@DallyRKT I think we have the same error Just switch to prod and debug mode to see the right error. Or check it into your log.

houcemL commented 4 years ago

: Argument 3 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given

try to replace conflict property in you composer.json with this

"conflict": { "symfony/symfony": "*", "doctrine/common": ">=3.0", "doctrine/persistence": "<1.3" },

Acually there is some BC (breaking changes .. click to see the issue) in doctrine wich causes many bugs even in sf extra bundle caused by deleting some alias ans services ... so it may be this

Good luck

eureka2 commented 4 years ago

@rzmendrika and @houcemL

You can now install this release where FOSUserBundle has been replaced by the security component of Symfony.

Please give me a feedback after this installation.

Best regards

rzmendrika commented 3 years ago

@eureka2 Thanks,