• Resolved keltons

    (@keltons)


    Hi,

    I have this fatal error:

    Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/RestApi.php:64 Stack trace: #0 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(349): Automattic\WooCommerce\Blocks\RestApi->get_routes_from_namespace('wc/store') #1 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(287): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_data(Array) #2 /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(84): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->enqueue_assets(Array) #3 /home/xxxx/public_html/wp-includes/class-wp-block.php(221): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, '\n<div class="wp...', Object(WP_Block)) #4 /home/xxxx/publ in /home/xxxx/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/RestApi.php on line 64

    What is this? Please fix it or give me a fix for my not working shop.

    Thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @keltons,

    It sounds like this error is directly related to the WooCommerce Blocks.

    So in this case, I would like to recommend you to contact us at our WooCommerce Blocks support team so that they can help you with this issue. Here is the link to their support forum:

    https://ww.wp.xz.cn/support/plugin/woo-gutenberg-products-block/

    Thanks.

    Thread Starter keltons

    (@keltons)

    Thank you @rainfallnixfig

    I don’t have WooCommerce Blocks installed.
    I found the source of error. I had a widget as blocks (a search widget for products on my shop). That widget being a “blocks widget” and didn’t have the “WooCommerce bocks” plugin + Elementor gave me that error.

    Just replacing the widget as a normal one and not a blocks widget fixed my problem.

    Thanks,

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello,

    Just replacing the widget as a normal one and not a blocks widget fixed my problem.

    Great! Glad to know that the issue is resolved now. You did a good job finding the culprits and fixing the issue by yourself.

    Now that the issue is resolved, feel free to create a new topic if you need assistance with anything else.

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

The topic ‘Fatal Error’ is closed to new replies.