Title: PHP Warnings (php 8.0)
Last modified: April 20, 2022

---

# PHP Warnings (php 8.0)

 *  Resolved [Ludovic S. Clain](https://wordpress.org/support/users/ludovicsclain/)
 * (@ludovicsclain)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-0/)
 * Hi there,
    i’ve got this line on my debug.log file:
 *     ```
       PHP Warning:  Undefined array key "intervals" in ~/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-dashboard.php on line 539
       PHP Warning:  foreach() argument must be of type array|object, null given in ~/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-dashboard.php on line 543
       PHP Warning:  Undefined property: WP_Error::$net_sales in ~/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-dashboard.php on line 155
       ```
   
 * Here my status report:
 *     ```
       ### WordPress Environment ###
   
       WC Version: 6.4.1
       REST API Version: ✔ 6.4.1
       WC Blocks Version: ✔ 7.2.2
       Action Scheduler Version: ✔ 3.4.0
       WC Admin Version: ✔ 3.3.2
       Log Directory Writable: ✔
       WP Version: 5.9.3
       WP Multisite: ✔
       WP Memory Limit: 1 GB
       WP Debug Mode: ✔
       WP Cron: –
       Language: fr_FR
       External object cache: ✔
   
       ### Server Environment ###
   
       Server Info: nginx/1.20.2
       PHP Version: 8.0.17
       PHP Post Max Size: 32 MB
       PHP Time Limit: 300
       PHP Max Input Vars: 1000
       cURL Version: 7.68.0
       OpenSSL/1.1.1f
   
       ### Database ###
   
       WC Database Version: 6.4.1
       ```
   
 * This bug is already listed or is it specific to my installation?
    Thank for your
   help!

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

 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-0/#post-15575058)
 * Hi [@ludovicsclain](https://wordpress.org/support/users/ludovicsclain/) 👋
 * These warnings are usually caused by a conflict with your theme or with another
   plugin. The best way to determine this is to:
    - Temporarily switch your theme to [Storefront](https://www.woocommerce.com/storefront/)
    - Disable all plugins except for WooCommerce
    - Check again if the warning are being generated
 * If you’re not seeing the same behavior after completing the conflict test, then
   you know the problem was with the plugins and/or theme you deactivated.
 * Reactivate the theme first and check again. Then, go on and reactivate your other
   plugins one by one, testing after each, until you find the one causing conflict.
 * You can find a more detailed explanation on how to do a conflict test here: [https://docs.woocommerce.com/document/how-to-test-for-conflicts/](https://docs.woocommerce.com/document/how-to-test-for-conflicts/).
 * Thanks.
 *  [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-0/#post-15596826)
 * Hi there,
 * It’s been a while since we last heard from you, so I’m marking this thread as
   resolved.
 * Hopefully, you’ve been able to resolve this, but we’ll be here if and/or when
   you are ready to continue.
 * Cheers.

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

The topic ‘PHP Warnings (php 8.0)’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-0/#post-15596826)
 * Status: resolved