• Resolved francescolaperna

    (@francescolaperna)


    Hi,
    today I found out in my website (which is still in development not reachable, so I can’t share a link to view) I’m receiving a lot of times a fatal error on my cart page and also on the checkout page, related to WP Blocks plugin.

    The error is the following (for Cart.php, but the same also for Checkout.php):

    Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/RestApi.php:64 Stack trace: #0 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/AbstractBlock.php(349): Automattic\WooCommerce\Blocks\RestApi->get_routes_from_namespace('wc/store') #1 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/Cart.php(88): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_data(Array) #2 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/AbstractBlock.php(287): Automattic\WooCommerce\Blocks\BlockTypes\Cart->enqueue_data(Array) #3 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/Cart.php(59): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets(Array) #4 /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-p in /web/htdocs/www.zona-tre.com/home/wp-content/plugins/woo-gutenberg-products-block/src/RestApi.php on line 64

    This is really important since it is in the final steps before customers buy our products so it’s necessary all works fine.
    Do you know why this is happening and how to possibly fix this??

    Many thanks in advance.
    Francesco

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support tijosh

    (@tijosh)

    Hi @francescolaperna,

    Can you confirm if this problem exists with all other plugins deactivated besides WooCommerce and WooCommerce Blocks, along with a default theme like Storefront activated?

    Thread Starter francescolaperna

    (@francescolaperna)

    Hi @tijosh,
    I don’t know if this is related to the fact yesterday I updated the WP Block plugin again (now V5.1.0), but I’m not encountering the error no more since then.
    I made several tests and it seems it works fine now.

    I hope it continues in future. Thanks for your support.

    Plugin Support Dani F. a11n

    (@danielinhou)

    Hi @francescolaperna,

    Glad to hear you got it working the way you needed. Thanks for the update!

    I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()’ is closed to new replies.