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
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)
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
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
Yes, I tested it with the WooCommerce 9.9.3 update, including the changes from PR #58586.
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
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
I also add that I’m using PHP 8.2.28
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.
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
Thank you very much @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