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

Catchable Fatal Error: Argument 1 passed to FOS\UserBundle\Doctrine\UserListener::__construct() must be an instance of FOS\UserBundle\Util\PasswordUpdaterInterface, instance of appProdProjectContainer given #2287

Closed
ozzmaster opened this issue Oct 22, 2016 · 3 comments

Comments

@ozzmaster
Copy link

This is the full error, paths anonymised:
[Sat Oct 22 11:58:03.741667 2016] [fcgid:warn] [pid 3508] [client 197.88.153.18:50868] mod_fcgid: stderr: #1 //var/cache/prod/appProdProjectContainer.php(1433): FOS\UserBundle\Doctrine\UserListener->__construct(Object(appProdProjectContainer))
[Sat Oct 22 11:58:03.741669 2016] [fcgid:warn] [pid 3508] [client 197.88.153.18:50868] mod_fcgid: stderr: #2 /
/vendor/symfony/symfony/src/Sym in /~/vendor/friendsofsymfony/user-bundle/Doctrine/UserListener.php on line 34

Using Symfony3.

What do I need to do to fix this?

@xabbuh
Copy link
Member

xabbuh commented Oct 22, 2016

This is due to the changes made in #1615. Did you clear the cache after upgrading the bundle?

@ozzmaster
Copy link
Author

I did not. Thanks for the prompt response! Closing issue.

I will now update my scripts to clear the var/cache/ folder with rm.

@lemzo63
Copy link

lemzo63 commented Jun 30, 2017

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to FOS\UserBundle\Doctrine\UserListener::__construct() must be an instance of FOS\UserBundle\Util\PasswordUpdaterInterface, instance of appProdProjectContainer given, called in C:\wamp\www\Symfony\var\cache\prod\appProdProjectContainer.php on line 624 in C:\wamp\www\Symfony\vendor\friendsofsymfony\user-bundle\Doctrine\UserListener.php on line 34

i have this error because i just upgrate to symfony 3.3.2 when i clear the cache for dev , no probleme but when i clear the cache for prod this error appears.
who can help me please?

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

No branches or pull requests

3 participants