Hi @barnabas1,
Thank you for reaching out.
The function get_packages from WooCommerce returning an empty array could be due to no items in the cart, or the shipping method is not correctly defined or enabled in your store settings.
Are you able to confirm that you have items in your cart when the function returns an empty array? Also, do you have shipping correctly defined and enabled as well?
If you do, please share further details like your system status report, which you can find via WooCommerce > Status > Get system report > Copy for support.
You can check for any fatal error logs under WooCommerce > Status > Logs.
You could copy and paste your reply here or paste it via?https://gist.github.com/?and send the link here.
Once we have more information, we’ll be able to assist you further.