I've added error_reporting code to php.ini and the controller, but nothing is being reported. We know we should upgrade from 1.5.6, but our OpenCart is heavily customized and for now we would like to just try and resolve this until we upgrade. Any ideas what the best way to debug the error? While a majority of the transactions are going through fine, the odd error 500 happens at random.
I was thinking to perhaps add some code to the public function callback()
The server log shows:
Code: Select all
POST /index.php?route=payment%2Fworldpay%2Fcallback&msgType=authResult&installation=xxxx HTTP/1.0
Content-Length: 969
Host: <domain>
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
User-Agent: WJHRO/1.0 (WorldPay Java HTTP Request Object)
Error reported: Callback to: <domain>/index.php?route=payment%2Fworldpay%2Fcallback: failed CAUSED BY invalid HTTP status line: >null<
Server Reference: xxxx
<domain> 195.35.91.68 - - [07/Jun/2020:07:50:29 +0100] "POST /index.php?route=payment/worldpay/callback&msgType=authResult&installation=xxxxx [b][highlight]HTTP/1.0" 500 534[/highlight][/b] "-" "WJHRO/1.0 (WorldPay Java HTTP Request Object)"
<domain> 195.35.90.68 - - [07/Jun/2020:08:35:38 +0100] "POST /index.php?route=payment/worldpay/callback&msgType=authResult&installation=xxxxx HTTP/1.0" 200 1031 "-" "WJHRO/1.0 (WorldPay Java HTTP Request Object)"
<domain> 195.35.90.68 - - [07/Jun/2020:08:58:47 +0100] "POST /index.php?route=payment/worldpay/callback&msgType=authResult&installation=xxxxx HTTP/1.0" 200 1080 "-" "WJHRO/1.0 (WorldPay Java HTTP Request Object)"
<domain> 195.35.90.68 - - [07/Jun/2020:13:04:19 +0100] "POST /index.php?route=payment/worldpay/callback&msgType=authResult&installation=xxxxx HTTP/1.0" 200 1080 "-" "WJHRO/1.0 (WorldPay Java HTTP Request Object)"
<domain> 195.35.90.68 - - [07/Jun/2020:13:40:27 +0100] "POST /index.php?route=payment/worldpay/callback&msgType=authResult&installation=xxxxx HTTP/1.0" 200 1080 "-" "WJHRO/1.0 (WorldPay Java HTTP Request Object)"
<domain> 195.35.90.68 - - [07/Jun/2020:15:00:21 +0100] "POST /index.php?route=payment/worldpay/callback&msgType=authResult&installation=xxxxx HTTP/1.0" 200 1080 "-" "WJHRO/1.0 (WorldPay Java HTTP Request Object)"
<domain> 195.35.91.68 - - [07/Jun/2020:18:08:01 +0100] "POST /index.php?route=payment/worldpay/callback&msgType=authResult&installation=xxxxx HTTP/1.0" 200 1080 "-" "WJHRO/1.0 (WorldPay Java HTTP Request Object)"