Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in …./plugins/woo-gutenberg-products-block/src/RestApi.php:52
Stack trace: #0 …./plugins/woo-gutenberg-products-block/src/Assets.php(184): AutomatticWooCommerceBlocksRestApi::get_routes_from_namespace(‘wc/store’)
#1 …./wp-includes/class-wp-hook.php(287): AutomatticWooCommerceBlocksAssets::get_wc_block_data(Array)
#2 …./wp-includes/plugin.php(212): WP_Hook->apply_filters(Array, Array)
#3 …./plugins/woo-gutenberg-products-block/src/Assets/AssetDataRegistry.php(132): apply_filters(‘woocommerce_sha…’, Array)
#4 …./plugins/woo-gutenberg-products-block/src/Assets/AssetDataRegistry.php(223): AutomatticWooCommerceBlocksAssetsAssetDataRegistry->initialize_core_data()
#5 /home/te in …./plugins/woo-gutenberg-products-block/src/RestApi.php on line 52
I see this in Admin > Products
and whole week i cant fix this..
Any ideas what could be wrong?
question from:
https://stackoverflow.com/questions/66063178/wordpress-fatal-error-uncaught-error-call-to-undefined-method-wp-errorget-wc 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…