• Resolved etren

    (@etren)


    The fully initialized wordpress site environment, only WooCommerce is installed, and the site crashes after enabling WooCommerce.
    I have tried online installation and upload package installation, every time I get this error.
    The following is the error code returned by the page.
    Fatal error: Uncaught Error: Call to undefined function putenv() in /www/wwwroot/fuyigroup.com/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37 Stack trace: #0 /www/wwwroot/fuyigroup.com/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php(49): WC_Regenerate_Images_Request->__construct() #1 /www/wwwroot/fuyigroup.com/wp-includes/class-wp-hook.php(303): WC_Regenerate_Images::init() #2 /www/wwwroot/fuyigroup.com/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #3 /www/wwwroot/fuyigroup.com/wp-includes/plugin.php(470): WP_Hook->do_action() #4 /www/wwwroot/fuyigroup.com/wp-settings.php(578): do_action() #5 /www/wwwroot/fuyigroup.com/wp-config.php(96): require_once('...') #6 /www/wwwroot/fuyigroup.com/wp-load.php(50): require_once('...') #7 /www/wwwroot/fuyigroup.com/wp-admin/admin.php(34): require_once('...') #8 /www/wwwroot/fuyigroup.com/wp-admin/plugins.php(10): require_once('...') #9 {main} thrown in /www/wwwroot/fuyigroup.com/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php on line 37

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @etren,

    I see there was a similar issue reported here – https://ww.wp.xz.cn/support/topic/woocommerce-php-8-1-wordpress-5-7-2/

    Thus, I would suggest getting in touch with your host to check the PHP version you’re on.

    If you’re on a higher version, you could ask them to continually downgrade it until you get to a PHP version where WooCommerce will run okay. The lowest version you should try downgrading to is PHP 7.4 though.

    Let us know how it goes.
    Thanks.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @etren,

    We’ve not heard back from you in a while. Hopefully, you were able to proceed as advised above.

    I’ll go ahead and mark the thread as resolved. If you have other questions, please feel free to create a new thread.

    Thanks.

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

The topic ‘Site crashed when installing WooCommerce’ is closed to new replies.