Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[08004] [1040] Too many connections in xwordfunctions_page_to_clue() (line 54 of /home/crossw/public_html/sites/all/modules/custom/xwordfunctions/xwordfunctions.module).

Additional

PDOException: SQLSTATE[HY000] [1040] Too many connections in lock_may_be_available() (line 167 of /home/crossw/public_html/includes/lock.inc).