I cannot see anyone replying to this due to lack of basic debugging.

Looked through the source and saw multiple occasions where developer 1 would've crashed your server.