• Resolved Bari007

    (@bari007)


    Hi.

    On my eshop [ redundant link removed ] I get fatal error after upgrade from PHP 7.4 to PHP 8.0. I don’t know what causes the error or how to troubleshoot it. I just get then automatic email report from wordpress saying that the error was caused by WooCommerce.

    Log:

    2021-12-07T07:26:31+00:00 CRITICAL Uncaught Error: Call to undefined function putenv() in /var/www/sites/tiens-ib.cz/www/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37
    Stack trace:
    #0 /var/www/sites/tiens-ib.cz/www/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php(49): WC_Regenerate_Images_Request->__construct()
    #1 /var/www/sites/tiens-ib.cz/www/wp-includes/class-wp-hook.php(303): WC_Regenerate_Images::init()
    #2 /var/www/sites/tiens-ib.cz/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 /var/www/sites/tiens-ib.cz/www/wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 /var/www/sites/tiens-ib.cz/www/wp-settings.php(578): do_action()
    #5 /var/www/sites/tiens-ib.cz/www/wp-config.php(90): require_once('...')
    #6 /var/www/sites/tiens-ib.cz/www/wp-load.php(50): require_once('...')
    #7 /var/www/sites/tiens-ib.cz/www/wp-admin/admin-ajax.php(22): require_once('...')
    #8 {main}
      thrown v /var/www/sites/tiens-ib.cz/www/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php na ?ádku 37

    System state report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.tiens-ib.cz
    Site address (URL): https://www.tiens-ib.cz
    WC Version: 5.9.0
    REST API Version: ? 5.9.0
    WC Blocks Version: ? 6.1.0
    Action Scheduler Version: ? 3.3.0
    WC Admin Version: ? 2.8.0
    Log Directory Writable: ?
    WP Version: 5.8.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: cs_CZ
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.20.2
    PHP Version: 7.4.26
    PHP Post Max Size: 32 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 1000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.6.5-MariaDB-1:10.6.5+maria~focal
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.9.0
    WC Database Prefix: aaibxy_
    Celková velikost databáze: 25.38MB
    Velikost dat databáze: 19.70MB
    Velikost indexu databáze: 5.68MB
    aaibxy_woocommerce_sessions: Data: 5.02MB + Index: 0.08MB + Engine InnoDB
    aaibxy_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
    aaibxy_woocommerce_order_items: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
    aaibxy_woocommerce_order_itemmeta: Data: 0.45MB + Index: 0.56MB + Engine InnoDB
    aaibxy_woocommerce_tax_rates: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    aaibxy_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    aaibxy_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    aaibxy_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    aaibxy_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_actionscheduler_actions: Data: 0.08MB + Index: 0.13MB + Engine InnoDB
    aaibxy_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    aaibxy_aws_index: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    aaibxy_cf7dbplugin_st: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_cf7dbplugin_submits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    aaibxy_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_comments: Data: 0.23MB + Index: 0.28MB + Engine InnoDB
    aaibxy_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_itsec_dashboard_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_itsec_distributed_storage: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_itsec_fingerprints: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    aaibxy_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_itsec_lockouts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    aaibxy_itsec_logs: Data: 2.02MB + Index: 0.16MB + Engine InnoDB
    aaibxy_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    aaibxy_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_options: Data: 3.50MB + Index: 0.14MB + Engine InnoDB
    aaibxy_postmeta: Data: 2.52MB + Index: 1.89MB + Engine InnoDB
    aaibxy_posts: Data: 1.52MB + Index: 0.16MB + Engine InnoDB
    aaibxy_ps_exclude: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_ps_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_ps_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_ps_product_sku: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_usermeta: Data: 0.19MB + Index: 0.19MB + Engine InnoDB
    aaibxy_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    aaibxy_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_wc_customer_lookup: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    aaibxy_wc_download_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    aaibxy_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_wc_order_product_lookup: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
    aaibxy_wc_order_stats: Data: 0.05MB + Index: 0.08MB + Engine InnoDB
    aaibxy_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    aaibxy_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_wc_webhooks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_wpify_woo_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    aaibxy_yoast_indexable: Data: 0.22MB + Index: 0.13MB + Engine InnoDB
    aaibxy_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    aaibxy_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    aaibxy_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    aaibxy_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    amn_exact-metrics: 1
    anr-post: 1
    attachment: 145
    custom_css: 2
    flamingo_contact: 42
    flamingo_inbound: 2
    itsec-dash-card: 6
    itsec-dashboard: 1
    nav_menu_item: 11
    page: 15
    post: 5
    product: 60
    revision: 11
    shop_order: 391
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (14) ###
    
    Advanced noCaptcha & invisible Captcha: o WP White Security – 6.1.7
    iThemes Security: o iThemes – 8.0.2
    Email Encoder - Protect Email Addresses: o Ironikus – 2.1.2
    Homepage Control: o WooThemes – 2.0.3
    Loco Translate: o Tim Whitlock – 2.5.5
    Shortcodes Ultimate: o Vladimir Anokhin – 5.11.1
    WooCommerce UPC, EAN, and ISBN: o Scott Bolinger – 0.5.1
    Pay for Payment for WooCommerce: o Karolína Vysko?ilová – 2.1.4
    WooCommerce: o Automattic – 5.9.0
    Yoast SEO: o Tym Yoast – 17.7.1
    WP Mail SMTP: o WPForms – 3.2.1
    WPForms Lite: o WPForms – 1.7.1.2
    WPify Woo: o WPify s.r.o. – 3.3.41
    Woocommerce Zbo?í Mě?ení konverzí: o toret.cz – 1.6
    
    ### Inactive Plugins (0) ###
    
    ### Must Use Plugins (1) ###
    
    WP Password bcrypt: o Roots – 1.0.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: ?
    Currency: CZK (K?)
    Currency Position: right_space
    Thousand Separator: 
    Decimal Separator: ,
    Number of Decimals: 0
    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 ###
    
    Obchod: #7 - /obchod/
    Ko?ík: #8 - /kosik/
    Pokladna: #9 - /pokladna/
    M?j ú?et: #10 - /ucet/
    Obchodní podmínky: #497 - /obchodni-podminky/
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.9.1
    Author URL: https://woocommerce.com/
    Child Theme: ? – Pokud upravujete WooCommerce ?ablonu
    kterou jste nevytvo?ili
    doporu?ujeme pou?ít odvozenou ?ablonu. Viz Jak vytvo?it odvozenou ?ablonu (anglicky)
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Dokon?eno: 153
    Oldest: 2021-11-06 20:45:23 +0100
    Newest: 2021-12-07 13:40:42 +0100
    
    ?ekající: 5
    Oldest: 2021-12-07 15:13:13 +0100
    Newest: 2021-12-12 17:30:34 +0100
    
    ### Status report information ###
    
    Generated at: 2021-12-07 13:55:09 +01:00
    
    • This topic was modified 3 years, 3 months ago by Bari007.
    • This topic was modified 3 years, 3 months ago by Jan Dembowski.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @bari007,

    On my eshop [ redundant link removed ] I get fatal error after upgrade from PHP 7.4 to PHP 8.0. I don’t know what causes the error or how to troubleshoot it. I just get then automatic email report from wordpress saying that the error was caused by WooCommerce.

    I understand a critical error is being triggered on your website when you upgrade to PHP 8.0.

    The latest stable release of PHP 8.0 is version 8.0.13. Can you confirm if that is the version you are attempting to upgrade to?

    If possible, you might want to look to update to PHP version 8.1.0 which is the current stable release.

    Please let us know how you get on with that.

    Kind regards,

    Thread Starter Bari007

    (@bari007)

    Hi.

    The version I use is PHP 8.0.13. PHP 8.1.0 is not yet supported even by WordPress itself.

    But I found out an interesting thing. Because the eshop is a production site, so I can’t play with it and test disabling plugins and stuff. So I moved the site to another server with the same PHP 8.0.13 and it works like a charm. So I am wondering what can be wrong?

    • This reply was modified 3 years, 3 months ago by Bari007.
    Thread Starter Bari007

    (@bari007)

    Problem solved. Function putenv was blocked in the config file. Obviously it was not a problem for PHP 7.4, but for some reason it was a problem for PHP 8.0. Now with putenv allowed, everything works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error with PHP 8.0’ is closed to new replies.