Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

[4.1 RC]: notices are logged using analytics #4280

@Danielspain22

Description

@Danielspain22

I’ve upgraded on a staging site wc 4.01 to 4.1 with no problems, but i’m getting notices on my logs(lots of them) when clicking any sub-menu under analytics(orders, categories, coupons, etc.)
The analytics info is displayed fine, but each time i’m using it(only analytics) a notice like this is logged:

[01-May-2020 17:08:46 UTC] PHP Notice: Undefined index: items in /xxx.xxx/wp-includes/rest-api.php on line 1245

I’m using wordpress 5.4.1, woocommerce release candidate 2 and php 7.3.16. This only happens on rc2, wc 4.01 with exactly the same configuration on production site doesn’t make those notices appear when using analytics.
Everything else works great! Thanks for making woocommerce such a great work!

Expected behavior
The notices shouldn't appear anymore
Isolating the problem (mark completed items with an [x]):

  • [ x] I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
  • [ x] This bug happens with a default WordPress theme active, or Storefront.
  • [ x] I can reproduce this bug consistently using the steps above.

WordPress Environment
Wp 5.4.1 wc 4.1 rc2 php 7.3.16 after upgrading from wc 4.01

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugThe issue is a confirmed bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions