The carthrob we installed are recently run into the following php error code whenever user processed their payment through Card Access Services Payment Gateway.
Strict Standards: Declaration of Cartthrob_hooks::initialize() should be compatible with Cartthrob_child::initialize($params = Array, $defaults = Array) in /home/.../.../addons/cartthrob/cartthrob/core/Cartthrob_hooks.php on line 3 Strict Standards: Declaration of Cartthrob_store::initialize() should be compatible with Cartthrob_child::initialize($params = Array, $defaults = Array) in /home/.../.../addons/cartthrob/cartthrob/core/Cartthrob_store.php on line 109 Strict Standards: Declaration of Cartthrob_cart::initialize() should be compatible with Cartthrob_child::initialize($params = Array, $defaults = Array) in /home/.../.../addons/cartthrob/cartthrob/core/Cartthrob_cart.php on line 1640 Warning: Cannot modify header information - headers already sent by (output started at /home/.../.../addons/cartthrob/cartthrob/core/Cartthrob_hooks.php:3) in /home/.../.../ee_system/expressionengine/libraries/Functions.php on line 405
The gateway always opened correctly. The error shows then same result regardless the payment is processed or cancelled.
There is no issue using Paypal Express.
ExpressionEngine v2.5.5 Cartthrob v2.1.4 PHP 5.6
Anyone have a clue on this issue?
Thanks a lot!
- Downgraded PHP version to 5.3 has clear out the error code. Similar issue was discussed at here
- However, the payment still cannot be completed as gateway callback
URL redirect to https://.../cart/order-info with a blank page....This issue seems to be something related to
$this->final_redirect($this->order('return'));on line 108 in /addons/cartthrob/Cartthrob_card_access.php
- End up finding the problem stay at server level firewall setup. The post callback to ../extload.php/card_accesss/complete from CA gateway was 403 blocked with pytron in the header. the page setup redirect client to /cart/order-info with no payment information. Issue resolved after unblocking python request.