Title: Fatal error: Uncaught Error
Last modified: June 2, 2021

---

# Fatal error: Uncaught Error

 *  Resolved [filipbohac](https://wordpress.org/support/users/filipbohac/)
 * (@filipbohac)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/)
 * Hello i got this fatal error, and now i don´t know how to solve it.
 * `Fatal error: Uncaught Error: Call to undefined function putenv() in /srv/www/
   oriskovna.cz/www/wp-content/plugins/woocommerce/includes/class-wc-regenerate-
   images-request.php:37 Stack trace: #0 /srv/www/oriskovna.cz/www/wp-content/plugins/
   woocommerce/includes/class-wc-regenerate-images.php(49): WC_Regenerate_Images_Request-
   >__construct() #1 /srv/www/oriskovna.cz/www/wp-includes/class-wp-hook.php(287):
   WC_Regenerate_Images::init('') #2 /srv/www/oriskovna.cz/www/wp-includes/class-
   wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 /srv/www/oriskovna.cz/
   www/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #4 /srv/www/oriskovna.
   cz/www/wp-settings.php(557): do_action('init') #5 /srv/www/oriskovna.cz/www/wp-
   config.php(77): require_once('/srv/www/orisko...') #6 /srv/www/oriskovna.cz/www/
   wp-load.php(37): require_once('/srv/www/orisko...') #7 /srv/www/oriskovna.cz/
   www/wp-admin/admin.php(34): require_once('/srv/www/orisko...') #8 /srv/www/oriskovna.
   cz/www/wp-admin/user-edit.php(10): require_once('/srv/www/orisko...') #9 {main}
   thrown in /srv/www/oriskovna.cz/www/wp-content/plugins/woocommerce/includes/class-
   wc-regenerate-images-request.php on line 37`
 * 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-55%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-13879720)
 * Hi there 👋
 * This kind of problem is usually caused by either 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! 🙂
 *  [laceyrod](https://wordpress.org/support/users/laceyrod/)
 * (@laceyrod)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-13910546)
 * Howdy,
 * This thread has been inactive for a bit, so I’m going to mark it as `Resolved`
   now for the overall health of the forums. Please feel free to open a new one 
   if you have any further questions.
 * Cheers!
 *  [superbotics](https://wordpress.org/support/users/superbotics/)
 * (@superbotics)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-14009682)
 * I got the same Error When I had set php version to 8
    but after downgrading to
   php 7.3 its gone
 *  [fulminantly1](https://wordpress.org/support/users/fulminantly1/)
 * (@fulminantly1)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-14024824)
 * Hi, same problem!
    PHP 8.0.1 class-wc-regenerate-images-request.php
 * all plugins are turn off
    theme Avada 7.2.1
 * wordpress after reinstal
 * maybe it is problem with hosting ngis confiq?
    or it is woocomerce problem?
 * thanks
 *  [ilaaron](https://wordpress.org/support/users/ilaaron/)
 * (@ilaaron)
 * [5 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-14499921)
 * I’m having the same issue.
 * Fatal error: Uncaught Error: Call to undefined function putenv() in /www/wwwroot/
   topnotch.vip/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-
   request.php:37 Stack trace: #0 /www/wwwroot/topnotch.vip/wp-content/plugins/woocommerce/
   includes/class-wc-regenerate-images.php(49): WC_Regenerate_Images_Request->__construct()#
   1 /www/wwwroot/topnotch.vip/wp-includes/class-wp-hook.php(292): WC_Regenerate_Images::
   init() #2 /www/wwwroot/topnotch.vip/wp-includes/class-wp-hook.php(316): WP_Hook-
   >apply_filters() #3 /www/wwwroot/topnotch.vip/wp-includes/plugin.php(484): WP_Hook-
   >do_action() #4 /www/wwwroot/topnotch.vip/wp-settings.php(560): do_action() #
   5 /www/wwwroot/topnotch.vip/wp-config.php(81): require_once(‘…’) #6 /www/wwwroot/
   topnotch.vip/wp-load.php(37): require_once(‘…’) #7 /www/wwwroot/topnotch.vip/
   wp-admin/admin.php(34): require_once(‘…’) #8 /www/wwwroot/topnotch.vip/wp-admin/
   plugins.php(10): require_once(‘…’) #9 {main} thrown in /www/wwwroot/topnotch.
   vip/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.
   php on line 37
    There has been a critical error on this website. Please check
   your site admin email inbox for instructions.
 * Learn more about troubleshooting WordPress.
 * Whole site is inaccessible, please help!
 * I’m using storefront theme and only woocommerce activated.
    -  This reply was modified 5 years ago by [ilaaron](https://wordpress.org/support/users/ilaaron/).
      Reason: theme & plugins
 *  [ilaaron](https://wordpress.org/support/users/ilaaron/)
 * (@ilaaron)
 * [5 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-14500109)
 * Edit: This is a compatibility error with WooCommerce and PHP 8.0! When will WooCommerce
   be updated to support PHP 8.0?
 *  [kaznim](https://wordpress.org/support/users/kaznim/)
 * (@kaznim)
 * [5 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-14512514)
 * I have the same problem. PHP 8.1 + WooCommerce 5.3.0 + WordPress 5.7.2.
 * Everithing works fone on PHP 7.4, but after switching to 8.1 it doesnt work.
 *  Moderator [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/)
 * (@tobifjellner)
 * [5 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-14512630)
 * [@kaznim](https://wordpress.org/support/users/kaznim/) [@ilaaron](https://wordpress.org/support/users/ilaaron/)
   [@fulminantly1](https://wordpress.org/support/users/fulminantly1/) [@superbotics](https://wordpress.org/support/users/superbotics/)
   
   Please do not jump into other topics and detract from their problem. If the troubleshooting
   already posted made no difference for you, then, as per the [Forum FAQ](https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too),
   please post your own topic. A lot more people will see your post, and that way
   you stand a good chance of getting the assistance you want. Despite any similarity
   in symptoms, your issue is likely to be completely different because of possible
   differences in physical servers, accounts, hosts, plugins, theme, configurations,
   etc. Thus one problem, on one setup is not indicative of the functionality and
   reliability of an application as a whole. I’m closing this thread now.

Viewing 8 replies - 1 through 8 (of 8 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/)

 * 8 replies
 * 7 participants
 * Last reply from: [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-55/#post-14512630)
 * Status: resolved