Uncaught Error: Call to undefined function putenv() /wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37

Fatal error: Uncaught Error: Call to undefined function putenv() in /www/wwwroot/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37

这个错误,导致一直维护的woocommerce商店不能启用PHP8及以上。

解决方案:

宝塔面板,PHP配置中,删除这个函数限制 。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注