エラーを全表示にしたら、Fatal error: Maximum execution time of 30
というエラーが出ていて、php.iniを修正したら解決しました。
お答えくださった方々、ありがとうございました。