• With the mollie 8.0.1 version navigating to the my account profile and when then navigating to the second page of order history the website creates a fatal error.
    This is resolved when downgrading to Mollie 7.9.1

    the php error:

    [16-May-2025 09:59:31 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_currency() on bool in /data/sites/web/redacted-site-name/www/wp-content/plugins/mollie-payments-for-woocommerce/src/Shared/Data.php:532
    Stack trace:
    #0 /data/sites/web/redacted-site-name/www/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/MolliePaymentGatewayHandler.php(403): Mollie\WooCommerce\Shared\Data->getOrderCurrency(false)
    #1 /data/sites/web/redacted-site-name/www/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/MolliePaymentGatewayHandler.php(153): Mollie\WooCommerce\Gateway\MolliePaymentGatewayHandler->getCurrencyFromOrder()
    #2 /data/sites/web/redacted-site-name/www/wp-content/plugins/mollie-payments-for-woocommerce/src/Subscription/MollieSubscriptionGatewayHandler.php(493): Mollie\WooCommerce\Gateway\MolliePaymentGatewayHandler->is_available(Object(Mollie\Inpsyde\PaymentGateway\PaymentGateway))
    #3 /data/sites/web/redacted-site-name/www/wp-content/plugins/mollie-payments-for-woocommerce/src/PaymentMethods/AbstractPaymentMethod.php(264): Mollie\WooCommerce\Subscription\MollieSubscriptionGatewayHandler->is_available(Object(Mollie\Inpsyde\PaymentGateway\PaymentGateway))
    #4 /data/sites/web/redacted-site-name/www/wp-content/plugins/mollie-payments-for-woocommerce/lib/payment-gateway/src/PaymentGateway.php(94): Mollie\WooCommerce\PaymentMethods\AbstractPaymentMethod::Mollie\WooCommerce\PaymentMethods\{closure}(Object(Mollie\Inpsyde\PaymentGateway\PaymentGateway))
    #5 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(327): Mollie\Inpsyde\PaymentGateway\PaymentGateway->is_available()
    #6 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/wc-account-functions.php(125): WC_Payment_Gateways->get_available_payment_gateways()
    #7 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/templates/myaccount/navigation.php(27): wc_get_account_menu_items()
    #8 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include('/data/sites/web...')
    #9 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3514): wc_get_template('myaccount/navig...')
    #10 /data/sites/web/redacted-site-name/www/wp-includes/class-wp-hook.php(324): woocommerce_account_navigation('')
    #11 /data/sites/web/redacted-site-name/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #12 /data/sites/web/redacted-site-name/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #13 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/templates/myaccount/my-account.php(25): do_action('woocommerce_acc...')
    #14 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include('/data/sites/web...')
    #15 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(125): wc_get_template('myaccount/my-ac...', Array)
    #16 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(57): WC_Shortcode_My_Account::my_account(Array)
    #17 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(75): WC_Shortcode_My_Account::output(Array)
    #18 /data/sites/web/redacted-site-name/www/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(118): WC_Shortcodes::shortcode_wrapper(Array, Array)
    #19 /data/sites/web/redacted-site-name/www/wp-includes/shortcodes.php(434): WC_Shortcodes::my_account(Array, '', 'woocommerce_my_...')
    #20 [internal function]: do_shortcode_tag(Array)
    #21 /data/sites/web/redacted-site-name/www/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(woocom...', 'do_shortcode_ta...', '[woocommerce_my...')
    #22 /data/sites/web/redacted-site-name/www/wp-includes/class-wp-hook.php(324): do_shortcode('[woocommerce_my...')
    #23 /data/sites/web/redacted-site-name/www/wp-includes/plugin.php(205): WP_Hook->apply_filters('[woocommerce_my...', Array)
    #24 /data/sites/web/redacted-site-name/www/wp-includes/post-template.php(256): apply_filters('the_content', '[woocommerce_my...')
    #25 /data/sites/web/redacted-site-name/www/wp-content/themes/storefront/inc/storefront-template-functions.php(352): the_content()
    #26 /data/sites/web/redacted-site-name/www/wp-includes/class-wp-hook.php(324): storefront_page_content('')
    #27 /data/sites/web/redacted-site-name/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #28 /data/sites/web/redacted-site-name/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #29 /data/sites/web/redacted-site-name/www/wp-content/themes/storefront/content-page.php(18): do_action('storefront_page')
    #30 /data/sites/web/redacted-site-name/www/wp-includes/template.php(812): require('/data/sites/web...')
    #31 /data/sites/web/redacted-site-name/www/wp-includes/template.php(745): load_template('/data/sites/web...', false, Array)
    #32 /data/sites/web/redacted-site-name/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array)
    #33 /data/sites/web/redacted-site-name/www/wp-content/themes/storefront/page.php(24): get_template_part('content', 'page')
    #34 /data/sites/web/redacted-site-name/www/wp-includes/template-loader.php(106): include('/data/sites/web...')
    #35 /data/sites/web/redacted-site-name/www/wp-blog-header.php(19): require_once('/data/sites/web...')
    #36 /data/sites/web/redacted-site-name/www/index.php(17): require('/data/sites/web...')
    #37 {main}
    thrown in /data/sites/web/redacted-site-name/www/wp-content/plugins/mollie-payments-for-woocommerce/src/Shared/Data.php on line 532

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

Viewing 1 replies (of 1 total)
  • Plugin Support Femi

    (@femiyb)

    Hello @rdd

    Thanks for raising this.

    I have tested but could not reproduce this on my side, however I have forwarded this to a developer, who mentioned that this might be related to the fact that the ‘my-account’ page has been renamed on your site.

    They are currently looking into this, and I will let you know as soons there is any update.

    Regards,
    Femi.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error on order history’ is closed to new replies.