From 3a210ec01d4437d01c0ae43696ed0f4fb02ffd8e Mon Sep 17 00:00:00 2001 From: Eileen Date: Mon, 16 Sep 2013 23:41:29 +1200 Subject: [PATCH] CRM-13402 error handling, prevent loop if mysql server has 'gone away' ---------------------------------------- * CRM-13402: Improve debug logging around server unavailble (ditch the loop), missing contributions, mail store problems http://issues.civicrm.org/jira/browse/CRM-13402 --- CRM/Core/Error.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Error.php b/CRM/Core/Error.php index fbf0ef7a47..4f8b855a2a 100644 --- a/CRM/Core/Error.php +++ b/CRM/Core/Error.php @@ -204,7 +204,11 @@ class CRM_Core_Error extends PEAR_ErrorStack { echo "Sorry. A non-recoverable error has occurred. The error trace below might help to resolve the issue

"; CRM_Core_Error::debug(NULL, $error); } - + static $runOnce = FALSE; + if ($runOnce) { + exit; + } + $runOnce = TRUE; self::abend(1); } -- 2.25.1