Hi,
The format of the link that is sent to visitors via the Email Lock has changed from v4 to v5, and the new format URLs all return 404.
old format was like this: /?wpdmdl=(packageID)
new format is like this: /wpdm-download/(hash)
The old format still works and is generated by the direct ‘download’ button, the new format returns 404 from any client / browser / etc.
Can you advise on what we need to do to troubleshoot and fix this?
Thank you
When clicking the link in the email to download the file I see the following:
Warning: include(/var/www/wp-content/plugins/download-manager/tpls//download-page-clean.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/download-manager/libs/class.Apply.php on line 1170
Warning: include(): Failed opening '/var/www/wp-content/plugins/download-manager/tpls//download-page-clean.php' for inclusion (include_path='.:/opt/remi/php72/root/usr/share/pear:/opt/remi/php72/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/wp-content/plugins/download-manager/libs/class.Apply.php on line 1170
Any help would be appreciated.
Thanks.
Thanks. Sorry, maybe I wasn’t clear in my post, but what I am looking for is the ability to just display the download button only (not the entire link template that is assigned to that package). Is there a way to just display just the download button only?
https://pasteboard.co/IId7pzg.png
Thanks
Hi Shahriar,
If the cost of the product is zero, we see the download link but the viewer doesn’t display the file. Shouldn’t it show the file if it is zero cost?
This is on one of my sub-sites I’m setting up. I prefer not to deactivate Premium Package because I will have some items I want to sell on the site.
https://www.yamahastylesgroup.com/download/roddy_mccawley-pdf/
There will be a lot of free PDFs on there but the members must still be logged in to see them. Some zero cost, some paid for. Any ideas for me?
Maybe a template with a different shortcode if the viewing is free? On my main site I’ve edited every PDF using a different plugin in the Download post description, it is very time-consuming so I’m trying to find a quicker way.
I’m testing the other things we have been discussing, I haven’t had much time to do the testing lately.
Many thanks,
Mike
Download Manager page and link templates use [create_date]
template tag to display the package date. Now we can extend this tag to display the time along with the date. Just add the following code to your theme’s functions.php file.
function wpdm_package_date_time($vars){
$vars['create_date'] = get_the_date('F j, Y g:i A', $vars['ID']);
$vars['update_date'] = get_post_modified_time('F j, Y g:i A', $vars['ID']);
return $vars;
}
add_filter('wdm_before_fetch_template', 'wpdm_package_date_time');
Hi,
Please check the download link expiration options from the Basic Settings page http://prntscr.com/pjxfnw Send temporary wp-admin login info in private reply if you can resolve it by changing these options.
Thanks.
I have wpdm pro 5.x installed.
If I use the lock option for privacy acceptance, I can get the file. If I also use the email lock, I can’t get the file because the site send an expired link(I didn’t set any expiring date).
When I try to use the Template Preview for Link Template or Page Templates the new window opens but the following error message appears.
I have DownloadManager Version 5.0.3 installed.
Warning: include(/home/xxxxx/public_html/wp-content/plugins/download-manager/tpls//clean-template.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Templates.php on line 37
Warning: include(/home/xxxxx/public_html/wp-content/plugins/download-manager/tpls//clean-template.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Templates.php on line 37
Warning: include(): Failed opening ‘/home/xxxxx/public_html/wp-content/plugins/download-manager/tpls//clean-template.php’ for inclusion (include_path=’.:/usr/local/php70/pear’) in /home/xxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Templates.php on line 37
You can bulk update page/link template of old packages using Default Values add-on. This add-on also saves default values of all package settings for your new packages.
Or you can add the following CSS to your active theme’s functions.php file. After adding the code visit any page. That will complete the update process. Then remove the code.
function wpdm_update_link_templates(){
$params = array( "post_status" ► "publish", "post_type"►"wpdmpro","posts_per_page"► -1 );
$q = new WP_Query($params);
while ( $q->have_posts() ) {
$q->the_post();
update_post_meta(get_the_ID(),'__wpdm_template', 'link-template-default-icon');
}
}
add_action('init','wpdm_update_link_templates');
Maybe the package is locked. The download will work only for open packages, getting the download link of locked packages requires elaborate customization.
If your downloads doesn’t have any lock then try replacing the code your sent above with the following,
<td><a href="<?php echo get_permalink($stat->pid).'?wpdmdl='.$stat->pid; ?>"><?php echo $stat->post_title; ?></a></td>
hi,
One of the new packages I was able to create New Package
One package I could edit Edite Package
Please Check The Link
Let me know if there is a problem
Thanks
Hi,
I wish to style the WPDM link buttons such as ADD TO CART to match button style on other areas of my site. I have downloaded and activated the Buttons Template Add On, but cannot find where how to access this plugin after activation?
Is this the correct plugin to use for this type of customisation?
Thanks in advance
Mike
There is a tag shortcode [wpdm-tags cols="4" icon="tag" btnstyle="default"]
in Directory Add-on which lists all tags. Each tag is link to it archive page ( demo ).
Do you want the search result to include packages that have a matching tag like the search key? Directory add-on doesn’t have this feature yet.
Please send temporary wp-admin login info in private reply to check the issues related to download count, download limit, and password limit.
About the 2 buttons, maybe one is coming from the file list which provides a single file download option. Everything is customizable in the page/link template. If something seems redundant to you, you can easily remove it by creating a custom template.
For emailed download link pacakge settings won’t apply because you are setting some custom rules like usage limit, expiration period etc when sending the email.
Sidebar View – [wpdm-archive button_style="default" order_by="post_title" order="asc" items_per_page="10" cat_view="sidebar"]
Default View – [wpdm-archive button_style="secondary" link_template="link-template-panel" order_by="post_title" order="asc" items_per_page="10" cols="2"]
Compact View – [wpdm-archive button_style="inverse" link_template="default" order_by="post_title" order="asc" items_per_page="9" cat_view="compact" cols=1]
Simple – [wpdm-archive button_style="inverse" link_template="link-template-panel" order_by="post_title" order="asc" items_per_page="12" cat_view="hidden" cols=4]
This page lists all directory add-on shortcodes https://www.wpdownloadmanager.com/doc/installation-usage/ Although it is missing some parameter info.
-
This reply was modified 5 years, 8 months ago by
Abdus Sattar.
Is your PayPal return link on payment, to the download address or to your web address?
Hi, thanks.
Now I have created for the client a download page.
Now we are sending link.
But can you still explain me:
1.)
Why Download count is not showing, after download the number will not change?
2.)
Why Password limitation is also not working?
I have tried more times but it has no effect?
3.)
Why Download limitation is also not working?
I have tried more times but it has no effect?
4.)
Why I have in your default site template two download buttons?
Thanks!
It is based on a custom session created by Download Manager. The session is based on the user’s IP, device, and browser.
After submitting details Download Manager is sending an email with the download link to the provided address. You have to enable the download instantly option ( http://prntscr.com/pylu64 ) to download instantly after submission.
And the customization I have added also based on this option. Try to download the second package after downloading the first one with email submission. The second download won’t ask for the email address.
Hi,
So, you want to send only a package URL instead of the download link. Then want the user to visit the download page and input the password to access the download.
It is possible but requires minor customization in emailPackageLink
function located here /download-manager/admin/class.WordPressDownloadManagerAdmin.php
Please send temporary wp-admin login info in private reply if you want me to update the code to remove the download link from the email.
Although, the password step seems unnecessary as you are sending the password via email why not just send download link.
Thanks.
Hi, thanks for fast answer, so for the moment what I can understand:
1.) This is not working for now? Or this will not work?
=► https://prnt.sc/pxuqg5
=► https://prnt.sc/pxura0
There can be different files, not only pdf which I need with password protect.
What I want is, I wanted directly send email link and after click on mail download button I wanted to be asked for password before downloading.
2.) “When you create the package and set 2 lock options, the file will be downloaded when the user completes one of the options.”
► Which two lock options? Where and how to set?
Thanks!
hi,
When you create the package and set 2 lock options, the file will be downloaded when the user completes one of the options. So, an emailed download link won’t ask for a password.
However, if your file is a PDF, you can Password Protect the file using PDF Stamper ( https://www.wpdownloadmanager.com/download/wordpress-pdf-stamper-plugin/ ) add-on.
Thanks
Hi, after I have created a dwonload file with password protect and send via email, ….
There will be no question for password before download?
What I am doing wrong?
I need that the email download link file will be also password protected?
Thanks!
You can use the wpdm_after_upload_file
hook to email the uploaded file. This hook provides you path to the uploaded file. Please check the related documentation in the following link,
https://www.wpdownloadmanager.com/doc/filter-reference/wpdm_after_upload_file-filters-applied-uploaded-file-name/
I have Download Manager Pro and I bought a bundle at the time which included the Stripe payment gateway which I use, my WordPress plugins panel is telling me there is an update to 1.4.0 for that, I click on the update link which takes me to the Download Manager plugins panel, I click the update button there, it blinks, then says success, when I reload the screen it goes back to saying update. If I click on the link to the plugin it takes me to the sales page for it, I have an up to date subscription, where can I either get the .zip file to manually update it or get the update panel to work, I think the update panel failure may be to do with the fact I am using the SSH SFTP Updater Support plugin in my WordPress installation.
Hi,
Masterkey is meant to override the permission settings. If you want to share the download only restricted roles then use just a simple download link without the masterkey.
Thanks.