• Resolved Martin_Un

    (@martin_un)


    Hi there,

    we are using download monitor since several years and as others see issues with the last updates.
    Most of them we could resolve, but we are still struggling with one:
    We have some downloads linked to external sites.
    This works on some and failed on others, when I try to re-enter the URL and save the URL just disappears and is not saved.
    Any idea how to solve that?

    best regards,
    Martin

Viewing 15 replies - 1 through 15 (of 25 total)
  • Same here, uploading a pdf file to media library and selecting it results in no file url saved when updating/publishing the download

    Hello,

    Could you please tell me what is the version of Download Monitor that you are using?

    Kind Regards!
    Razvan

    Thread Starter Martin_Un

    (@martin_un)

    Hi Razvan,

    I am using: 4.5.92

    best regards,
    Martin

    i just downloaded it, so version 4.5.92 as for now

    @martin_un could you please give example of external URL so we can test on our environment? So far we can’t replicate this issue.

    @antoniofourmark could you please check in dashboard > Tools > Site health > Info > Directories and sizes if the WordPress directory location is similar with Uploads directory location ?

    Kind regards!
    Razvan

    Thread Starter Martin_Un

    (@martin_un)

    Hi there,

    just tried it again and came a step further.
    One URL that didn’t work was this one:
    https://ph.parker.com/us/17051/en/thermattach-t405-r-double-sided-thermal-tapes
    It works now, when I activate “Redirect to file”.

    So here we are fine. But then the issue is still existing with links to pages on the same domain with the simple or “no” permalink structure.

    So the URL looks like this:
    https://same.domain/?page_id=1146
    When I try to open this download I get an “Access denied” message, when I try to update this download the link in the URL get’s deleted.
    I already updated permalink settings. -> no effect.

    best regards,
    Martin

    @raldea89 Yes, wordpress directory location is /xxxx/xxxx/xxxx and uploads is /xxxx/xxxx/xxxx/wp-content/uploads

    @martin_un could you please tell me what you are trying to accomplish by using the https://same.domain/?page_id=1146 as File URL? Could you please describe your use case?

    @antoniofourmark could you please let us know what is your hosting provider so we can lookup in their documentation? Also, please confirm that you are trying to save an URL/path to your website’s upload directory ( so something like https://domain.com/wp-content/uploads/…./file.zip ).

    Kind Regards!
    Razvan

    Thread Starter Martin_Un

    (@martin_un)

    Hi, sure I can.
    We provide downloads for our products on a site, where our customers need to register.
    Typically these downloads are pdf documents or zip files, but in some cases customers don’t get a direct download, but should fill out a form to get an offer. And this is exactly the use case of the above described situation.
    The page contains a form that needs to be filled, when user wants to “download” the regarding information.
    This worked for sure since at least 5 years, but was spoiled with one of the last updates.
    cheers
    Martin
    P.S: oh yes, we don’t use pretty permalinks, as the access is behind a registration wall and no search engine will finde these. ??
    P.P.S: If this is a feature that will be removed from the free version and it is possible in the paid version, then please let me know.

    @martin_un and does the https://same.domain/?page_id=1146 point to a page or the pdf/zip file?

    Thread Starter Martin_Un

    (@martin_un)

    that’s an existing page with a form to fill out.

    Hello @martin_un,
    Thank you for the info. Could you please try to add the following code to your child theme’s functions.php file and check if this works in your environment? On our tests works as you want. Also, please remember, to check the Redirect to file option of the Download.

    add_filter( 'dlm_check_file_paths', 'martin_custom_file_path', 15, 2 );
    
    function martin_custom_file_path( $return, $file_path ) {
    	if ( false !== strpos( $file_path, '?page_id=' ) ) {
    		return true;
    	}
    
    	return $return;
    }

    Let me know if this worked for you also.

    Warmly,
    Razvan

    Thread Starter Martin_Un

    (@martin_un)

    Hi Razvan,

    I used it within the Plugin Code Snippets and it works like a charm.
    The redirection works in existing Downloads and when I save one the URL keeps in place.
    Thanks a lot for your help!

    best regards,
    Martin

    @raldea89 what do you mean by saving an URL/path, we upload a pdf file and then use it with the plugin (which inserts its path and then deletes it upon saving)

    our hosting is webempresa

    Hey @antoniofourmark ,

    Is the uploads directory a shortcut to some other directory, just like in the case of Pantheon where the uploads is actually a shortcode to the out of root /files/ directory. Could you please check this out?

    Warmly,
    Razvan

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘URLs of downloads disappear when saving’ is closed to new replies.