Ooh, I've gotten that error before in my own code. That's a PHP error message rather than an error message in the AWBW code.
...and I completely forget how I addressed that problem. Oops. Can't help much then.
Must have been an exceptionally active and long game to suddenly go over the memory limit by a factor of 665 rather than something normal like 1.2. Was there anything else odd about it? I'm sure I've seen a game go on so long that the Log page actually times out, yet the replay still worked then. Now the log works and the replay doesn't. Maybe something to do with too many players or something, no idea.