• Resolved Ludovic S. Clain

    (@ludovicsclain)


    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.

    (@rainfallnixfig)

    Hi @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
    • 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/.

    Thanks.

    Mirko P.

    (@rainfallnixfig)

    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.