Site URL: innerlightcrystals.co.uk
ZC version: 1.5.8a
Plugins: bootstrap,
PHP version: 8.2.15

Recently had two warning files and a curl redirect for PayPal express. The transaction did complete successfully.

First log file
[21-Feb-2024 13:01:00 Europe/London] Request URI: /sales/ipn_main_handler.php?type=ec&token=EC-8P594003C1505003U&PayerID=8298M9BE85FH8, IP address: 76.32.130.116, Language id 1
#0 /home/lotus/public_html/innerlightcrystals/sales/includes/modules/payment/paypalwpp.php(2204): zen_debug_error_handler()
#1 /home/lotus/public_html/innerlightcrystals/sales/includes/modules/payment/paypalwpp.php(2014): paypalwpp->ec_step2_finish()
#2 /home/lotus/public_html/innerlightcrystals/sales/ipn_main_handler.php(80): paypalwpp->ec_step2()
--> PHP Warning: Undefined array key "paypal_ec_markflow" in /home/lotus/public_html/innerlightcrystals/sales/includes/modules/payment/paypalwpp.php on line 2204.

paypal curl error (not complete)

...
[TOKEN] => EC-8P594003C1505003U
[SUCCESSPAGEREDIRECTREQUESTED] => false
[TIMESTAMP] => 2024-02-21T13:05:09Z
[CORRELATIONID] => 10f8da028b603
[ACK] => Failure
[VERSION] => 124.0
[BUILD] => 58322870
[L_ERRORCODE0] => 10486
[L_SHORTMESSAGE0] => This transaction couldn't be completed.
[L_LONGMESSAGE0] => This transaction couldn't be completed. Please redirect your customer to PayPal.
[L_SEVERITYCODE0] => Error
[CURL_ERRORS] =>

second warning
[21-Feb-2024 13:08:26 Europe/London] Request URI: /sales/ipn_main_handler.php?type=ec&token=EC-56M10083GP870161T&PayerID=8298M9BE85FH8, IP address: 76.32.130.116, Language id 1
#0 /home/lotus/public_html/innerlightcrystals/sales/includes/modules/payment/paypalwpp.php(2204): zen_debug_error_handler()
#1 /home/lotus/public_html/innerlightcrystals/sales/includes/modules/payment/paypalwpp.php(2014): paypalwpp->ec_step2_finish()
#2 /home/lotus/public_html/innerlightcrystals/sales/ipn_main_handler.php(80): paypalwpp->ec_step2()
--> PHP Warning: Undefined array key "paypal_ec_markflow" in /home/lotus/public_html/innerlightcrystals/sales/includes/modules/payment/paypalwpp.php on line 2204.

I assume that the first attempt failed and they retried.

I was wondering if the code lines 2003-8
Code:
      // send the user on
      if ($_SESSION['paypal_ec_markflow'] == 1) {
        $this->terminateEC('', false, FILENAME_CHECKOUT_PROCESS);
      } else {
        $this->terminateEC('', false, FILENAME_CHECKOUT_CONFIRMATION);
      }
needs changing to
Code:
      // send the user on
      if (isset($_SESSION['paypal_ec_markflow']) && $_SESSION['paypal_ec_markflow'] == 1) {
        $this->terminateEC('', false, FILENAME_CHECKOUT_PROCESS);
      } else {
        $this->terminateEC('', false, FILENAME_CHECKOUT_CONFIRMATION);
      }