Page 1 of 1

[bugfix] orders to "missing", items not subtracting: bug in /catalog/model/checkout/order.php

Posted: Thu Oct 11, 2018 7:44 am
by takayuki
on a fresh 2.3.0.2 install orders were going straight to missing status and item qty was not subtracting.

PHP Fatal error: Call to a member function check() on a non-object in /catalog/model/checkout/order.php on line 267

the fix:

$fraud_status_id = $this->{'model_fraud_' . $extension['code']}->check($order_info);

is wrong.. it should be:

$fraud_status_id = $this->{'model_extension_fraud_' . $extension['code']}->check($order_info);

The first version is based on an older structure. It's calling a function which doesn't exist and throws a fatal error as a result.

Re: [bugfix] orders to "missing", items not subtracting: bug in /catalog/model/checkout/order.php

Posted: Fri Oct 12, 2018 4:17 am
by straightlight
Already fixed by previous reports.

Re: [bugfix] orders to "missing", items not subtracting: bug in /catalog/model/checkout/order.php

Posted: Wed Aug 14, 2019 9:21 pm
by ivan2121
I am receiving Missing Orders. Should I try this fix above on OC 2.3.0.2 ?

Re: [bugfix] orders to "missing", items not subtracting: bug in /catalog/model/checkout/order.php

Posted: Sat Aug 17, 2019 7:54 am
by straightlight
This fix has been long time reported but there are other topics on the forum that did indicated this proposed solution would solved the issue.