I have WPDM Pro and created a new download selecting 3 files from my server.
When I view the download page on the front end one of the files downloads ok but the other 2 files that were selected are showing as 0kb when downloaded.
I have tried this creating 2 different downloads with 2 different sets of files and the same result.
There are 3 files in each download mp3, pdf, epub – the epub file downloads correctly, the mp3 and pdf download as 0kb files.
I have checked the files uploaded by ftp and they are there ok and when I enter the direct url to the mp3 file on the server it will play directly in my browser.
In Allowed types of files to upload I have put: epub,pdf,mp3
In settings File Browser Root is set to: /home/domain.com/domain/public_html/wp-content/uploads
When I select a file from server I can see the folders and files ok
I have tried different variations in File Browser Root but doesn’t help.
So I don’t understand why the epub files are downloading ok but the mp3 and pdf files are not???
Please Help!!!
I’ve been using the plugin for around two years and noticed a problem with the download count.
Although the amount correctly increases each time I download the frontend file, the total downloads displayed in each package are exorbitantly higher than the actual amount. I’m the only admin and I’m sure no one has manually changed this amount.
Example: https://www.programacap.org.br/material/resolucao-no-6-de-8-de-maio-de-2020/
This counter shows more than 8 thousand downloads, but there are only a few dozen hits on this page in the last 2 years.
I also noticed that the History and Stats admin page shows an exorbitant number of daily downloads (in my case, more than 5 thousand per day). But the site is rarely visited, I have less than 50 visitors per month!
What can I do to fix this bug? Could this count be a bot/crawler hit?
I imagine the download lock might help, at the same time I can’t use any of Google’s solutions because the site is hosted in Europe and the company’s GDPR prohibits me from using tools outside the EU.
Hi,
We found out that all downloads appear in the default language (EN). However, we translated everything and it used to work.
We use WPML.
You can see it here. The names should be in German but those are the English downloads.
https://www.truma.com/de/service/download-center/
Is there any further setting required to show the correct language?
The below code is pasted on function.php
It allows us to automatically send a notification via email when a visitor downloads a file from WPDM on Website.
I have pasted the below code on function.php, however, I found out that it is only able to display a single character for the field “Company” when it is sent notification email (the field is an extra field created using Advanced Custom Fields.) refer screenshot below.
i have check all the script it was fine. is there anything wrong with the core code? or bugs?
https://pasteboard.co/XBPNft0Nhr3p.png
/** * This code notifies via email when visitor downloaded a file from wpdm. last updated 14Nov2023 */
add_action("wpdm_before_email_download_link", "your_function", 10, 2);
function your_function($post, $package){
$package_data = get_post( $package['ID'] );
$headers = 'From: NSW Download Center <example@nxxxxxxx.com>' . "\r\n";
$headers .= 'Content-type: text/html' . "\r\n";
//If it's in the trash, you won't be able to download it.
if( $package['post_status'] == 'trash' ){
status_header( 403 );
die;
}
// Set the time zone to Asia/Singapore
date_default_timezone_set('Asia/Singapore');
$current_date_time = date('Y-m-d h:i:s A');
$company = $post['custom_form_field']['Company-Name'];// Use Advanced custom field to send out company name.
$file_type_array = WPDM()->package::fileTypes($package['ID'], false);// Send out file type of the packages downloaded.
$file_types = implode(', ', $file_type_array);// Send out file type of the packages downloaded.
$message = '<html><body>';
$message .= '<strong>Attention Sales Team</strong>: A visitor has downloaded files from the NSW website. <br>This could indicate potential interest in our marketing materials or whitepaper. <br> Please review the information for possible follow-up with potential clients.
';
$message .= '<strong>Leads/Downloader information:</strong>
';
$message .= '<table style="border: 1px solid #ccc; background-color: #f5f5f5; border-collapse: collapse;">';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Name:</td><td style="border: 1px solid #ccc;">' . $post['name'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Company:</td><td style="border: 1px solid #ccc;">' . $company['EmailLock/Company'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Email:</td><td style="border: 1px solid #ccc;">' . $post['email'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">Downloaded File:</td><td style="border: 1px solid #ccc;">' . $package_data->post_title . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">File Type:</td><td style="border: 1px solid #ccc;">' . $file_types . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">IP Address:</td><td style="border: 1px solid #ccc;">' . $_SERVER['REMOTE_ADDR'] . '</td></tr>';
$message .= '<tr><td style="font-weight: bold; border: 1px solid #ccc;">File downloaded Date/Time:</td><td style="border: 1px solid #ccc;">' . $current_date_time . ' (GMT+8 Malaysia Time)</td></tr>';
$message .= '</table>';
$message .= '<br>This email is auto generated by web script when any files on NSW website download center is requested.
<br><br>';
$message .= '<br></body></html>';
$recipients = array(
'Email@email.com',
'xxxxxxx@gmail.com'
);
$to = implode(', ', $recipients);
wp_mail($to, "Potential Leads - Visitor downloaded a file from the NSW website.", $message, $headers);
}
not sure if i have created mutiple post to this forum?
it seems doesnt allow me to post new topic here on the support center
Download Manager not working. It doesn’t show as option to see files in wordpress media library or on posts.
Then when i go to downloads and show files i upload i cant download them. I get this message: Package you are trying to download is not available!
Also when i go to all files i can see any of my cloud library files.
The reason i brought this plugin was for offload media files, images, and other assets from your WordPress server to pCloud storage.
Bug: If you click “Tigo Energy” in the categories and then “Leistungsoptimierer”, suddenly all downloads appear instead of just those under Performance optimizer (or tigo energy)
hi, I have 2 question to ask
Question 1. how do i add a drop-down menu to filter out catagories of each items. since i have many files and videos it would be nice that i could allow my visitor to filter the items based on the media they wan to find. example as below screnshot..
Question 2. Im trying to change the CSS of this page. https://nswautomation.com/NSW/dashboard/?udb_page=my-downloads
it is not overwriting, even i used “!important”, i have tried to change it on appearance -> customize. it doenst work either.
i have also followed https://www.wpdownloadmanager.com/how-to-add-custom-css-in-wordpress/
it doesnt seem to change anything.
help ..
Hi Support Team
I need to be able to pull either the page title or the download title into a field in the Formidable form in the locked pop-up modal. The field will be a hidden field called source, and will be used to indicate which file has been downloaded, as the information in Formable will then be synced with Zapier to other platforms.
I have tried to use the [page_title] shortcode, but as it reads the title from the pop, it title is labeled as Download, instead of it being the page or download title.
I can used [server param=”REQUEST_URI”] to get the URL with is ok for a source, but would prefer if i can just get a simple heading or title.
Can I get some assistance with this?
Test page.
Hey Team Support. For some reason. My downloads are all giving me this error
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>XT94DRD5PATB2PK9</RequestId>
<HostId>JSPc+y/FwWFLWIxD/VVCLhDFjlriHQHdtCU70SOlvEzpS4wQ2+v8Dsr9gf/63U8F7DPPP0G20c4=</HostId>
</Error>
Any idea? its happening to downloads across my entire site, particularly older downloads
When the captcha link opens the popup it isn’t centered on the screen and you have to click the download button 2 times before the file actually downloads. This only seems to happen when on an iPhone though… could you please help?