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

    (@janwyl)

    Hi there

    Sorry to hear you’re having trouble. The last time this issue came up (the link you included) I couldn’t recreate the issue. I’ve just tried again to recreate the issue on a fresh install and I still can’t do it.

    Can I check please – have you tried disabling all other plugins except Bulk Attachment Download, refreshing permalinks (by going to Settings > Permalinks and clicking on Save Changes), creating a new download and seeing if it works?

    Thanks!

    Thread Starter nixon3d

    (@nixon3d)

    Hello, Yes tried that does not work.

    Same happens.

    Here are screenshots:

    https://ibb.co/j3Gxrj2
    https://ibb.co/BLxpD1X

    I suspect it can be functions.php

    Would like to get a help with that file,so we can see if that cause the problem.

    Thanks

    Plugin Author janwyl

    (@janwyl)

    I’m a little confused.

    You’re using WooCommerce right? It looks like there’s some kind of redirect going on probably caused by WooCommerce. And I don’t understand how you are creating the downloads in the first place.

    But anyway, 2 options I think.

    1) You can try putting this code (same as in the other thread you mentioned) in your functions.php file and see if that fixes it. But I am not too hopeful as I suspect you have lots of other things going on.

    add_filter( 'post_type_link', 'my_theme_amend_bulk_download_url', 10, 2  );
    function my_theme_amend_bulk_download_url( $post_link, $post ) {
    	if ( class_exists( 'Bulk_Attachment_Download_Manager' ) ) {
    		if ( 'jabd_download' == $post->post_type ) {
    			if ( current_user_can( 'edit_post', $post->ID ) ) {
    				$uploads_dir_info = wp_upload_dir();
    				$post_link = $uploads_dir_info['baseurl'] . '/' . JABD_DOWNLOADS_DIR . '/' . get_post_meta( $post->ID, 'jabd_path', true );
    			}
    		}
    	}
    	return $post_link;
    }

    2) If that doesn’t work and if you’re comfortable with it you can either give me temporary admin access to your site so I can have a look or maybe do something via screenshare.

    Try 1) first. If that doesn’t work and you’re ok with 2) you can send me a message including an email address via https://www.sneezingtrees.com/contact/ and we’ll see what we can sort out.

    Thread Starter nixon3d

    (@nixon3d)

    Sent you PM via the website.

    Plugin Author janwyl

    (@janwyl)

    Tks. Replied to the email you gave as I don’t use facebook

    Plugin Author janwyl

    (@janwyl)

    Discovered the problem was unrelated to the plugin. WordPress reinstall worked.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Download_URL’ is closed to new replies.