• Resolved jorisb

    (@jorisb)


    I need help with this fatal error.

    When I want to edit the Gutenberg content, I get an Error, see screenshot. Then I get the below error from Mollie Payments for Woocommerce.

    WordPress versie 6.2
    Actief thema: Bricks Child Theme (versie 1.1)
    Huidige plugin: Mollie Payments for WooCommerce (versie 7.3.7)
    PHP versie 8.2.4

    2023-04-19T08:36:34+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents() on null in /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/Voucher/MaybeDisableGateway.php:92
    Stack trace:
    
    0 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/Voucher/MaybeDisableGateway.php(59): Mollie\WooCommerce\Gateway\Voucher\MaybeDisableGateway->numberProductsWithCategory()
    
    1 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/GatewayModule.php(197): Mollie\WooCommerce\Gateway\Voucher\MaybeDisableGateway->maybeDisableMealVoucherGateway()
    
    2 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/class-wp-hook.php(308): Mollie\WooCommerce\Gateway\GatewayModule::Mollie\WooCommerce\Gateway{closure}()
    
    3 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    
    4 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(88): apply_filters()
    
    5 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(70): WC_Payment_Gateways->init()
    
    6 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(43): WC_Payment_Gateways->__construct()
    
    7 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(932): WC_Payment_Gateways::instance()
    
    8 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(174): WooCommerce->payment_gateways()
    
    9 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Schemas/V1/CheckoutSchema.php(122): WooCommerce->__get()
    
    10 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Schemas/V1/AbstractSchema.php(62): Automattic\WooCommerce\StoreApi\Schemas\V1\CheckoutSchema->get_properties()
    
    11 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Routes/V1/AbstractRoute.php(85): Automattic\WooCommerce\StoreApi\Schemas\V1\AbstractSchema->get_item_schema()
    
    12 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Routes/V1/AbstractRoute.php(265): Automattic\WooCommerce\StoreApi\Routes\V1\AbstractRoute->get_item_schema()
    
    13 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/Routes/V1/Checkout.php(71): Automattic\WooCommerce\StoreApi\Routes\V1\AbstractRoute->get_context_param()
    
    14 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/RoutesController.php(113): Automattic\WooCommerce\StoreApi\Routes\V1\Checkout->get_args()
    
    15 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/RoutesController.php(68): Automattic\WooCommerce\StoreApi\RoutesController->register_routes()
    
    16 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/woo-gutenberg-products-block/src/StoreApi/StoreApi.php(28): Automattic\WooCommerce\StoreApi\RoutesController->register_all_routes()
    
    17 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/class-wp-hook.php(308): Automattic\WooCommerce\StoreApi\StoreApi->Automattic\WooCommerce\StoreApi{closure}()
    
    18 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    19 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    20 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/rest-api.php(577): do_action()
    
    21 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/rest-api.php(535): rest_get_server()
    
    22 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/rest-api.php(2889): rest_do_request()
    
    23 [internal function]: rest_preload_api_request()
    
    24 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-includes/block-editor.php(631): array_reduce()
    
    25 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
    
    26 /home/kakauw/domains/kakauwlovers.nl/public_html/wp-admin/post.php(187): require('…')
    
    27 {main}
    
    thrown in /home/kakauw/domains/kakauwlovers.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/Voucher/MaybeDisableGateway.php on line 92
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @jorisb

    It looks like this error is originating in the Voucher gateway. Can you please try temporarily disabling the Voucher gateway to see if this error remains for you when editing pages?

    Please note, the plugin has not yet been tests with PHP 8.2. But we don’t anticipate any major problems relating to newer PHP versions.

    Also, apologies for getting to you just now. I recommend contacting the Mollie Support Team directly for more guidance and faster support response times.

    Thanks!

    Kind regards,
    Niklas

    Thread Starter jorisb

    (@jorisb)

    @niklasinpsyde I don’t even use the Voucher gateway, so it’s off anyway.

    The Github fix below worked for me. Check this thread and code change: https://github.com/mollie/WooCommerce/pull/776

    I also reached out to your support directly but never got another response to that.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @jorisb

    This fix was merged for the latest update, so the error should no longer occur with Mollie 7.3.9.

    If you have further questions or need more help, you can reopen this thread or create a new one.

    Thank you!

    Kind regards,
    Niklas

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

The topic ‘Fatal-errors’ is closed to new replies.