Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {languages} ORDER BY weight ASC, name ASC; Array ( ) in _registry_check_code() (line 3492 of /var/www/includes/bootstrap.inc).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT r.filename AS filename FROM {registry} r WHERE (r.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND (r.type = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => Migration [:db_condition_placeholder_1] => trait ) in _registry_check_code() (line 3492 of /var/www/includes/bootstrap.inc).