Post by Banastres » Fri Jun 19, 2020 6:53 pm

Our installation has been working fine for many years running on the old fashioned 1.5.6.4. Recently around 1 in 30 transactions gives an error 500 when customers checkout using the payment module Worldpay. Worldpay says its a server problem. My host cannot find anything wrong in the balancer logs. The Worldpay settings are fine with https enabled and shopper response enabled. I have checked the logs and nothing is being reported. Any ideas what would be the best way to debug and find the cause for the script causing the error 500?

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)"

User avatar
Newbie

Posts

Joined
Fri Jun 19, 2020 5:52 pm

Post by straightlight » Fri Jun 19, 2020 7:53 pm

This topic has now been moved to the OpenCart 1.5+ Support > General Support section of the forum.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Fri Jun 19, 2020 7:53 pm

Worldpay is no longer supported in Opencart core. Please, see this topic about it: viewtopic.php?f=2&t=217596 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Banastres » Fri Jun 19, 2020 8:08 pm

straightlight wrote:
Fri Jun 19, 2020 7:53 pm
Worldpay is no longer supported in Opencart core. Please, see this topic about it: viewtopic.php?f=2&t=217596 .
Thank you Straightlight. Apologies, I didn't say that thread. It looks like i am a few weeks late. Perhaps i will have to raise a commercial support request, as i can't seem to figure this one out. If anyone of the forum community has had this error previously, please reach out.

User avatar
Newbie

Posts

Joined
Fri Jun 19, 2020 5:52 pm

Post by straightlight » Fri Jun 19, 2020 8:52 pm

Banastres wrote:
Fri Jun 19, 2020 8:08 pm
straightlight wrote:
Fri Jun 19, 2020 7:53 pm
Worldpay is no longer supported in Opencart core. Please, see this topic about it: viewtopic.php?f=2&t=217596 .
Thank you Straightlight. Apologies, I didn't say that thread. It looks like i am a few weeks late. Perhaps i will have to raise a commercial support request, as i can't seem to figure this one out. If anyone of the forum community has had this error previously, please reach out.
No problem. I will forward this topic in the Commercial Support section of the forum.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Fri Jun 19, 2020 8:53 pm

This topic has now been moved to the Other > Commercial Support section of the forum.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 115 guests