Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello Diego,

    Could you please explain where to put the code to get this error message?

    Thread Starter webbus

    (@webbus)

    Hello David,

    I just received the link to there topic.
    They just posted the tpoic “Missing filter”
    It’s this one: https://wordpress.org/support/topic/missing-filter/

    Hope you can fix it.

    Thanks and regards,
    Glenn

    Thread Starter webbus

    (@webbus)

    Hello David,

    Unfortunately, another error crept in with the new update from Mollie.
    We reviewed this together with WooGlobalCart and came up with the following:

    It appear there’s a bug in Mollie plugin, they add a new code block but it miss an action.

    WooGlobalCart already sent a fix proposal. That’s the message bug report from nsp-code.com
    Hopefully they can do something with this. Since we cannot update Mollie without the webshop being unable to pay.

    Regards,
    Glenn

    Thread Starter webbus

    (@webbus)

    Hello David,

    It’s all working perfect.

    Thanks!

    Regards,
    Glenn

    Thread Starter webbus

    (@webbus)

    Hi David,

    No, they just need the filters that were mentioned.
    They have there own plugin that just needs those filters to work on a multisite of WordPress.

    Thank you and we will see the update soon.

    When it all works, I will let you know.

    Kind regards,
    Glenn

    Thread Starter webbus

    (@webbus)

    Hello David,

    Good news!

    They answered me:

    Yes it looks fine to me, it will be enough to create a compatibility module within our code. Please let me know when the code become available and i’ll check it further.

    Regards,
    Glenn

    Thread Starter webbus

    (@webbus)

    Hello Davdebcom,

    Do you maybe have an update for me about the progress?

    Thanks and a nice weekend!

    Thread Starter webbus

    (@webbus)

    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.
    Thread Starter webbus

    (@webbus)

    Wow, you are fast.

    The file would be
    mollie-payments-for-woocommerce\includes\mollie\wc\helper\orderlines.php

Viewing 9 replies - 1 through 9 (of 9 total)