I’m getting the following error on only a couple products. It looks like the process starts and maybe does regenerate all the permissions, but the confirmation doesn’t appear and it just hangs.
[22-Aug-2023 17:18:03 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WC_Order_Refund::get_customer_id() in /home/jungch5/public_html/blog/wp-content/plugins/woocommerce/includes/wc-order-functions.php:406
Stack trace:
#0 /home/jungch5/public_html/blog/wp-content/plugins/woocommerce/includes/wc-order-functions.php(451): wc_downloadable_file_permission('01d17b71-ac7b-4...', Object(WC_Product_Simple), Object(WC_Order_Refund), -1, Object(WC_Order_Item_Product))
#1 /home/jungch5/public_html/blog/wp-content/plugins/regenerate-download-permissions-for-orders/woo-regenerate-download-permissions.php(19): wc_downloadable_product_permissions('18737', true)
#2 /home/jungch5/public_html/blog/wp-content/plugins/regenerate-download-permissions-for-orders/woo-regenerate-download-permissions.php(44): rdpfwo_regen_woo_downloadable_product_permissions('18737')
#3 /home/jungch5/public_html/blog/wp-includes/class-wp-hook.php(310): rdpfwo_regen_dl_permissions_all_users('')
#4 /home/jungch5/public_html/blog/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#5 /home/jungch5/public_html/blog/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /home/jungch5/public_html/blog/wp-admin/admin-ajax.php(188): do_action('wp_ajax_rdpfwo_...')
#7 {main}
thrown in /home/jungch5/public_html/blog/wp-content/plugins/woocommerce/includes/wc-order-functions.php on line 406
]]>
I get the following error for a few products:
Download Permissions for 0 order has been regenerated!
Any suggestions how to fix?
]]>Hi, Does this plugin regenerate permissions only for “completed” orders? As only these orders should have access to files. I ask because I have some other bulk regenerate plugin, and it regenerate permissions for all orders, for also canceled so you must be careful when you use it. But you can choose then what status you want regenerate. And here you can’t, that’s why I wonder how it works.
]]>