Hello , i am trying to run this project but i keep getting this erreur and some times o others like the cache problem :
PHP Fatal error: Declaration of DoctrineORMEntityManager_000000005d3465c800000000622fd46ee1c521f0bc53aec1c406e6390 bc9e21a::getProxyInitializer() must be compatible with ProxyManager\Proxy\LazyLoadingInterface::getProxyInitializer (): ?Closure in C:\start\var\cache\dev\appDevDebugProjectContainer.php.
Hmmm. I think overall the problem is going to be that Symfony 3.3 is old, and was never designed to work even on PHP 7.0 (let alone 7.4). At the very least, you would need to update the dependencies as much as you can (e.g. composer update), but even that might not help: the dependencies might just be too old to work on PHP 7.4. I have a feeling you already tried this, because after running composer update on the code, I get the same error as you :).
Sorry I can't offer something more helpful! I think Symfony 3.3 is just too old to run in PHP 7 at this point :). Hopefully you can still read/watch the parts of the tutorial that are interesting to you to get what you need. If you have any questions, let us know!
Hi :) I was wondering if you could point me in the right direction with a problem I'm having. I've upgraded to 3.4 wooo. However registered users from my 2.8 application can't login but if i create a new user and login it works fine. Any hints/tip ?
Oh, looks like in this upgrade you changed your encoder algorithm, see "security.encoders.UserInterface.algorithm" in your app/config/security.yml. You can't just change it because all old passwords will be invalid anymore as they will be checked with a new algorithm. Revert back the original value and it should work for old passwords after upgrade
We suppose our users download the start code and recommend this way to code with us, but it may be useful for someone, thanks for sharing this little-known fact about Symfony web server.
Cheers!
Please, log in to vote for this comment
|
Share Comment
"Houston: no signs of life" Start the conversation!
6 Comments
Hello , i am trying to run this project but i keep getting this erreur and some times o others like the cache problem :
PHP Fatal error: Declaration of DoctrineORMEntityManager_000000005d3465c800000000622fd46ee1c521f0bc53aec1c406e6390
bc9e21a::getProxyInitializer() must be compatible with ProxyManager\Proxy\LazyLoadingInterface::getProxyInitializer
(): ?Closure in C:\start\var\cache\dev\appDevDebugProjectContainer.php.
any help please
Php version : 7.4.*
Hey hamzaAB!
Hmmm. I think overall the problem is going to be that Symfony 3.3 is old, and was never designed to work even on PHP 7.0 (let alone 7.4). At the very least, you would need to update the dependencies as much as you can (e.g.
composer update), but even that might not help: the dependencies might just be too old to work on PHP 7.4. I have a feeling you already tried this, because after runningcomposer updateon the code, I get the same error as you :).Sorry I can't offer something more helpful! I think Symfony 3.3 is just too old to run in PHP 7 at this point :). Hopefully you can still read/watch the parts of the tutorial that are interesting to you to get what you need. If you have any questions, let us know!
Cheers!
Hi :)
I was wondering if you could point me in the right direction with a problem I'm having. I've upgraded to 3.4 wooo. However registered users from my 2.8 application can't login but if i create a new user and login it works fine. Any hints/tip ?
Cheers
Claire
Hey Claire,
Oh, looks like in this upgrade you changed your encoder algorithm, see "security.encoders.UserInterface.algorithm" in your app/config/security.yml. You can't just change it because all old passwords will be invalid anymore as they will be checked with a new algorithm. Revert back the original value and it should work for old passwords after upgrade
Cheers!
If your application's document root differs from the standard directory layout, you have to pass the correct location using the --docroot option:
Hey Stan,
We suppose our users download the start code and recommend this way to code with us, but it may be useful for someone, thanks for sharing this little-known fact about Symfony web server.
Cheers!
"Houston: no signs of life"
Start the conversation!