Support » Plugin: Bulk Attachment Download » Recent Issue Download Files

  • Resolved walterjonesjr

    (@walterjonesjr)


    Recently I am getting this error:
    No valid files selected for download.

    WHen I am trying to download files that were uploaded to the media gallery through a formidable form. I havn’t gott this error before. Any ideas

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author janwyl

    (@janwyl)

    Hi there

    Unfortunately I don’t have Formidable Pro (which I would need to have to test out the uploader field) so it’s going to be difficult to troubleshoot.

    If you deactivate the Formidable plugin does the Download work?
    Was it working before for files that were uploaded through Formidable – or has it always not worked for files uploaded through the Formidable form?

    Thread Starter walterjonesjr

    (@walterjonesjr)

    Yes it worked just fine until a couple of days ago. No issues. Your plugin works on files that are not attached through a form upload.

    It looks like its failing on a permission check or in getting the IDS?

    Its failing somewhere in this process:

    if ( empty( $permissions_errors ) and $valid_file_ids ) {

    // get posts and check they are attachments
    $files_to_download = get_posts( array(
    ‘posts_per_page’ => -1,
    ‘post_type’ => ‘attachment’,
    ‘post__in’ => $_POST[‘attmtIds’],
    ‘ignore_sticky_posts’ => true
    ) );

    if ( empty( $files_to_download ) ) {
    $valid_file_ids = false;
    }

    }

    if ( ! $valid_file_ids ) {
    $permissions_errors[] = __( ‘No valid files selected for download.’, ‘st-bulk-download’ );
    } else {

    // check permissions
    foreach ( $files_to_download as $file_to_download ) {
    if ( current_user_can( ‘edit_posts’, $file_to_download->ID ) ) {
    $permitted_files[] = $file_to_download;
    }
    }

    if ( empty( $permitted_files ) ) {
    $permissions_errors[] = __( ‘You do not have permission to download any of the selected files.’, ‘st-bulk-download’ );
    }

    }

    I havn’t changed permission or anything.

    If your willing to look I can give you access to my system, but it will require a VPN connection.

    Thread Starter walterjonesjr

    (@walterjonesjr)

    Actually it won’t need a VPN for this one.

    Plugin Author janwyl

    (@janwyl)

    Yes – it’s in getting the IDs via JS or possibly Formidable uses a different post type.

    I’ll happily take a look. If you’d like to get in touch via https://www.sneezingtrees.com/contact/ you can send me details via email.

    Thread Starter walterjonesjr

    (@walterjonesjr)

    I have sent you the information. Thank you for your help with this.

    Plugin Author janwyl

    (@janwyl)

    Well embarrassingly it turns out my contact form is playing up. If you don’t mind – till I sort it could you email the details to admin@sneezingtrees.com? Sorry…

    Thread Starter walterjonesjr

    (@walterjonesjr)

    Sent.

    Thread Starter walterjonesjr

    (@walterjonesjr)

    Let me know if you got it, hoping spam didn’t catch it.

    Plugin Author janwyl

    (@janwyl)

    All sorted now. Thanks for letting me have access to the site so we could work out how to fix it. I will include the code tweak in the next version in a few days to ensure compatibility with Formidable Forms Pro.

    Thread Starter walterjonesjr

    (@walterjonesjr)

    Amazing customer support! I have never had a developer work this hard and this quick to correct a custom issue! I am so glad we were able to collaborate, looking forward to future updates!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Recent Issue Download Files’ is closed to new replies.