• Resolved mad4thrash

    (@mad4thrash)


    Hello, since the latest woocommerce update, I’m getting this log:
    [10-Jun-2025 09:06:36 UTC] PHP Warning: Undefined array key “wc-delivered” in /public_html/wp-content/plugins/woocommerce/includes/wc-order-functions.php on line 410
    [10-Jun-2025 09:06:36 UTC] PHP Warning: Undefined array key “wc-partial-shipped” in /public_html/wp-content/plugins/woocommerce/includes/wc-order-functions.php on line 410

    If I’m not mistaken wc-delivered is added by your plugin

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author gaurav1092

    (@gaurav1092)

    Hi @mad4thrash,

    Thanks for reporting this. Can you please let me know on which page you’re seeing this warning? This will help us reproduce the issue and provide a fix accordingly.

    Best Regards,
    Gaurav

    Thread Starter mad4thrash

    (@mad4thrash)

    Hi @gaurav1092 ,

    this log is being written when I add an order (I did it manually from the admin board but my guess is that it will happen the same id a customer make an order)

    Plugin Author gaurav1092

    (@gaurav1092)

    Hi @mad4thrash,

    We checked this in our development store but couldn’t reproduce the warning. It may be caused by a conflict with another plugin on your site.

    Please try deactivating all other plugins except WooCommerce and AST, then create a new order and check if the warning still appears. Let us know what you find.

    Best Regards,
    Gaurav

    Thread Starter mad4thrash

    (@mad4thrash)

    Hi @gaurav1092 ,

    did you try it with woocommerce 9.9.3 update ?

    They added this to the update:

    https://github.com/woocommerce/woocommerce/pull/58586

    Plugin Author gaurav1092

    (@gaurav1092)

    Yes, I tested it with the WooCommerce 9.9.3 update, including the changes from PR #58586.

    Thread Starter mad4thrash

    (@mad4thrash)

    Another thing, I noticed that the warning appears also if I open the file woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-admin.php in the wordpress plugin editor

    Thread Starter mad4thrash

    (@mad4thrash)

    without other plugin I see the same warning.
    I added this to functions.php:

    add_filter(‘wc_order_statuses’, function($statuses) {
    $statuses[‘wc-delivered’] = _x(‘Delivered’, ‘Order status’, ‘bricks-child’);
    $statuses[‘wc-partial-shipped’] = _x(‘Partially Shipped’, ‘Order status’, ‘bricks-child’);
    return $statuses;
    });

    And I don’t see the warning anymore but it’s just a band-aid

    Thread Starter mad4thrash

    (@mad4thrash)

    I also add that I’m using PHP 8.2.28

    Plugin Author gaurav1092

    (@gaurav1092)

    Hi @mad4thrash,

    We were able to replicate the warning on our development store running PHP 8.2.28 with WooCommerce 9.9.3.

    We’ll include a fix for this warning in the next version of the plugin.

    Best Regards,
    Gaurav

    I have the same issue on the admin site with new 9.9.3 woocommerce update:
    Warning: Undefined array key “wc-partial-shipped” in /chroot/home/fishingf/fishingfloats.hu/html/wp-content/plugins/woocommerce/includes/wc-order-functions.php on line 410

    The problem is in your plugin, because if I deactivate it, the warning disappeares.

    Same error. @gaurav1092 when do you plan to release the fix ? Thanks by advance.

    Plugin Author gaurav1092

    (@gaurav1092)

    Hello,

    We’ve fixed this warning in the latest version of the plugin (v3.8.3).

    Please update to the latest version and let us know if the issue is resolved.

    Best Regards,
    Gaurav

    It worked! Thanks!

    Thread Starter mad4thrash

    (@mad4thrash)

    Thank you very much @gaurav1092

    Plugin Author gaurav1092

    (@gaurav1092)

    Hello,

    I’m really glad everything is working smoothly now!

    If you have a moment, it would mean a lot to us if you could leave a quick review for the plugin. Your feedback helps us continue improving and supporting more users like you.

    You can leave a review here:
    🔗 https://ww.wp.xz.cn/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post

    Thanks again for your support!

    Best regards,
    Gaurav

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

The topic ‘php warning on shipment status’ is closed to new replies.