Unable to attach downloadable file to the subscription product
-
When adding to a simple subscription product, we add a downloadable file to the subscription product. When we get to the Downloads part of the My Account page, after the payment has gone through, we see the link to the downloadable link. However, when clicking that file to download this file (which is a PDF), we get this error (hiding the actual url for privacy):
Warning: in_array() expects parameter 2 to be array, null given in /var/www/{website.com}/wp-content/plugins/xa-woocommerce-subscriptions/includes/common/action-scheduler.php on line 18
Looking at your plugin code, it looks like the “update_date” function is the culprit. Line 18 shows:
if ( in_array( $date_type, $this->get_date_types_to_schedule() ) ) { ...
.Looking for help in resolving this – I feel like you should be able to add extra downloadable files to a subscription product without this issue.
- The topic ‘Unable to attach downloadable file to the subscription product’ is closed to new replies.