3

I'm getting an error when i work with FOSRestBundle.

Fatal error: Class 'JMS\Serializer\SerializationContext' not found in /home/a15net/public_html/kavuklar/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php on line 209

It was working before composer.phar update.

Do you any have idea about this why i'm getting this error?

Canser Yanbakan
  • 3,780
  • 3
  • 39
  • 65

1 Answers1

10

I had the same problem.

I solved it reading the FOSRestBundle upgrade file, and then updating my composer.json. You should try to put in require section this next lines:

"friendsofsymfony/rest-bundle": "0.11.*",
"jms/serializer-bundle": "0.12.x-dev"

and then

composer.phar update

It works for me.

Try and comment.

terox
  • 156
  • 2
  • 9
  • Thank you brother. Really saved my day! But now, i have another problem. Now serializer can't access a private property. `Cannot access private property ATL\CatalogBundle\Entity\Taxonomy::$id in` Do you know how can i handle this? – Canser Yanbakan Mar 25 '13 at 08:04
  • I need more information. I tried to return some entity data in json format with serializer and it works perfectly for me. Maybe your entity have something extrange. Do you try to search a bit? Perhaps you need open a new question – terox Mar 25 '13 at 21:34