Louis:
After applying the changes for 1.5.3 I am getting the following error when capturing payments.
The payment is still stored but the status is not updated. The following screen is also blank and not the usual "click to close and return" screen.
Any idea what I am doing wrong?
After some digging and debugging I found the problem. If you are also experiencing the same issue you need to make the following changes to your /XXadmin/includes/classes/super_order.php file:
Find ```
function add_payment($payment_number, $payment_name, $payment_amount, $payment_type, $purchase_order_id = false) {
and replace with ```
function add_payment($payment_number, $payment_name, $payment_amount, $payment_type, $purchase_order_id = false) {
global $db;
Find ```
function add_purchase_order($po_number) {
and replace with ```
function add_purchase_order($po_number) {
global $db;
Find ```
function add_refund($payment_id, $refund_number, $refund_name, $refund_amount, $refund_type) {
and replace with ```
function add_refund($payment_id, $refund_number, $refund_name, $refund_amount, $refund_type) {
global $db;
and voila, no more error log files!