Add error_log calls to try to see where we're failing