search

Home  >  Q&A  >  body text

Help: symfony2 JMS JMS\SerializerBundle serialization timeout.

Fatal error: Maximum execution time of 30 seconds exceeded in vendor/jmsrializer-bundle/JMS/SerializerBundle/Serializer/GraphNavigator.php on line 52

What are the possible reasons for this situation?

PHPzPHPz2837 days ago526

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 16:47:28

    Serialization still requires human intervention, check:

    1. Depth of object reference
    2. Circular Reference

    You can first exclude all references to (any other objects) in your (object you want to serialize), and then add them one by one to see who caused the recursion.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 16:47:28

    php script execution timeout
    Add this sentence before the code
    set_time_limit(0);

    reply
    0
  • Cancelreply