Hello Noomia SPRL,
You can try this, <?php echo WPDM()->package->downloadLink($ID); ?>
in your related page/link template file. I hope it will work fine for you. please check and let me know
Thank you and regards
Hello Noomia SPRL,
You can simply use the template tag [download_link]
, it will work fine for you. please check and let me know
Thank you and regards
Hello Nayeem ๐
No problem. I have backups yes, but I don’t want to use the default template file. In fact, I only need to know by which function you have replace \WPDM\Package::downloadLink()
, as it seems it’s not available anymore ๐
I’m a developer, so you can be techy ๐
Kind regards,
Cedric
Hello, I tried adjustments mentioned in other forum posts, but still could not fix it.
I created search shortcode on frontpage (everything ok), and also a post page including search shortcode.
In other pages the search shortcode is working ok, but not in frontpage (using astra theme).
I tried different themes and disabling plugins, but still having issues.
I also tried search results widget on both frontpage and post, it works but without the link template (it returns not formatted text and without download links).
Hello there ๐
I hope you’re fine?
My website was running WPDM 5.3.3 without any issue. Now, I’ve tried to update to 6.3.3 but I have a fatal error that breaks the site:
PHP Fatal error: Uncaught Error: Class 'WPDM\Package' not found
This code is in one of my template file. If I comment the lines, the site is “working” again but with some missing infos (due to these commented lines).
Here are the lines:
– $data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array(
'template_type' โบ 'url'
));
– $files = \WPDM\Package::getFiles($data['ID']);
I guess that this method is not available anymore. But could you tell me how I should replace my code in order to make it work again?
Kind regards,
Cedric
Hello the update released today appears to have fixed one of the errors that was showing in error log but still getting a white screen when accessing the POS link https://test4.sksheep.com/pos
When I disable Download Manager it works perfectly fine.
This error still shows
2023/05/01 18:48:12 [error] 1529781#1529781: *281177 FastCGI sent in stderr: "PHP message: Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wp-i18n' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets" while reading response header fro1#1529781: *281177 FastCGI sent in stderr: "PHP message: Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wp-i18n' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets" while reading response header from upstream, client: 74.206.147.19, server: test4.sksheep.com, request: "GET /pos HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php80-fpm-test4.sksheep.com.sock:", host: "test4.sksheep.com"
2023/05/01 18:49:35 [error] 1529781#1529781: *281177 FastCGI sent in stderr: "PHP message: Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wp-i18n' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets" while reading response header from upstream, client: 74.206.147.19, server: test4.sksheep.com, request: "GET /pos HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php80-fpm-test4.sksheep.com.sock:", host: "test4.sksheep.com"
This reply has been marked as private.
Hi,
I want to click and popup expand, see the picture in this section. How can I add Code to this Templete?
Example web: https://www.iresauce.com/download/monster-5/
Screenshort: https://nimb.ws/AlfY8U
————–
This is the template page code.
<style type=”text/css”>.more_previews_a{display: block;float: left;margin-right: 6px;}</style>
<div class=”row”>
<div class=”col-md-5″>
[thumb_400x0]
</div>
<div class=”col-md-7″>
<ul class=”list-group ml-0 mb-3″>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:version]”>
[txt=Version]
<span class=”badge badge-primary”>[version]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:download_count]”>
[txt=Download]
<span class=”badge badge-primary”>[download_count]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:file_size]”>
[txt=File Size]
<span class=”badge badge-primary”>[file_size]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:file_count]”>
[txt=File Count]
<span class=”badge badge-primary”>[file_count]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:create_date]”>
[txt=Create Date]
<span class=”badge badge-primary”>[create_date]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:update_date]”>
[txt=Last Updated]
<span class=”badge badge-primary”>[update_date]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:update_date]”>
[download_link]
</div>
</div>
<div class=”row”>
</div>
This is the shortcode I am using
[wpdm_all_packages login=1 items_per_page="10" jstable=1 order_by="date" order="DESC" cols="title|acf_custom_propietario|acf_culminacion_vencimiento|download_link" colheads="Title|Propietario|Vencimiento|Descarga"]
This is what I see
https://ibb.co/zSYnxXB
https://ibb.co/VtJbQL2
Hello OSCAR DEL RIO ALVAREZ,
You have to use the [thumb_WxH]
or [thumb_url_WxH]
template tag in your related package link template. For more template tags and usage, please visit here, https://www.wpdownloadmanager.com/doc/templates/template-tags/
thank you and regards
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
This reply has been marked as private.
I opened the WP editor on may specific download page and it works now. It must have been a issue with WordPress after an update. The Registration page was showing that the subscriber was logged in, but when I opened the download page or other pages, it did not show at the top the the subscriber was logged in. After just saving the page now it shows the subscriber is logged in and the download links are all showing on the download page.
I am having the same problems as these people in this post (https://www.wpdownloadmanager.com/support/topic/pdf-stamper-flattens-hyperlinks/) and here (https://www.wpdownloadmanager.com/support/topic/pdf-stamper-removes-internal-links-in-pdf/).
When we “Stamp” a PDF with PDFStamper, it flattens the links (both masked and direct URLs) so readers of that PDF cannot actually click the links when they view or download the PDF.
Has this been fixed yet?? It’s April 2023, nearly 3 years after these problems have been mentioned on these forums. I’m hoping the team as WPDownload Manager or any users have a solution or workaround.
Hello Deb,
Thanks for contacting us.
In the first screenshot that is from Email Template. Can be found in Downloads > Templates > Email Templates
menu
In ths second screenshot that is from link template. Details here.
You can find all from Downloads > Templates menu
If you need further assistance please let me know.
Regards
Tanvir
This reply has been marked as private.
Here it is:
Lock Options
Actually, too keep the link protected while still you want to allow user to download the item for free, you better use Captcha lock option.
Hi again,
I noticed that the download link at the end of the last pack It should change automatically every time. This is also a way to prevent theft of download links. I recommend this section if in the future you will develop a way to prevent downloads from Chrome.
https://shop.chiistudio.com/download/psd-test0001/?wpdmdl=1867&refresh=6443c3d258f7d1682162642
If you want to hide download link effectively, you need to use a lock option. In your case you may use terms lock. However, we are soon update hide download link
option to keep it totally hidden from search engines and bots.
I used to buy your plugin but it’s expired. Now deciding whether to renew or not. Because I encountered one problem that was not solved.
Want to know if your plugin can’t hide the download link, right? I checked in Chrome, can unpack the link.
This is a test site that used to test your Download plugin. In Chrome you can see the source link. Which shouldn’t show a URL like this. You look at the code. I use elementor as my main tool.
webtest:
https://shop.chiistudio.com/
Screenshort:
https://1drv.ms/i/s!AifVBNS8N5OIg48L3YEt2HbkomQ9JA?e=dniIfm

I’ve seen a similar post recently but I would like to also report that I’m having this issue.
I’ve tried multiple types of reCAPTCHAs – v2 invisible, v3, and up until recently v2 clickable was working perfectly fine. The reCAPTCHA dashboard reports that the site is no longer verifying reCAPTCHA solutions. As far as I’m aware, nothing has changed and I’ve made sure the keys are all correct.
Passing through the CAPTCHA seems to work but after a success, it merely displays “undefined” rather than the download link/button or initiating the download.
@Shahjada, I’ve already customized the link and page templates to create new defaults, and while it’s great that I can clone and then edit templates (yay!), I can’t find a way to specify the new templates to be used as my new “defaults” nor to bulk-edit my assets to specify the new defaults, it looks like I’ll have to manually edit my hundreds of downloads to do that…..sigh…
BUT on THIS issue of the base URL, I see that in the plugin’s main file there are lines that setup the slug variable, in download-manager.php on line 289 there is this:
$tslug = get_option('__wpdm_purl_base', 'download');
if(!strpos("_$tslug", "%"))
$slug = sanitize_title($tslug);
else
$slug = $tslug;
and then a few lines further down, line 304, is the rewrite argument for the CPT that uses that variable.
I tried commenting those out but then the plugin inserted “wpdmpro” into the URL and did NOT use my category. ๐
I’ve already had to hack this file to add support for post_tags, which is critical for us, we can’t do without the Post Tags applied to each asset, so as long as I’m hacking it, can you tell me if you think this part of the code is causing the problem?