Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT * FROM {system} WHERE type = 'theme' OR (type = 'module' AND status = 1) ORDER BY weight ASC, name ASC; Array ( ) in system_list() (line 165 of /srv/www/mingdiao_new/includes/module.inc).

Additional

Exception: theme() may not be called until all modules are loaded. in theme() (line 1017 of /srv/www/mingdiao_new/includes/theme.inc).