• Resolved mdadvent

    (@mdadvent)


    Hello,
    I have issues on my website :
    1 – logo on header does not appear (apart from the outline of the frame)

    2 – mobile, items on categories take a long time to be visible.

    So in my admin back office, i go to Apperance=> Customize and it give me this error message below. No wait to access to the CCS editor.
    If can help me on this issue showed, thanks in advance :

    Fatal error: Uncaught Error: Call to a member function get() on null in /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/booked/includes/add-ons/woocommerce-payments/lib/woocommerce/class-wc-cart.php:152 Stack trace: #0 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-hook.php(353): Booked_WC_Cart_Hooks::woocommerce_checkout_fields(Array) #1 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #2 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(310): apply_filters(‘woocommerce_che…’, Array) #3 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(334): WC_Checkout->initialize_checkout_fields() #4 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php(573): WC_Checkout->get_checkout_fields(‘billing’) #5 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-blocks-support.php(358): WC_Stripe_UPE_Payment_Gateway->javascript_params() #6 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-blocks-support.php(305): WC_Stripe_Blocks_Support->get_gateway_javascript_params() #7 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce/src/Blocks/Payments/PaymentMethodRegistry.php(62): WC_Stripe_Blocks_Support->get_payment_method_data() #8 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce/src/Blocks/Payments/Api.php(116): Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry->get_all_registered_script_data() #9 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-hook.php(353): Automattic\WooCommerce\Blocks\Payments\Api->add_payment_method_script_data(”) #10 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(”, Array) #11 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/plugin.php(523): WP_Hook->do_action(Array) #12 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php(221): do_action(‘woocommerce_blo…’) #13 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(114): Automattic\WooCommerce\Blocks\BlockTypes\MiniCart->enqueue_data() #14 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-hook.php(353): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_editor_assets(”) #15 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array) #16 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/plugin.php(523): WP_Hook->do_action(Array) #17 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-customize-widgets.php(899): do_action(‘enqueue_block_e…’) #18 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-hook.php(353): WP_Customize_Widgets->enqueue_scripts(”) #19 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array) #20 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-includes/plugin.php(523): WP_Hook->do_action(Array) #21 /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-admin/customize.php(133): do_action(‘customize_contr…’) #22 {main} thrown in /home/clients/1ad70947204e8c183277aef186ddd353/web/wp-content/plugins/booked/includes/add-ons/woocommerce-payments/lib/woocommerce/class-wc-cart.php on line 152

    • This topic was modified 23 hours, 55 minutes ago by mdadvent.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi @mdadvent,

    Thanks for sharing the full error, that makes it much easier to see what’s going on.

    The error comes from the Booked plugin, not from WooCommerce or WooPayments. The file in the first line of the error is:

    wp-content/plugins/booked/includes/add-ons/woocommerce-payments/lib/woocommerce/class-wc-cart.php

    Even though the folder is called “woocommerce-payments”, it’s part of Booked’s own WooCommerce add-on. When the Customizer loads, that code tries to read cart information that isn’t available there, and that stops the page from loading.

    To confirm, you can temporarily deactivate Booked and open Appearance > Customize again. If it loads, the Booked developers are the right people to fix this, so I’d reach out to them through wherever you got the plugin and share the same error with them.

    Once the Customizer opens again, it should also be easier to check your logo settings.

    Best,

    Thread Starter mdadvent

    (@mdadvent)

    Booked is the issue, thanks @gabrielfuentes for your help.
    i will check this with them.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    You are very welcome, @mdadvent! 🙂

    Would you mind taking a minute to leave a quick review about how we resolved this? It really helps us, and other WordPress merchants facing similar issues would benefit from your experience:

    https://wordpress.org/support/plugin/woocommerce/reviews/

    Have a good day ahead!

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

You must be logged in to reply to this topic.