Title: Fatal error: Uncaught Error:
Last modified: September 14, 2022

---

# Fatal error: Uncaught Error:

 *  Resolved [chinesetong](https://wordpress.org/support/users/chinesetong/)
 * (@chinesetong)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-80/)
 * When I adtive the plugin woocommerce, it shows FATAL ERROR as followed:
 *     ```
       Fatal error: Uncaught Error: Call to undefined function putenv() in /www/wwwroot/hmhealth.cn/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37 Stack trace: #0 /www/wwwroot/hmhealth.cn/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php(49): WC_Regenerate_Images_Request->__construct() #1 /www/wwwroot/hmhealth.cn/wp-includes/class-wp-hook.php(307): WC_Regenerate_Images::init() #2 /www/wwwroot/hmhealth.cn/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /www/wwwroot/hmhealth.cn/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /www/wwwroot/hmhealth.cn/wp-settings.php(598): do_action() #5 /www/wwwroot/hmhealth.cn/wp-config.php(96): require_once('...') #6 /www/wwwroot/hmhealth.cn/wp-load.php(50): require_once('...') #7 /www/wwwroot/hmhealth.cn/wp-admin/admin.php(34): require_once('...') #8 /www/wwwroot/hmhealth.cn/wp-admin/index.php(10): require_once('...') #9 {main} thrown in /www/wwwroot/hmhealth.cn/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php on line 37
   
       此站点遇到了致命错误，请查看您站点管理员电子邮箱中收到的邮件来获得指引。
   
       了解有关对WordPress进行故障排除的更多信息。
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-error-80%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Daniyal Ahmed (a11n)](https://wordpress.org/support/users/daniyalahmedk/)
 * (@daniyalahmedk)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-80/#post-16007935)
 * Hi there,
 * Thanks for reaching out.
 * It sounds like `putenv` function is being deliberately disabled via the disable_functions
   directive.
 * You have to remove ‘putenv’ function from the PHP function blacklist. Can you
   please reach out to your hosting provider and see if they can remove this function
   from the blacklist?
 * Let me know how it goes!
 * Best,

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Uncaught Error:’ 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; uncaught error](https://wordpress.org/support/topic-tag/fatal-error-uncaught-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniyal Ahmed (a11n)](https://wordpress.org/support/users/daniyalahmedk/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-80/#post-16007935)
 * Status: resolved