WPIntell

Source evidence

Fatal error during adding custom order (downloadable product)

Custom Order Status for WooCommerce · support · 2024-05-29T12:53:00+00:00

mixedsentiment
highseverity
0.94relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 35 rows with source links

11.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

31 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
elparts resolved
I try to add order with custom status. This is virtual downloadable product, so it should create downloadable files permissions for product too. So I add order, and then also coupon. When I create order with your custom status then file permissions are not granted automatically. I tried to bypass it by creating order with woocomerce default “Completed” status. In this case permissions are granted automatically during creating order. And then I tried to change status to your custom status, and I have then fatal error below. It seems your plugin doesn’t support such scenario? Can you fix this? Uncaught Exception: Invalid download. in public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php:167 Hi @elparts , I apologize for the inconvenience caused to you. I’ll be trying to replicate the issue at our end and will let you know the result. In the meantime, can you provide screenshot of the setup you have in the plugin and the screenshot which helps us to reproduce this bug? Setup (I didn’t change anyting in Emails and Advanced): https://ibb.co/Y7q7LWj Reproduce this bug: https://ibb.co/phQfC3H Just create order like this, with one virtual downloadble product and permissions added, and with coupon applied. Order status should be “Completed”, and now choose any of you custom statutes and click Update and you will have this error. Hi @elparts , I tried many attempts to replicate the issue but unfortunately, I’m unable to reproduce the same. Can you tell me which version of WooCommerce you are using as the error seems to be generated from WooCommerce file? Also, can you create submit the ticket to our support tool so that we can more communicate on this and solve as soon as possible? Hi @tychesoftwares , It’s woocommerce 9.0.1. I did something. I disabled all plugins except of your plugin, woocommerce and theme neve. I still have error, but I can see it now (below). It happens when I try change order status to your custom status. This download is valid, files exists and it downloads. Fatal error: Uncaught Exception: Invalid download. in public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php:167 Stack trace: #0 public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Download_Data_Store->read(Object(WC_Customer_Download)) #1 public_html/wp-content/plugins/woocommerce/includes/class-wc-customer-download.php(66): WC_Data_Store->read(Object(WC_Customer_Download)) #2 public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-downloads.php(106): WC_Customer_Download->__construct('84429') #3 public_html/wp-includes/class-wp-hook.php(324): WC_Meta_Box_Order_Downloads::save(43983, Object(WP_Post)) #4 public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(263): do_action('woocommerce_pro...', 43983, Object(WP_Post)) #7 public_html/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes(43983, Object(WP_Post)) #8 public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #9 public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 public_html/wp-includes/post.php(4828): do_action('save_post', 43983, Object(WP_Post), true) #11 public_html/wp-includes/post.php(4930): wp_insert_post(Array, false, true) #12 public_html/wp-admin/includes/post.php(453): wp_update_post(Array) #13 public_html/wp-admin/post.php(227): edit_post() #14 {main} thrown in public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php on line 167 Hi @elparts , Is there any specific character added in the custom order status? Can you share the list of the custom statuses? And is it possible for you to submit the ticket on our support system ?

Comments

5 shown
tychesoftwares 2024-05-30T20:09:00+00:00

Hi @elparts , I apologize for the inconvenience caused to you. I’ll be trying to replicate the issue at our end and will let you know the result. In the meantime, can you provide screenshot of the setup you have in the plugin and the screenshot which helps us to reproduce this bug?

elparts 2024-06-02T07:54:00+00:00

Setup (I didn’t change anyting in Emails and Advanced): https://ibb.co/Y7q7LWj Reproduce this bug: https://ibb.co/phQfC3H Just create order like this, with one virtual downloadble product and permissions added, and with coupon applied. Order status should be “Completed”, and now choose any of you custom statutes and click Update and you will have this error.

tychesoftwares 2024-06-06T13:33:00+00:00

Hi @elparts , I tried many attempts to replicate the issue but unfortunately, I’m unable to reproduce the same. Can you tell me which version of WooCommerce you are using as the error seems to be generated from WooCommerce file? Also, can you create submit the ticket to our support tool so that we can more communicate on this and solve as soon as possible?

elparts 2024-06-24T13:09:00+00:00

Hi @tychesoftwares , It’s woocommerce 9.0.1. I did something. I disabled all plugins except of your plugin, woocommerce and theme neve. I still have error, but I can see it now (below). It happens when I try change order status to your custom status. This download is valid, files exists and it downloads. Fatal error: Uncaught Exception: Invalid download. in public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php:167 Stack trace: #0 public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Download_Data_Store->read(Object(WC_Customer_Download)) #1 public_html/wp-content/plugins/woocommerce/includes/class-wc-customer-download.php(66): WC_Data_Store->read(Object(WC_Customer_Download)) #2 public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-downloads.php(106): WC_Customer_Download->__construct('84429') #3 public_html/wp-includes/class-wp-hook.php(324): WC_Meta_Box_Order_Downloads::save(43983, Object(WP_Post)) #4 public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(263): do_action('woocommerce_pro...', 43983, Object(WP_Post)) #7 public_html/wp-includes/class-wp-hook.php(326): WC_Admin_Meta_Boxes->save_meta_boxes(43983, Object(WP_Post)) #8 public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #9 public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 public_html/wp-includes/post.php(4828): do_action('save_post', 43983, Object(WP_Post), true) #11 public_html/wp-includes/post.php(4930): wp_insert_post(Array, false, true) #12 public_html/wp-admin/includes/post.php(453): wp_update_post(Array) #13 public_html/wp-admin/post.php(227): edit_post() #14 {main} thrown in public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php on line 167

tychesoftwares 2024-06-27T14:47:00+00:00

Hi @elparts , Is there any specific character added in the custom order status? Can you share the list of the custom statuses? And is it possible for you to submit the ticket on our support system ?