Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

woocommerce - Wordpress fatal error: Uncaught Error: Call to undefined method WP_Error::get_wc_block_data()

enter image description here

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...