From ddf894d00ee749f0e13582fddbd5d28982ecbb08 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 4 Aug 2020 19:44:33 +1200 Subject: [PATCH] Improve error handling on IPN https://civicrm.stackexchange.com/questions/37277/paypal-standard-payments-are-being-accepted-but-marked-as-incomplete-transaction/37279#37279 shows how unhelpful this error is - getting data from the exception should help. Targetting 5.28 in case the gitlab relates to a regression & we need to solicit more debug info --- CRM/Core/Payment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 277c534611..9c998dc66d 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -1504,7 +1504,8 @@ abstract class CRM_Core_Payment { catch (CRM_Core_Exception $e) { Civi::log()->error('ipn_payment_callback_exception', [ 'context' => [ - 'backtrace' => CRM_Core_Error::formatBacktrace(debug_backtrace()), + 'backtrace' => $e->getTraceAsString(), + 'message' => $e->getMessage(), ], ]); } -- 2.25.1