• Resolved Andreas

    (@deksar)


    Greetings.

    I got the following PHP warnings under WooCommerce’s “shop_order” (Orders) page on WordPress Admin Dashboard;

    Warning: Undefined array key "id" /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php on line 1048
    
    Warning: Undefined array key "value" in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php on line 1048
    
    Warning: Undefined array key "id" in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php on line 1048
    
    Warning: Undefined array key "value" in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php on line 1048

    at the bottom of the page.

    WordPress version: 5.9.3
    PHP version: 8.0.18
    WP_DEBUG: Disabled
    WooCommerce version: 6.4.1

    Any idea/help would be much appreciated.
    Many thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    Do you see the warnings when you deactivate all plugins except WooCommerce and switch theme to Storefront? You can visit WooCommerce Self-Service Guide to troubleshoot issues on your site.

    You can also enable WordPress debug logging on your site. Here is a good guide on how to do this: https://help.dreamhost.com/hc/en-us/articles/360029327771-Enabling-the-WordPress-Debug-log

    I have same problem after upgrade to 6.4.1

    Hi @tarashi125

    Thanks for posting your comment here.

    However, kindly create a new thread so that your issue can be looked at individually.
    https://www.ads-software.com/support/plugin/woocommerce/#new-topic-0

    Cheers

    * Forum guidelines on posting on related threads / existing threads with similar issues

    Thread Starter Andreas

    (@deksar)

    Hi again, Maykato.

    I have disabled all plugins (don’t have much anyway) but the problem still persists.

    Please take a look at that warning lines above, it might be incompatibility with PHP 8.0.

    Thanks.

    Hi @deksar

    Thanks for letting us know.

    Have you enabled WordPress debug logging on the site?

    Your PHP version is currently 8.0.18. Can you please downgrade it and see if that helps?

    You may want your hosting provider to do that for you. Otherwise, here’s a guide to help you: https://www.ads-software.com/support/update-php/

    Let us know how it goes.

    Thread Starter Andreas

    (@deksar)

    Debugging is off.

    It is impossible to downgrade PHP on our web server (hosting thousands of domains, and not really good for both security/performance reasons)

    PHP 7.x is considered outdated, old and slow by PHP.
    There is even PHP 8.1.x branch (which is listed as current stable)

    Reviewing the code for PHP 8 compatibility shouldn’t be very hard thing for WooCommerce team. It is well known and well respected plugin, and it would help your users a lot.

    Best wishes.
    Thanks.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    I have disabled all plugins (don’t have much anyway) but the problem still persists.

    Have you also changed the theme to Storefront as suggested in the conflict testing guide? I’m going to share the support documentation here for reference:

    https://woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Can you see any error logs in the /wp-content/debug.log file after enabling debugging in WordPress?

    In order for us to take a closer look, could you please share a copy of your 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.

    Thanks.

    Hi all,

    this bug seems to be related with the new WooCommerce Analytics feature not being enabled:

    • Open WooCommerce > Settings > Advanced > Features
    • Enable Checkbox “Analytics”
    • Save changes

    The debug messages are gone.

    A bugreport has been submitted in the Github repo: https://github.com/woocommerce/woocommerce/issues/32839

    Thread Starter Andreas

    (@deksar)

    Hi them.es, thanks very much for your reply and report. I wonder how come WooCommerce team didn’t notice such obvious warning messages before releasing new features/versions? No testing team?

    Hi @themes-1 & @deksar

    Thanks for opening the issue on Github. Our developers will look into it shortly.

    how come WooCommerce team didn’t notice such obvious warning messages before releasing new features/versions? No testing team?

    Not just WooCommerce, no software update is ever released without testing. Yet, many times bugs get discovered later. Getting rid of those and improving user experience is one of the reasons behind releasing yet newer versions by software companies. ??

    This thread has been inactive for a bit, so I’m going to mark it as closed.

    Please feel free to open a new thread if you have any other questions.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP Warning: Undefined array key “id” and “value” on WooCommerce’ is closed to new replies.