Clearing the cache does not resolve the issue. I see a syntax error in my Chrome Console that appears to be directly related to this modal button. See the attached screenshot for the errors. I have verified that this issue exists on both my live and staging sites. I have tested with all other plugins disabled and a default WordPress theme and the issue still remains.
When I click the link on the syntax error, Chrome highlights this code on the Sources tab as having the issue:
<button type="button" class="btn btn-default" onclick="__showDownloadLink(13059, 5a68f9f320c7c)"><i class="fa fa-link"></i></button>
Steps to reproduce the syntax error:
1. Open any package under All Packages.
2. Click the modal button on a file in the list (nothing happens). Be sure to do this first before inspecting the page.
3. THEN right-click and Inspect the page in Chrome.
4. Click the link on the syntax error which will open the Console and highlight the line with the error (in my case, it’s line 2508).
I’ll give you access to my site in a private message so that you can investigate the issue. Thank you.
You can always use the page template. You can clone the existing template. Modify the code. And use that template inside the package settings.
No, you can’t replace. [download_url] gives a button with the download link and [download_link] gives the direct download link. So you can make custom download link with open in new window.
Thanks
So I can not use the Page template?
Can I replace the with [download_url] with [download_link] inside this code which you write for me?
Thanks
Hi,
Please send the package link in private reply to check. Download block by a popup blocker if its enable by the browser. Please clear your browser cache and retry.
Thanks
This button shows a modal with individual file download link. Please clean the browser cache ( Press SHIFT + Click browser reload button ) to load the required JS.
Hi,
Please check again. The download link is working fine.
Thanks
This reply has been marked as private.
Found no issue with your new link too. I tried on Chrome and Firefox. Single File download link and package download link both works,
https://www.evernote.com/l/AUeEOWXxtG9Jgqc60lJ6hhUS9Xi-T4lOi_IB/image.png
Thanks for reply, But indeed I need to use it in page template, I already use the below one, I need to use image button instead of download label.
<br>
[thumb_250x250]
<br>
<br>
[description]
<br>
[acf_group_FirmwareDetails]
<br> [download_link] <br>
<br>
This reply has been marked as private.
Same here the link to download doesn’t work, a blank page comes up…
Hi,
You can use custom link template and set the download url to open in new tab. Just use target blank like following example,
<a target="_blank" href="[download_url]">Download</a>
Creating a new template ( https://www.wpdownloadmanager.com/doc/templates/creating-a-new-template/ )
Thanks.
Hi.
Thank you for the quick reply.
The link to download doesn’t work, a blank page comes up…
This reply has been marked as private.
Clicking on a download file ina package – gives the error – file not found and an empty file is downloaded.
I am getting this problem on latest version 4.7.3 on both a live and a staging site.
The problem seems to occur after a period of time and requires files to be deleted from the package and relinked. Then they are Ok for a while – but the issue returns after some time.
Please help customers getting very fed up with this.
See on staging site here: https://dev.aegies.org/download/the-blessing-course/
In the wp-admin, when we click on the “Add-Ons” link under “Downloads”, we get a page that simply says “Failed to connect with server!”
We have added the licence key and credentials under “Updates” in the settings page for the download manager. What else are we missing?
This reply has been marked as private.
And now I’m getting this error when I make the link the way you suggested on this post (http://anywherechurch.org/2018/03/18/test-post/)
Fatal error: Uncaught Error: Class ‘WPDM_Stats’ not found in /home/anywhe06/public_html/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php:392 Stack trace: #0 /home/anywhe06/public_html/wp-includes/class-wp-hook.php(286): WPDM_AmazonS3->Download(Array) #1 /home/anywhe06/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #2 /home/anywhe06/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/anywhe06/public_html/wp-content/plugins/download-manager/wpdm-start-download.php(12): do_action(‘wpdm_onstart_do…’, Array) #4 /home/anywhe06/public_html/wp-content/plugins/download-manager/libs/class.Apply.php(417): include(‘/home/anywhe06/…’) #5 /home/anywhe06/public_html/wp-includes/class-wp-hook.php(286): WPDM\libs\Apply->triggerDownload(”) #6 /home/anywhe06/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #7 /home/anywhe06/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #8 /home/anywhe06/public_html/wp-settings.php(450) in /home/anywhe06/public_html/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php on line 392
Hi,
Not clear, If you want to change the template for download page you can do this from /wp-admin/edit.php?post_type=wpdmpro&page=templates
where you can insert the custom link with Add to cart
button.
There is no option to add custom order from the backend for now.
Thanks
I to am having this issue. When I use the default template, everything works fine. On my page the file is listed with a spot to add the password. If the password is correct, it gives me the option of then downloading the file. If I try and use a “button template” I do not have a location for a password, or there is no pop-up that gives me that option. I am wondering if this is the reason for the “Download Link is expired…”. Is there a way to have a file be password protected while using the “Button template?”
Hello I accidently reverted back to the free one by overwriting some files. I had some link templates created and what can be done to get all of that back? I do not believe I have a backup from before I did it. Any help would be appreciated I do not have the time to redo every download link on our website!
Update: curiously If I use two shortcodes I have different result for logged or not logged (credit/memberplan).
[wpdm_all_packages items_per_page="20" jstable=1 cols="title|categories|download_link" colheads="Title|Theme|Download"]
1) not logged: BUY BUTTON for the package with the credit and MemberPlan A —correct way (the package is the first of the all packages list)
2) logged as MemberPlan A user: BUY BUTTON for the package with the credit (the package moves down in the order of the all packages list!)
[wpdm-archive cat_view="compact"]
1) not logged: ADD TO CART BUTTON for the package with the credit and MemberPlan A
2) logged as MemberPlan A user: DOWNLOAD BUTTON for the package with the credit —correct way
Help. My packages are downloading but the email with the link isn’t being sent despite the settings being correct. It was working and now it is not.
Hi,
You have to edit /download-manager/tpls/wpdm-all-downloads.php
for this shortcode. You can find details here about modifying the shortcode templates.
You can use inline CSS or with <style>
tag, jquery inside the link or page template. Follow this tutorial for this to customize the link/page template.
Thanks
Ok, thanks didn’t realise there was that add-on for WPDM.
How can we change the statement with Form Lock ‘Your download link is ready now’ ?
Thanks