Live production site went down suddenly. I created a custom cron job to enable/disable products in the site and the job ran successfully. 3 people placed order and suddenly the Live site went down and following are the series if events that happened: 1) "There has been an error processing your request" 2) "Can't create directory /var/www...../generation" 3) Runtime exception 4) Customers who were logged in were logged out
Then the site got restored, all in 1 minute. In the exception log all that I can see is an "Warning: ltrim() expects parameter 1 to be string, array given". I need urgent help with this. I want to know why the site went down.