• Resolved cblackmon

    (@cblackmon)


    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.

    • This topic was modified 7 years, 2 months ago by cblackmon. Reason: formatting
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cblackmon

    (@cblackmon)

    I was actually able to fix this by slightly changing a file in the plugin. Feel free to reach out to me directly at [email protected] as it may be something you’ll want to include in an update.

    I tried to find another methods for notifying you of this but it’s only up on WP SVN, not Github or anything, and couldn’t find a way to email you directly ??

    Hi @cblackmon,

    Please feel free to reach us via support.

    Hi @cblackmon,

    Please contact in Skype @mark_35997
    I will check the issue mentioned. Please share your changes through Skype, so I can cross check and update if needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to attach downloadable file to the subscription product’ is closed to new replies.