I had this error twice and spent almost 30 minutes to debug it each time. I Hope it will help somebody because all I've found on the internet is solution for turning off xDebug.
PHP Fatal error: Maximum function nesting level of '100' reached, aborting!