Title: Fatal error with API
Last modified: April 21, 2022

---

# Fatal error with API

 *  Resolved [infosws](https://wordpress.org/support/users/nicksws/)
 * (@nicksws)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-with-api/)
 * Hi,
 * Using the latest plugin and WC 6.4.1
 * Tried to test API with /wp-json/lmfwc/v2/licenses with API keys and get this 
   error:
 * Fatal error: Uncaught Error: Call to undefined function LicenseManagerForWooCommerce\
   API\wc_api_hash() in /home/XXXX/public_html/woocommerce/wp-content/plugins/license-
   manager-for-woocommerce/includes/api/Authentication.php:221 Stack trace: #0
 * I’m testing this out for a client in a sandbox so can provide more details if
   needed.
 * Am I doing something wrong?

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

 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-with-api/#post-15584104)
 * Hi [@nicksws](https://wordpress.org/support/users/nicksws/)
 * Hope you are doing good.
 * Can you please share a complete screen-recorded video of this process? my technical
   team can’t reproduce this on our staging sites so share the use case and share
   the video also then we will check and test again.
 * thanks
 *  [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-with-api/#post-15628719)
 * [@nicksws](https://wordpress.org/support/users/nicksws/)
 * We haven’t heard from you so we’re going to mark this thread as resolved. Feel
   free to open a new one if you need it.
 * Thanks

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

The topic ‘Fatal error with API’ is closed to new replies.

 * ![](https://ps.w.org/license-manager-for-woocommerce/assets/icon-256x256.gif?
   rev=2824216)
 * [License Manager for WooCommerce](https://wordpress.org/plugins/license-manager-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/license-manager-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/license-manager-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/license-manager-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/license-manager-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/license-manager-for-woocommerce/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-with-api/#post-15628719)
 * Status: resolved