Support » Plugin: WooCommerce » Fatal error: Uncaught Error

  • Resolved filipbohac


    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/ Stack trace: #0 /srv/www/ WC_Regenerate_Images_Request->__construct() #1 /srv/www/ WC_Regenerate_Images::init('') #2 /srv/www/ WP_Hook->apply_filters(NULL, Array) #3 /srv/www/ WP_Hook->do_action(Array) #4 /srv/www/ do_action('init') #5 /srv/www/ require_once('/srv/www/orisko...') #6 /srv/www/ require_once('/srv/www/orisko...') #7 /srv/www/ require_once('/srv/www/orisko...') #8 /srv/www/ require_once('/srv/www/orisko...') #9 {main} thrown in /srv/www/ on line 37

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support gabrielfuentes


    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
    • 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.

    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! 🙂

    Plugin Support laceyrod a11n


    Automattic Happiness Engineer


    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.


    I got the same Error When I had set php version to 8
    but after downgrading to php 7.3 its gone

    Hi, same problem!
    PHP 8.0.1

    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?




    I’m having the same issue.

    Fatal error: Uncaught Error: Call to undefined function putenv() in /www/wwwroot/ Stack trace: #0 /www/wwwroot/ WC_Regenerate_Images_Request->__construct() #1 /www/wwwroot/ WC_Regenerate_Images::init() #2 /www/wwwroot/ WP_Hook->apply_filters() #3 /www/wwwroot/ WP_Hook->do_action() #4 /www/wwwroot/ do_action() #5 /www/wwwroot/ require_once(‘…’) #6 /www/wwwroot/ require_once(‘…’) #7 /www/wwwroot/ require_once(‘…’) #8 /www/wwwroot/ require_once(‘…’) #9 {main} thrown in /www/wwwroot/ 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 8 months ago by ilaaron. Reason: theme & plugins


    Edit: This is a compatibility error with WooCommerce and PHP 8.0! When will WooCommerce be updated to support PHP 8.0?



    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.

    @kaznim @ilaaron @fulminantly1 @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, 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.