Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query: SELECT COUNT(*) AS count FROM {comment} c1 INNER JOIN {comment} c2 ON c2.nid = c1.nid WHERE (c2.cid = :db_condition_placeholder_0) AND (c1.status = :db_condition_placeholder_1) AND (SUBSTRING(c1.thread, 1, (LENGTH(c1.thread) -1)) < SUBSTRING(c2.thread, 1, (LENGTH(c2.thread) -1))) ; Array ( [:db_condition_placeholder_0] => 140605 [:db_condition_placeholder_1] => 1 ) in comment_get_display_ordinal() (line 1791 of /var/www/html/blog.coromines.cat/modules/comment/comment.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:470:"SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query: SELECT COUNT(*) AS count FROM {comment} c1 INNER JOIN {comment} c2 ON c2.nid = c1.nid WHERE (c2.cid = :db_condition_placeholder_0) AND (c1.status = :db_condition_placeholder_1) AND (SUBSTRING(c1.thread, 1, (LENGTH(c1.thread) -1)) < SUBSTRING(c2.thread, 1, (LENGTH(c2.thread) -1))) ; Array ( [:db_condition_placeholder_0] => 140605 [:db_condition_placeholder_1] => 1 ) ";s:9:"%function";s:29:"comment_get_display_ordinal()";s:5:"%file";s:63:"/var/www/html/blog.coromines.cat/modules/comment/comment.module";s:5:"%line";i:1791;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://coroblog.coromines.cat/comment/140605 [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 18.210.28.227 [:db_insert_placeholder_9] => 1574246751 ) in dblog_watchdog() (line 160 of /var/www/html/blog.coromines.cat/modules/dblog/dblog.module).