Support » Plugin: WooCommerce » Problem when using PHP 8.0.9 + woocommerce

  • Resolved Kristyan Romankiu

    (@kristyan-romankiu)


    Problem when using PHP 8.0.9 does anyone know what it can be? I’ve regenerated the images but it didn’t work. The error only with woocommerce.

    Fatal error: Uncaught Error: Call to undefined function putenv() in /home/www/public_html/eshop10.com.br/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37 Stack trace: #0 /home/www/public_html/eshop10.com.br/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php(49): WC_Regenerate_Images_Request->__construct() #1 /home/www/public_html/eshop10.com.br/wp-includes/class-wp-hook.php(303): WC_Regenerate_Images::init() #2 /home/www/public_html/eshop10.com.br/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #3 /home/www/public_html/eshop10.com.br/wp-includes/plugin.php(470): WP_Hook->do_action() #4 /home/www/public_html/eshop10.com.br/wp-settings.php(578): do_action() #5 /home/www/public_html/eshop10.com.br/wp-config.php(98): require_once(‘…’) #6 /home/www/public_html/eshop10.com.br/wp-load.php(50): require_once(‘…’) #7 /home/www/public_html/eshop10.com.br/wp-blog-header.php(13): require_once(‘…’) #8 /home/www/public_html/eshop10.com.br/index.php(17): require(‘…’) #9 {main} thrown in /home/www/public_html/eshop10.com.br/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php on line 37

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Mirko P. woo-hc

    (@rainfallnixfig)

    Hi @kristyan-romankiu,

    Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Also, please confirm you’ve done a full conflict testing, which aside from deactivating all plugins except WooCommerce also involves changing to a default theme like Storefront. More details here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.

    Thanks.

    Thread Starter Kristyan Romankiu

    (@kristyan-romankiu)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://eshop10.com.br
    Site address (URL): https://eshop10.com.br
    WC Version: 5.6.0
    REST API Version: ✔ 5.6.0
    WC Blocks Version: ✔ 5.5.1
    Action Scheduler Version: ✔ 3.2.1
    WC Admin Version: ✔ 2.5.1
    Log Directory Writable: ✔
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: pt_BR
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.21.0
    PHP Version: 7.4.22
    PHP Post Max Size: 50 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 50000
    cURL Version: 7.70.0
    OpenSSL/1.0.2u
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.5.6-MariaDB-log
    Max Upload Size: 50 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.6.0
    WC Database Prefix: wp_
    Tamanho total do banco de dados: 177.88MB
    Tamanho dos dados do banco de dados: 116.10MB
    Tamanho do índice do banco de dado: 61.78MB
    wp_woocommerce_sessions: Dados: 1.38MB + Índex: 0.06MB + mecanismo InnoDB
    wp_woocommerce_api_keys: Dados: 0.00MB + Índex: 0.00MB + mecanismo MyISAM
    wp_woocommerce_attribute_taxonomies: Dados: 0.00MB + Índex: 0.01MB + mecanismo MyISAM
    wp_woocommerce_downloadable_product_permissions: Dados: 0.02MB + Índex: 0.17MB + mecanismo InnoDB
    wp_woocommerce_order_items: Dados: 0.31MB + Índex: 0.13MB + mecanismo MyISAM
    wp_woocommerce_order_itemmeta: Dados: 1.47MB + Índex: 1.03MB + mecanismo MyISAM
    wp_woocommerce_tax_rates: Dados: 0.00MB + Índex: 0.00MB + mecanismo MyISAM
    wp_woocommerce_tax_rate_locations: Dados: 0.02MB + Índex: 0.05MB + mecanismo InnoDB
    wp_woocommerce_shipping_zones: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_locations: Dados: 0.02MB + Índex: 0.05MB + mecanismo InnoDB
    wp_woocommerce_shipping_zone_methods: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_woocommerce_payment_tokens: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_payment_tokenmeta: Dados: 0.02MB + Índex: 0.05MB + mecanismo InnoDB
    wp_woocommerce_log: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_actions: Dados: 1.52MB + Índex: 0.98MB + mecanismo InnoDB
    wp_actionscheduler_claims: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_groups: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_actionscheduler_logs: Dados: 1.52MB + Índex: 0.41MB + mecanismo InnoDB
    wp_commentmeta: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_comments: Dados: 0.02MB + Índex: 0.09MB + mecanismo InnoDB
    wp_correios_postcodes: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_links: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_options: Dados: 6.48MB + Índex: 0.36MB + mecanismo InnoDB
    wp_postmeta: Dados: 72.59MB + Índex: 44.16MB + mecanismo InnoDB
    wp_posts: Dados: 6.52MB + Índex: 1.14MB + mecanismo InnoDB
    wp_rank_math_404_logs: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_rank_math_analytics_gsc: Dados: 6.52MB + Índex: 9.06MB + mecanismo InnoDB
    wp_rank_math_analytics_objects: Dados: 1.52MB + Índex: 0.19MB + mecanismo InnoDB
    wp_rank_math_internal_links: Dados: 0.22MB + Índex: 0.09MB + mecanismo InnoDB
    wp_rank_math_internal_meta: Dados: 0.08MB + Índex: 0.00MB + mecanismo InnoDB
    wp_rank_math_redirections: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_rank_math_redirections_cache: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_css: Dados: 0.13MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_css_bkp: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_layer_animations: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_revslider_layer_animations_bkp: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_revslider_navigations: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_revslider_navigations_bkp: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_revslider_sliders: Dados: 0.03MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_sliders_bkp: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_slides: Dados: 0.16MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_slides_bkp: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_static_slides: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_revslider_static_slides_bkp: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_smush_dir_images: Dados: 0.36MB + Índex: 0.14MB + mecanismo InnoDB
    wp_termmeta: Dados: 0.09MB + Índex: 0.11MB + mecanismo InnoDB
    wp_terms: Dados: 0.06MB + Índex: 0.03MB + mecanismo InnoDB
    wp_term_relationships: Dados: 0.50MB + Índex: 0.27MB + mecanismo InnoDB
    wp_term_taxonomy: Dados: 0.06MB + Índex: 0.06MB + mecanismo InnoDB
    wp_tm_taskmeta: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_tm_tasks: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_usermeta: Dados: 2.45MB + Índex: 1.39MB + mecanismo MyISAM
    wp_users: Dados: 0.13MB + Índex: 0.11MB + mecanismo MyISAM
    wp_viwec_clicked: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wc_admin_notes: Dados: 0.05MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wc_admin_note_actions: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_category_lookup: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wc_customer_lookup: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_download_log: Dados: 0.02MB + Índex: 0.05MB + mecanismo InnoDB
    wp_wc_order_coupon_lookup: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_order_product_lookup: Dados: 0.02MB + Índex: 0.06MB + mecanismo InnoDB
    wp_wc_order_stats: Dados: 0.02MB + Índex: 0.05MB + mecanismo InnoDB
    wp_wc_order_tax_lookup: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_wc_product_meta_lookup: Dados: 0.41MB + Índex: 0.67MB + mecanismo InnoDB
    wp_wc_reserved_stock: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wc_tax_rate_classes: Dados: 0.02MB + Índex: 0.02MB + mecanismo InnoDB
    wp_wc_webhooks: Dados: 0.02MB + Índex: 0.03MB + mecanismo InnoDB
    wp_woocommerce_termmeta: Dados: 0.02MB + Índex: 0.02MB + mecanismo MyISAM
    wp_wpforms_tasks_meta: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wpgly_pix_receipts: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wpmailsmtp_debug_events: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wpmailsmtp_tasks_meta: Dados: 0.02MB + Índex: 0.00MB + mecanismo InnoDB
    wp_wpr_rucss_resources: Dados: 0.02MB + Índex: 0.06MB + mecanismo InnoDB
    wp_wpr_rucss_used_css: Dados: 10.52MB + Índex: 0.09MB + mecanismo InnoDB
    wp_yith_wcwl: Dados: 0.05MB + Índex: 0.02MB + mecanismo InnoDB
    wp_yith_wcwl_lists: Dados: 0.05MB + Índex: 0.03MB + mecanismo InnoDB
    
    ### Post Type Counts ###
    
    attachment: 4080
    custom_css: 1
    customize_changeset: 1
    elementor_library: 5
    mc4wp-form: 1
    nav_menu_item: 230
    oembed_cache: 16
    page: 10
    post: 5
    product: 1349
    product_variation: 2104
    revision: 9
    shop_order: 15
    shop_order_refund: 1
    staticblocks: 11
    viwec_template: 14
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (25) ###
    
    Akismet Anti-Spam: por Automattic – 4.1.10
    Click to Chat: por HoliThemes – 3.3.9
    Elementor: por Elementor.com – 3.4.2
    XStore Core: por 8theme – 4.0.5
    Kayo Bruno - Braspress para WooCommerce: por Kayo Bruno  – 1.2.2
    Loco Translate: por Tim Whitlock – 2.5.3
    MC4WP: Mailchimp for WordPress: por ibericode – 4.8.6
    PayPal Brasil para WooCommerce: por PayPal – 1.3.0
    Pix por Piggly (para Woocommerce): por Piggly Lab – 1.3.15
    Slider Revolution: por ThemePunch – 6.5.4
    Rank Math SEO: por Rank Math – 1.0.70
    WebP Express: por Bjørn Rosell – 0.20.1
    WooCommerce UPC, EAN, and ISBN: por Scott Bolinger – 0.5.1
    Claudio Sanches - Correios for WooCommerce: por Claudio Sanches – 3.8.0
    Brazilian Market on WooCommerce: por Claudio Sanches – 3.7.2
    Mercado Pago payments for WooCommerce: por Mercado Pago – 5.3.1
    WooCommerce: por Automattic – 5.6.0
    WP Mail SMTP: por WPForms – 3.0.3
    WP-Optimize - Clean, Compress, Cache: por David Anderson
    Ruhani Rabin
    Team Updraft – 3.1.12
    
    WP Rocket: por WP Media – 3.9.0.5
    Smush Pro: por WPMU DEV – 3.8.8
    WPForms Lite: por WPForms – 1.6.8.1
    WPMU DEV Dashboard: por WPMU DEV – 4.11.2
    WPS Hide Login: por WPServeur
    NicolasKulka
    wpformation – 1.8.5
    
    YITH WooCommerce Wishlist: por YITH – 3.0.25
    
    ### Inactive Plugins (1) ###
    
    XStore AMP: por 8theme – 1.0.1
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: BRL (R$)
    Currency Position: left
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Base da loja: #8 - /shop/
    Carrinho: #9 - /cart/
    Finalizar compra: #10 - /checkout/
    Minha conta: #11 - /my-account/
    Termos e condições: ❌ Página não definida
    
    ### Theme ###
    
    Name: XStore Child
    Version: 1.0
    Author URL: http://8theme.com
    Child Theme: ✔
    Parent Theme Name: XStore
    Parent Theme Version: 8.0.5
    Parent Theme Author URL: http://www.8theme.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: xstore/woocommerce/archive-product.php
    xstore/woocommerce/cart/cart-empty.php
    xstore/woocommerce/cart/cart-item-data.php
    xstore/woocommerce/cart/cart-shipping.php
    xstore/woocommerce/cart/cart.php
    xstore/woocommerce/cart/cross-sells.php
    xstore/woocommerce/cart/mini-cart.php
    xstore/woocommerce/checkout/form-billing.php
    xstore/woocommerce/checkout/form-checkout.php
    xstore/woocommerce/checkout/form-shipping.php
    xstore/woocommerce/checkout/thankyou.php
    xstore/woocommerce/content-product-cat.php
    xstore/woocommerce/content-product.php
    xstore/woocommerce/content-single-product.php
    xstore/woocommerce/content-widget-product.php
    xstore/woocommerce/content-widget-reviews.php
    xstore/woocommerce/global/breadcrumb.php
    xstore/woocommerce/global/form-login.php
    xstore/woocommerce/global/wrapper-end.php
    xstore/woocommerce/global/wrapper-start.php
    xstore/woocommerce/loop/loop-end.php
    xstore/woocommerce/loop/loop-start.php
    xstore/woocommerce/loop/no-products-found.php
    xstore/woocommerce/loop/result-count.php
    xstore/woocommerce/myaccount/dashboard.php
    xstore/woocommerce/myaccount/form-login.php
    xstore/woocommerce/myaccount/navigation.php
    xstore/woocommerce/single-product/add-to-cart/simple.php
    xstore/woocommerce/single-product/meta.php
    xstore/woocommerce/single-product/product-image.php
    xstore/woocommerce/single-product/related.php
    xstore/woocommerce/single-product/tabs/tabs.php
    xstore/woocommerce/single-product/title.php
    xstore/woocommerce/single-product/up-sells.php
    xstore/woocommerce/single-product.php
    
    ### Action Scheduler ###
    
    Complete: 2.973
    Oldest: 2021-07-23 13:46:56 -0300
    Newest: 2021-08-23 10:09:24 -0300
    
    Failed: 1
    Oldest: 2021-04-30 19:26:05 -0300
    Newest: 2021-04-30 19:26:05 -0300
    
    Pending: 6
    Oldest: 2021-08-23 21:26:56 -0300
    Newest: 2021-08-27 01:01:13 -0300
    
    ### Status report information ###
    
    Generated at: 2021-08-23 12:59:07 -03:00
    
    Thread Starter Kristyan Romankiu

    (@kristyan-romankiu)

    Yes, I disabled all plugins and it worked fine, and the problem came back when woocommerce is active

    Plugin Support Gabriel F. a11n

    (@gabrielfuentes)

    Hi there 👋

    Thank you for letting us know that it worked just fine when you disabled all the plugins.

    That concludes that there is a plugin that is conflicting with WooCommerce. Were you able to find which one is the culprit?
     
    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.

    Cheers.

    Thread Starter Kristyan Romankiu

    (@kristyan-romankiu)

    I did a lot of tests here, I found out that the problem is with woocommerce.
    I did a fresh install without plugins only with woocommerce and it gives an error with PHP8.0.9
    Will there be woocommerce update to PHP8 ?

    Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @kristyan-romankiu!

    Will there be woocommerce update to PHP8 ?

    Please see https://github.com/woocommerce/woocommerce/issues/27674.

    You are welcome to open a new request here and report it there so the developers can take a closer look:

    https://github.com/woocommerce/woocommerce/issues

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem when using PHP 8.0.9 + woocommerce’ is closed to new replies.