JMSSerializerBundle icon indicating copy to clipboard operation
JMSSerializerBundle copied to clipboard

You have requested a non-existent service "jms_serializer.handler_registry".

Open palanisamy-emis opened this issue 3 years ago • 4 comments

Q A
Bug report? yes/no
Feature request? yes/no
BC Break report? yes/no
RFC? yes/no

Steps required to reproduce the problem

  1. I have used "jms/serializer-bundle": "^4.0", in my composer.json file
  2. PHP version = 8.1.0, symfony version = 4.4
  3. when i try to create database using the below command
  4. doctrine:database:create --env=dev --if-not-exists

Expected Result

  • Successfully created

Actual Result

  • You have requested a non-existent service "jms_serializer.handler_registry".

palanisamy-emis avatar Dec 07 '21 09:12 palanisamy-emis

did you clear the cache ?

goetas avatar Dec 26 '21 11:12 goetas

Same problem here and yes cleared the cache.

mario-fehr avatar Feb 25 '22 18:02 mario-fehr

I have this issue and have cleared the cache and its still around has anyone managed to solve it?

EdwardObala1 avatar Jun 15 '22 14:06 EdwardObala1

Seems to be fixable by upgrading friendsofsymfony/rest-bundle to ^3.1.0, assuming you're using the REST Bundle.

Ref: https://github.com/schmittjoh/JMSSerializerBundle/issues/877#issuecomment-955196303

Blacksmoke16 avatar Aug 11 '22 14:08 Blacksmoke16