Got through the upgrade of the Download Manager. Now my Link Templates are displaying this additional error code:
Warning: Illegal string offset ‘secondary’ in /code/wp-content/plugins/download-manager/libs/class.FileSystem.php on line 548 Notice: Uninitialized string offset: 0 in /code/wp-content/plugins/download-manager/libs/class.FileSystem.php on line 548 Warning: Illegal string offset ‘secondary’ in /code/wp-content/plugins/download-manager/libs/class.FileSystem.php on line 548 Notice: Uninitialized string offset: 0 in /code/wp-content/plugins/download-manager/libs/class.FileSystem.php on line 548
Hello,
after the one of the last updates of wpdm the link button of the download table ist not working anymore.
I’m using this on my page:
[wpdm_all_packages items_per_page="25" jstable=1 order_by="title" order="ASC" cols="page_link|categories|post_content|publish_date|download_link" colheads="Title|Categories|Schlagworte|Datum|Download"]
Any idea what I’m doing wrong?
Regards
Harry
For the frontend, you can easily edit it from
download-manager\tpls\wpdm-add-new-file-front.php
file and the text as your own requirements.
you can follow the link below documentation,
Template Files
As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in the folder naming wpdm-add-new-file-front.php
and edit the text as your requirements. let me know. if it helps you.
Thanks.
Hi,
It can be happened restricting role access from the package settings Allow Access
option. and also can be due to the js cache. Please try clearing the cache. Alternatively, in the latest update 3.1.02, we have added an option to unmask the download link, that option will resolve the issue regardless of the js cache.
Thank you very much! I will wait for the update and recheck all the download links. I hope it will solve the problem permanently. Thank you again.
Hi,
Don’t worry, the cache should be cleared automatically by now, I think you can mask download link again. Also, we are releasing a new update today, where we are adding version number with js file, so that it auto clears cache with each plugin update
We are using the Pro version. Though we recently upgraded and the behavior was present in the Free version as well.
- created a category and restricted access to subscriber and admins
- created file and assigned to category
- created page and inserted packages block, filtered to that category
- viewed page as anonymous user
The download link was present and could be clicked to download the file. If I remove the “all visitors” access, then it appears to inherit from the category as expected. Which is why, as explained earlier, I think the underlying restriction is working. The problem is that you need a different default option for the access field so that it inherits from the category by default, rather than requiring people to click and undo the default access selection in order for the category restriction to kick in.
Thanks @Shahjada! I’m sorry to be a pain and asking more questions as I’m pretty new to these things.
I think the link I attached above is not really private as it is published on the website and can be searched via Google to access that page and anyone can download the file from it, which I feel like it is similar to a public link. Please correct me if I misunderstood this.
How big is the risk if the bots can easily crawl these links? As on the website, we have many other direct download pages like this one on the website and all use WP Download Manager Plugin. So if I select “Unmask Download Link” which means all other direct download pages will be exposed to risk as well. Am I right?
Is there any other way I can fix the problem? E.g. Reinstall/reset the Plugin, Editing the code etc.?
Thank you again.
Now working. I have unmasked the download link from Downloads > Settings > Basic
. please check.
Thanks.
Hi,
For the title, color change there maybe need your theme color or title color adjustments.
and for the general shortcode, adjustments
you can follow the link below documentation,
Template Files
by default, you are using link-template-default.php
for link template and page-template-default.php
for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in page-templates
for page template or link-templates
for link template. and as your requirements, you can keep some of the section and others remove for the link-templates. i hope those may help you.
Thanks.
Good morning team,
Could you please confirm if there is a way to remove and style various elements for the frontend download shortcode link – see here: https://d.pr/i/2lRKTk
I have various download buttons etc throughout my whole site on various pages and do not want to add custom css to all current pages and more importantly remember or supply the client with the custom css for when a new page etc is added in the future.
Many thanks
Hi –
I have just update my clients site to the latest versions of wordpress and updated all plugins. However now, the download links on the downloads page are not working. Clicking on the link does nothing, whereas it was opening/downloading a pdf.
This is a paid service for very urgent.
Thanks in advance for any help you can give me.
Barry
Yes, the cache issue will only happen for the device previously opened the page, also, that should be temporary, as eventually browser cache clears automatically.
“Unmask Download Link” only will affect the public download link and when you unmask link they are easily crawlable by bots. But private downloads are always secure.
You have to do manually for this. otherwise, you can use a default add on for this, https://www.wpdownloadmanager.com/download/wpdm-default-values/, it will set other values as well as for this page/link-template also.
Thanks.
Thank you very much @Shahjada! You saved me! and you are right, it works now after I clear the browser caches.
So I reckon this issue happens to any device which has opened that link before? OR any device which has visited the website domain and has the old caches? because I want to send this link to all of my clients. Would they be affected if they have visited my website before?
You mentioned “Alternatively, you can use “Unmask Download Link” option, then download links will work regardless of the browser cache”. I can see this option in the Setting. However, the option also notices me that “If you unmask download link, bots will be able the find any public download link easily” ► I reckon there would be a risk?
-
This reply was modified 5 years, 2 months ago by
sang le.
@jpo, there is no issue with download link actually, in the last update we have changed js file front.js, removed some inline js code to front.js. So, for some users, the front.js is serving from the old cache, that’s what making download link irresponsive. Please try clearing the browser and server cache.
@angle95, Download button is working fine for me, on your side, it is happening due to browser cache.

Please try clearing the browser cache. Alternatively, you can use “Unmask Download Link” option, then download links will work regardless of the browser cache.
Hi,
You can do it by applying to allow access options to the particular package. And from the Downloads > Settings > Basic
, you can do Access Settings ► When user is not allowed to download ► Only Block Download Link
. Thus only given access members can download the file.
Thanks.
We have a download file link set up on our site. The Name and Email fields both work on the site but then the name field isn’t updated on the admin dashboard. Looks like it stopped working on June 22, 2020. How can this glitch be fixed?
https://www.dropbox.com/s/nvcc30asuu09mpj/Screen%20Shot%202020-07-01%20at%203.56.01%20PM.png?dl=0
I’m having the same issues with all desktop browsers. The download links worked before the latest update (3.1.02) when the link masking was turned on. I have turned off the link masking and now the downloads work. Will you fix the issue in the next update so we can go back to masking the links?
Hi,
you can follow the link below documentation,
Template Files
by default, you are using link-template-default.php
for link template and page-template-default.php
for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in page-templates
for page template or link-templates
for link template. And you have to replace [download_link]
with <a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a>
in related PHP file.
Thanks.
Hello, sorry how to download the attached files please? Even when logged in I see no download links available inside posts where members say translation is attached.
Without the download page template and link template(shortcode page), it won’t be downloaded anywhere without pressing/clicking the download button
HI,
You can Unmask Download Link as i image attached,

thus, it may help you
Thanks.
This reply has been marked as private.