Title: Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()
Last modified: February 5, 2021

---

# Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()

 *  Resolved [RandomDude](https://wordpress.org/support/users/gazuots/)
 * (@gazuots)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data-2/)
 * > 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): Automattic\WooCommerce\
   > Blocks\RestApi::get_routes_from_namespace(‘wc/store’) #1 …./wp-includes/class-
   > wp-hook.php(287): Automattic\WooCommerce\Blocks\Assets::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): Automattic\WooCommerce\Blocks\
   > Assets\AssetDataRegistry->initialize_core_data() #5 /home/te in …./plugins/
   > woo-gutenberg-products-block/src/RestApi.php on line 52
 * Hey woo lovers,
    Any idea what happend after update? I see this error in ADMIN
   > PRODUCTS
    -  This topic was modified 5 years, 4 months ago by [RandomDude](https://wordpress.org/support/users/gazuots/).

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

 *  Thread Starter [RandomDude](https://wordpress.org/support/users/gazuots/)
 * (@gazuots)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data-2/#post-14007468)
 * > [View post on imgur.com](https://imgur.com/PNWoghe)
 *  Plugin Author [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data-2/#post-14007662)
 * [@gazuots](https://wordpress.org/support/users/gazuots/) I’m not seeing this 
   problem locally or on some test sites running the latest version. Can you provide
   the System Status report so we can see what plugins you are running alongside
   blocks?
 *  Thread Starter [RandomDude](https://wordpress.org/support/users/gazuots/)
 * (@gazuots)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data-2/#post-14007719)
 * I found where the problem is.. Its custom theme plugin Thembay Elementor. And
   if i disable it all theme just crash. Support not responding 3 days 🙁
 *  Plugin Support [Damianne P (a11n)](https://wordpress.org/support/users/drwpcom/)
 * (@drwpcom)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data-2/#post-14066785)
 * Hi [@gazuots](https://wordpress.org/support/users/gazuots/). I’m going to go 
   ahead and close this thread since you’ve identified the issue is with your theme
   plugin. I hope that you get a response to help you resolve the issue soon.

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

The topic ‘Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-gutenberg-products-block_71608f.
   svg)
 * [WooCommerce Blocks](https://wordpress.org/plugins/woo-gutenberg-products-block/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-gutenberg-products-block/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-gutenberg-products-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-gutenberg-products-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-gutenberg-products-block/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Damianne P (a11n)](https://wordpress.org/support/users/drwpcom/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data-2/#post-14066785)
 * Status: resolved