• Resolved letterafterz

    (@letterafterz)


    One of my clients is getting a bunch of errors like this in my debug log, looks like it’s not running fallbacks on images with missing height or width arrays.

    Any thoughts on taking a deeper dive, such as identify which images are causing these errors?

    [21-Sep-2022 00:43:30 UTC] PHP Warning: Undefined array key "height" in ...wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 277
    
    [21-Sep-2022 00:43:30 UTC] PHP Warning: Undefined array key "width" in ...wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 276
    
    [21-Sep-2022 00:43:30 UTC] PHP Warning: Undefined array key "height" in ...wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 277
    
    [21-Sep-2022 00:43:30 UTC] PHP Warning: Undefined array key "width" in ...wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 276
    
    [21-Sep-2022 00:43:30 UTC] PHP Warning: Undefined array key "height" in ...wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 277
    
    [21-Sep-2022 00:43:30 UTC] PHP Warning: Undefined array key "width" in ...wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 276
    
    [21-Sep-2022 00:43:30 UTC] PHP Warning: Undefined array key "height" in ...wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php on line 277
    • This topic was modified 2 years, 2 months ago by letterafterz.
Viewing 1 replies (of 1 total)
  • Hi @letterafterz

    I understand that PHP 8 is leading to these warnings. Please note these are not errors. Are any diffefernces reflected on the front end due to these?

    Can you tell us if the same happens when you deactivate all other plugins (except WooCommerce) and change the theme to the default Storefront?

    You can test this out on a staging site using a plugin like WP Staging, without affecting the main site.

    You can read more about plugin and theme conflicts in our Self-Service Guide.

    If the above does not help, please share with us the 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined array key errors in PHP 8.0’ is closed to new replies.