This could be anything in the PHP code. Turn on error logging in WP and look at the log to see if you can figure out the problem in the php code https://codex.wordpress.org/WP_DEBUG, but I would suspect it has something to do with trying var_dump($value);
during an ajax request.