WP Multisite: wrong behavior on get saved transactions
-
We use Wirecard WooCommerce Extension plugin in multisite mode.
I see after each purchase such errors (looks like you try to search in false table):
WordPress-Datenbank-Fehler Table 'db.111_wirecard_payment_gateway_tx' doesn't exist für Abfrage SELECT * FROM 123_wirecard_payment_gateway_tx WHERE transaction_id = '3999a80a-...-7e888d23d594' von require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WC_API->handle_api_requests, do_action('woocommerce_api_wc_wirecard_payment_gateway_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Wirecard_Payment_Gateway->return_request, WC_Wirecard_Payment_Gateway->update_payment_transaction, Wirecard_Transaction_Factory->create_transaction, Wirecard_Transaction_Factory->get_transactionAnd after it (looks like you try to insert this transactions but already in right table):
WordPress-Datenbank-Fehler Duplicate entry '3999a80a-...-7e888d23d594' for key 'transaction_id' für Abfrage INSERT INTO wirecard_payment_gateway_tx (transaction_id, parent_transaction_id, payment_method, transaction_state, transaction_type, amount, currency, order_id, response, transaction_link) VALUES (...) von require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WC_API->handle_api_requests, do_action('woocommerce_api_wc_wirecard_payment_gateway_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Wirecard_Payment_Gateway->return_request, WC_Wirecard_Payment_Gateway->update_payment_transaction, Wirecard_Transaction_Factory->create_transactionIt happens because the plugin has only one own table for saving transactions:
wirecard_payment_gateway_tx, but you try to get transactions in subblogs content without callint this functions:switch_to_blog(get_network()->site_id);and afterrestore_current_blog();.- This topic was modified 6 years, 5 months ago by .
- This topic was modified 6 years, 5 months ago by .
The page I need help with: [log in to see the link]
The topic ‘WP Multisite: wrong behavior on get saved transactions’ is closed to new replies.