Serialization still requires human intervention, check:
Depth of object reference
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.
Serialization still requires human intervention, check:
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.
php script execution timeout
Add this sentence before the code
set_time_limit(0);