Title: Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data()
Last modified: February 3, 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/)
 * > 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!
    I see this in admin>all products and almost 3 days i cant fix
   this.. Any ideas whats wrong?
    -  This topic was modified 5 years, 4 months ago by [RandomDude](https://wordpress.org/support/users/gazuots/).
    -  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)

 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data/#post-14000174)
 * Hi there 👋
 * Normally, this kind of problem is usually caused by a conflict with your theme
   or with another plugin.
      The best way to determine this is to:
    - Temporarily switch your theme to [Storefront](https://www.woocommerce.com/storefront/)
    - Disable all plugins except for WooCommerce
    - Repeat the action that is causing the problem
 * If you’re not seeing the same problem after completing the conflict test, then
   you know the problem was with the plugins and/or theme you deactivated. To figure
   out which plugin is causing the problem, reactivate your other plugins one by
   one, testing after each, until you find the one causing conflict. [You can find a more detailed explanation on how to do a conflict test here.](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
 * **Before you start**
    1. First, please make sure you have a good backup in place of your full site and
       database. Most hosting companies have this included in the subscription, but
       you could also consider using a service like Jetpack. If something goes wrong,
       it’s nice to know that you can restore your site.
    2. Second, I would suggest installing a plugin called Health Check & Troubleshooting.
       This is a plugin developed by the WordPress community and it allows you to disable
       plugins without affecting your current site visitors.
 * I hope that helps!
 *  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/#post-14007472)
 * > [View post on imgur.com](https://imgur.com/PNWoghe)
 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data/#post-14024788)
 * It sounds like this issue is directly related to the **WooCommerce Blocks**.
 * So in this case, I would like to recommend you to contact us at or WooCommerce
   Blocks support team so that they can help you with this issue. Here is the link
   to their support forum:
 * [https://wordpress.org/plugins/woo-gutenberg-products-block/](https://wordpress.org/plugins/woo-gutenberg-products-block/)
 * Please kindly note that this particular forum is for questions that are directly
   related to the features and functionality of the Core WooCommerce plugin.
 * I hope this helps. 🙂
 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-method-wp_errorget_data/#post-14106669)
 * Since it’s been a while since we last heard back from you, I’m going to mark 
   this thread resolved.
 * Hopefully, you were able to find a solution to your problem! If you have further
   questions, please feel free to open a new topic.
 * Cheers! 🙂

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://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

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