• Resolved anweb

    (@anweb)


    After the last update of wordpress and woocommerce our cart gave error and I got the answer below from Woocommerce support and I disabled you plugin and the cart works again so can you please let me know how can I solve this to use your plugin. I also added the error code in the bottom of this ticket

    The error you’re seeing is coming from the Invoice Gateway for WooCommerce plugin, specifically where it tries to access payment gateways before WooCommerce has fully loaded them. This is likely why the cart page fails while the checkout still works.

    Since this involves that plugin’s internal code (IGFW_Order_CPT.php on line 314), the best next step is to reach out directly to the plugin’s developers—they’ll be in the best position to provide a fix or update.

    In the meantime, if you’d like to keep the cart page working while they look into it, you can try temporarily deactivating that plugin.

    Thanks,
    anweb

    Warning: Undefined property: WooCommerce::$payment_gateways in /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Orders/IGFW_Order_CPT.php on line 314 Fatal error: Uncaught Error: Call to a member function get_available_payment_gateways() on null in /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Orders/IGFW_Order_CPT.php:314 Stack trace: #0 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/class-wp-hook.php(324): IGFW\Models\Orders\IGFW_Order_CPT->show_invoice_payment_gateway_on_free_orders(true, Object(WC_Cart)) #1 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(true, Array) #2 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1442): apply_filters(‘woocommerce_car…’, true, Object(WC_Cart)) #3 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-kp-klarna-express-checkout.php(47): WC_Cart->needs_payment() #4 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/class-wp-hook.php(324): KP_Klarna_Express_Checkout->maybe_add_pay_button_support(Array) #5 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #6 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-wc-gateway-klarna-payments.php(73): apply_filters(‘wc_klarna_payme…’, Array) #7 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(100): WC_Gateway_Klarna_Payments->__construct() #8 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(73): WC_Payment_Gateways->init() #9 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(46): WC_Payment_Gateways->__construct() #10 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-woocommerce.php(1168): WC_Payment_Gateways::instance() #11 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-woocommerce.php(200): WooCommerce->payment_gateways() #12 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Orders/IGFW_Order_CPT.php(314): WooCommerce->__get(‘payment_gateway…’) #13 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/class-wp-hook.php(324): IGFW\Models\Orders\IGFW_Order_CPT->show_invoice_payment_gateway_on_free_orders(true, Object(WC_Cart)) #14 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(true, Array) #15 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1442): apply_filters(‘woocommerce_car…’, true, Object(WC_Cart)) #16 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-kp-klarna-express-checkout.php(47): WC_Cart->needs_payment() #17 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/class-wp-hook.php(324): KP_Klarna_Express_Checkout->maybe_add_pay_button_support(Array) #18 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #19 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-wc-gateway-klarna-payments.php(73): apply_filters(‘wc_klarna_payme…’, Array) #20 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(100): WC_Gateway_Klarna_Payments->__construct() #21 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(73): WC_Payment_Gateways->init() #22 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(46): WC_Payment_Gateways->__construct() #23 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-woocommerce.php(1168): WC_Payment_Gateways::instance() #24 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/klarna-payments-for-woocommerce/includes/kp-functions.php(236): WooCommerce->payment_gateways() #25 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-kp-session.php(73): kp_is_available() #26 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/class-wp-hook.php(324): KP_Session->get_session(Object(WC_Cart)) #27 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #28 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #29 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1433): do_action(‘woocommerce_aft…’, Object(WC_Cart)) #30 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-cart.php(96): WC_Cart->calculate_totals() #31 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(75): WC_Shortcode_Cart::output(Array) #32 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(88): WC_Shortcodes::shortcode_wrapper(Array) #33 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(434): WC_Shortcodes::cart(Array, ”, ‘woocommerce_car…’) #34 [internal function]: do_shortcode_tag(Array) #35 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(woocom…’, ‘do_shortcode_ta…’, ‘

    apply_filters(‘

    render(Array, ‘[woocommerce_ca…’, ‘fusion_text’) #40 [internal function]: do_shortcode_tag(Array) #41 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(fusion…’, ‘do_shortcode_ta…’, ‘

    render(Array, ‘[fusion_text co…’, ‘fusion_builder_…’) #44 [internal function]: do_shortcode_tag(Array) #45 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(fusion…’, ‘do_shortcode_ta…’, ‘[fusion_builder…’) #46 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/fusion-builder/inc/class-fusion-row-element.php(123): do_shortcode(‘[fusion_builder…’) #47 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(434): Fusion_Row_Element->render(Array, ‘[fusion_builder…’, ‘fusion_builder_…’) #48 [internal function]: do_shortcode_tag(Array) #49 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(fusion…’, ‘do_shortcode_ta…’, ‘[fusion_builder…’) #50 /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/fusion-builder/shortcodes/fusion-container.php(1095): do_shortcode(‘[fusion_builder…’) #51 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(434): FusionSC_Container->render(Array, ‘[fusion_builder…’, ‘fusion_builder_…’) #52 [internal function]: do_shortcode_tag(Array) #53 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(fusion…’, ‘do_shortcode_ta…’, ‘[fusion_builder…’) #54 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/class-wp-hook.php(324): do_shortcode(‘[fusion_builder…’) #55 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[fusion_builder…’, Array) #56 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘[fusion_builder…’) #57 /customers/b/d/7/joy4life.se/httpd.www/wp-content/themes/Avada/page.php(24): the_content() #58 /customers/b/d/7/joy4life.se/httpd.www/wp-includes/template-loader.php(106): include(‘/customers/b/d/…’) #59 /customers/b/d/7/joy4life.se/httpd.www/wp-blog-header.php(19): require_once(‘/customers/b/d/…’) #60 /customers/b/d/7/joy4life.se/httpd.www/index.php(17): require(‘/customers/b/d/…’) #61 {main} thrown in /customers/b/d/7/joy4life.se/httpd.www/wp-content/plugins/invoice-gateway-for-woocommerce/Models/Orders/IGFW_Order_CPT.php on line 314

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Fauzan Azizie

    (@fauzanade)

    Hi @anweb,

    We’ve looked into the issue and found that it’s caused by the plugin trying to access WooCommerce’s payment gateways a bit too early — before they’re fully ready. That’s why the error is happening.

    The good news is that we’re already working on a fix to make sure this doesn’t happen again. We’ll include the update in the next version of the Invoice Gateway for WooCommerce plugin. I’ll update you when the update is released.

    Thread Starter anweb

    (@anweb)

    Thank you and I never got you answer via email even if I marked this but anyway I going to get the update for the plugin in wordpress admin

    Thanks,
    anweb

    Hi @fauzanade,

    I’m experiencing the same problems as anweb. Do you have any update about when the fix might be released?

    Best regards,
    neatglyphs

    Plugin Support rymerakristel

    (@rymerakristel)

    Hello @anweb @neatglyphs ,

    Hello @everyone,

    Great news! The Invoice Gateway plugin has just been updated, and we’re excited to let you know that the issue with PO and Klarna Payments has been fully resolved!

    We highly recommend updating your Invoice Gateway plugin as soon as possible to take advantage of this permanent fix.

    Once you’ve updated, please let us know how everything goes, we’d love to hear your feedback!

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

The topic ‘The cart page get error and it’s due to your plugin’ is closed to new replies.