Troubleshooting
Fixing "Maximum execution time of 30 seconds exceeded" in WordPress
The fatal names a file and a line, and that line is where PHP was when the clock ran out — not necessarily what was slow. Raising the limit buys time; reading the trace tells you what was spending it.