Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT dft.type, dft.title, dft.locked FROM {date_format_type} dft ORDER BY dft.title; Array ( ) in _system_date_format_types_build() (line 3694 of /home/legioner/schoolbooks/public_html/modules/system/system.module).

Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:162:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT dft.type, dft.title, dft.locked FROM {date_format_type} dft ORDER BY dft.title; Array ( ) ";s:9:"%function";s:33:"_system_date_format_types_build()";s:5:"%file";s:67:"/home/legioner/schoolbooks/public_html/modules/system/system.module";s:5:"%line";i:3694;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://schoolbooks.org.ua/taxonomy/term/18,34 [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.211.27.61 [:db_insert_placeholder_9] => 1397678494 ) in dblog_watchdog() (line 160 of /home/legioner/schoolbooks/public_html/modules/dblog/dblog.module).