Hello Davdebcom,
Sorry I’m not completely clear.
We contacted WooGlobalCart after everything was put together but after testing we continued to get a server error during checkout.
We contacted Mollie and WooGlobalCart.
It was giving the following error
“Internal server error”.
Mollie gives us the following message:
2019-02-11T14: 16: 28 + 00: 00 CRITICAL Uncaught Error: Call to a member function get_sku () on boolean in /var/www/vhosts/decorabel.nl/httpdocs/wp-content/plugins/mollie-payments -for-woocommerce / includes / mollie / wc / helper / orderlines.php: 375
Stack trace:
# 0 /var/www/vhosts/decorabel.nl/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/helper/orderlines.php(90): Mollie_WC_Helper_OrderLines-> get_item_reference (false )
# 1 /var/www/vhosts/decorabel.nl/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/helper/orderlines.php(52): Mollie_WC_Helper_OrderLines-> process_cart ()
# 2 /var/www/vhosts/decorabel.nl/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/payment/order.php(120): Mollie_WC_Helper_OrderLines-> order_lines ()
# 3 /var/www/vhosts/decorabel.nl/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstract.php(413): Mollie_WC_Payment_Order-> getPaymentRequestData (Object (WC_Order), NULL)
# 4 /var/www/vhosts/decorabel.nl/httpdocs/wp-conte in /var/www/vhosts/decorabel.nl/httpdocs/wp-content/plugins/mollie-payments-for-woocommerce/includes/mollie/ wc / helper / orderlines.php on line 375
The server gives the following error:
GET /wp-content/plugins/woo-global-cart/sync/woogc-pong.php?woogc_hash=0&rand=6614846&bounce=https://www.decorabel.nl/wp-content/plugins/woo-global-cart/sync/woogc-ping.php HTTP/1.0
[client “ip adres”] ModSecurity: Access denied with code 403 (phase 2). Match of “beginsWith %{request_headers.host}” against “TX:1” required. [file “/etc/apache2/modsecurity.d/rules/tortix/modsec/50_plesk_basic_asl_rules.conf”] [line “179”] [id “340162”] [rev “294”] [msg “Protected by Atomicorp.com Basic Non-Realtime WAF Rules: URL detected as argument, possible RFI attempt detected”] [data “%TX:1,TX:1”] [severity “CRITICAL”] [hostname “blancotextiel.nl”] [uri “/wp-content/plugins/woo-global-cart/sync/woogc-pong.php”] [unique_id “XGKMvX8AAQEAAAU58HoAAAAN”], referer: https://www.domainname.nl/wp-content/plugins/woo-global-cart/sync/woogc-ping.php
Mollie indicates that they can not get the SKU from the order because of the Globalcart plugin.
After this problem they looked from WooGlobalCart into the problem on our multisite and found the following findings.
“Unfortunate the Mollie plugin does not include the required filters to allow a workaround to be implemented through such way, so you need to modify a file:
File wp-content\plugins\mollie-payments-for-woocommerce\includes\mollie\wc\helper\orderlines.php
Near Line 78 at function process_cart()
1) After
foreach ( WC()->cart->get_cart() as $cart_item ) {
if ( $cart_item[‘quantity’] ) {
Add
if( isset($cart_item[‘blog_id’]))
switch_to_blog( $cart_item[‘blog_id’] );
2) After
$this->order_lines[] = $mollie_order_item;
Add
if( isset($cart_item[‘blog_id’]))
restore_current_blog();
After above changes, everything will work fine. ”
But this will give a problem with every new update.
Documentation from Wooglobalcart:
https://wooglobalcart.com/documentation/
https://wooglobalcart.com/articles/
Hopefully it has become a little clearer.
If you want to know something, I’d like to hear that.
Regards and thank you for your time,
Glenn
-
This reply was modified 7 years, 1 month ago by
webbus.