Symfony 2.4 You have requested a non-existent service "payment.encryption_service"

Edouard Kombo picture Edouard Kombo · Feb 17, 2014 · Viewed 8.3k times · Source

I'm migrating a symfony project from 2.0 to 2.4 version. I've correctly configured all the parameters and services.

But the problem occured with JMS vendor, this is the error shown:

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException' with message 'You have requested a non-existent service "payment.encryption_service".' in C:\wamp\www\symfony\app\bootstrap.php.cache on line 2027

This message is blocking me, do you have any issue, any idea?

Answer

touko picture touko · Mar 22, 2014

I had the same problem. I don't know exactly what happened, but my problems went away after I manually cleared the cache using

rm -rf app/cache/prod/*

Considering your settings are on Windows, try manually deleting entries at app\cache\prod using Windows Explorer. I couldn't use app/console cache:clear --env=prod since the console would crash after showing that error message.