Hi team,
latest WP 6.7.1 triggers a notice for the Download Monitor plugin.
Notice: Function _load_textdomain_just_in_time was called?incorrectly. Translation loading for the?download-monitor
?domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the?init
?action or later. Please see?Debugging in WordPress?for more information. (This message was added in version 6.7.0.) in /public_html/wp-includes/functions.php on line 611
Plugin adjustments are required according to this documentation:
https://make.www.ads-software.com/core/2024/10/21/i18n-improvements-6-7/
Thank you
]]>Hi,
I do not know exactly after which update my dlm_can_download filter stops working, but currently the return bool of my filter does not get recognized anymore.
add_filter('dlm_can_download', 'mr_dlm_can_download', 10, 3);
function mr_dlm_can_download ($can_download, $download, $version)
{
$members_only = ( $value = get_post_meta( $download->post->ID, '_members_only', true ) ) ? $value : 'no';
if($members_only=='no')
return true;
if($members_only!='no' && (isset($_COOKIE['bkdlreg']) && $_COOKIE['bkdlreg']=='ok') ) {
return true;
}
return false;
}
I’ve double checked the return value from my filter and even if it’s true, the access is’nt granted anymore.
I temporarily helped me out with the following:
// File: class-dlm-members-access-manager.php
// Line: 90
if($download->is_members_only() && (isset($_COOKIE['bkdlreg']) && $_COOKIE['bkdlreg']=='ok') ) {
$can_download = true;
}
if ( $can_download && ! empty( $_SESSION['dlm_error_texts']['members_only'] ) ) {
unset( $_SESSION['dlm_error_texts']['members_only'] );
}
return $can_download;
}
}
]]>
Hello,
You are using the wp_admin_notice function that was introduced in WordPress 6.4, this means you plugin is not compatible with WordPress 5.5 as you say.
]]>Hello,
I’ve installed the last version 5.0.14. Since then all my downloads (180 pieces) show the same error in the list and cannot be downloaded (a large “download.html” file downloads instead of the correct file):
Warning: file_exists(): open_basedir restriction in effect. File(/wp-content/uploads/dlm_uploads/OP-02_Vyvoj_lidstva.mp3) is not within the allowed path(s): (/www/doc/www.odyseapoznani.cz:/disk2/doc/www.odyseapoznani.cz:/usr/share/php:/www/tmp:/tmp) in /www/doc/www.odyseapoznani.cz/www/wp-content/plugins/download-monitor/src/FileManager.php on line 87
Pls can you help – thank you.
]]>Receiving debug warnings based on 5.0.14:
Warning: session_start(): open(/var/cpanel/php/sessions/ea-php73/sess_nh9asdi9befoevq2s1d2pdnos, O_RDWR) failed: No such file or directory (2) in /chroot/home/redacted/redacted.org/html/wp-content/plugins/download-monitor/src/DLM.php on line 959
Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php73) in /chroot/home/redacted/redacted.org/html/wp-content/plugins/download-monitor/src/DLM.php on line 959
]]>Hello, I have a problem with Polylang and your extension.
The downloads are not correctly translated.
On Polylang’s recommendation, I even added this snippet:
add_filter( 'pll_get_post_types', 'add_cpt_to_pll', 10, 2 );
function add_cpt_to_pll( $post_types, $is_settings ) {
if ( $is_settings ) {
unset( $post_types['dlm_download'] );
} else {
$post_types['dlm_download'] = 'dlm_download';
}
return $post_types;
}
To be sure that the CPT is added correctly.
This does not change much, because even if it is linked to another language on the single download
wp-admin/edit.php?post_type=dlm_download
)Could you please see what is happening?
(The fault appears on an old site from WPML, but also on a new installation, with Polylang Pro)
]]>Hello,
the Counter is always at 0 and not counting. Maybe someone can help me with this issue.
kind regards
Cay
]]>Message
PHP Warning: session_start(): Session cannot be started after headers have already been sent in /srv/htdocs/wp-content/plugins/download-monitor/src/DLM.php on line 546
Timestamp
2024-10-24T04:04:00.000Z
Kind
plugins
Name
download-monitor
File
/srv/htdocs/wp-content/plugins/download-monitor/src/DLM.php
Line
546
]]>
Hello
With version 5.0.13, the content of the modal box has changed and is not working properly (I think!)
– The title (No access!) of the language file is no longer displayed, regardless of the language.
– The label (Access denied. You do not have permission to download this file.) of the language file is no longer displayed. But instead it fetches the content located in Downloads > Settings > Advanced > Access > No access message
I think it was better before.
]]>Hello,
If I want to download a file from chrome or firefox I have the message: ERR_INVALID_RESPONSE
It works under safari.
I tried to:
I have the https protocol in the settings (and on the site).
I don’t know what to try anymore
If you have an idea
Thank you
]]>I have the Members Only and Terms & Conditions required boxes checked for my document, however, the Members Only feature is not working and people are able to download documents as a “Guest”. To duplicate this issue, go to the page and do not create a login, simply click the Terms and Conditions box and select the Download button at the bottom of the page. When it gives you an error, all you have to do is click the button again and it downloads.
]]>Every download that is protected by DLM returns a 404. I have tried resaving the permalinks, but that didn’t help. I also disabled all caching and redirections but that also didn’t help. For example, if you look at the link I provided, there are 2 downloads in the “Plan Info” section under the Patriot Medial column. “Voluntary Group Benefits” works, but doesn’t have DML protection (not sure why). “Health and Supplemental Benefits” is DLM-proteced and doesn’t work. This seems to have started with the last update. Any help would be greatly appreciated.
]]>Hi, it was working before great but after updates I never check that which path is uploaded to. So now i check its uploading in “/wp-content/uploads/dlm_uploads/2024/10/SBP.pdf”
So i check settings and change this but still uploading in same path, why is that.
https://ibb.co/R0VyPvc
I updated the plugin from version 4.X.X to 5.0.12. The problem is that only the Title and Date are displayed on the “All Downloads” screen. The columns for ID, file and version are missing. My WordPress version is 5.9.10. Check the relevant screenshot:
https://drive.google.com/file/d/1JqCD_UlP6Ofb1KKt61ocW1gI-cv6TNRu/view?usp=sharing
]]>Hello.
Should we activate both free and pro versions?
]]>Hello,
I make large files available for download, around 1G to 1.5G each .zip file. This is already dividing an entire collection of files into several parts.
I would like to do these downloads using the Download Monitor plugin, because of its control and security features, but using DM the download of these zip files becomes corrupted. The same does not happen when I do not use DM.
I did a test by disabling XHR downloads through functions.php (as described in a topic on this forum), but some downloads continue with corrupted files.
I also increased the PHP memory limits.
Do you know if Download Monitor has file size limitations, or if there are settings that can be made in WordPress or on the server that can avoid this problem?
Thank you
]]>Hello!
I have a digital product store with 80,000 products and am using Woocommerce. With such a number of products, adding new ones through Download monitor is too difficult. I want to put the download shortcode of Download monitor in the product description, is there a simpler method? Thanks
]]>After upgrading to 5.0.10 on a Multi-site network, all downloads on all sites returned an “Access Denied, , go to Home Page” error. Went to edit the download file but got this message, “You’re trying to serve files from your server that are not in the enabled allowed paths. Please contact the network administrator to add or enable the path(s) for your website.” When trying to check the approved download path, I do not see the Download Monitor > Settings > Advanced > Add download paths on the individual site(s); nor at the network level.
After rolling back to 5.0.9, all sites work except for one, which is displaying this error, There has been a critical error on this website. Learn more about troubleshooting WordPress.” on the DLM Download Paths tab under the Sites >> Edit at the network level.
Also received this PHP error in the server log, 2024/09/25 20:07:08 [error] 55665#55665: *433012 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /www/xxx_329/public/wp-content/plugins/download-monitor/src/Admin/DownloadPaths/class-dlm-downloads-path-table.php:300
And this one, which is specific to the site with the critical error, 2024/09/25 22:23:27 [error] 55666#55666: *459416 FastCGI sent in stderr: “PHP message: PHP Warning: foreach() argument must be of type array|object, string given in /www/xxx_329/public/wp-content/plugins/download-monitor/src/Admin/WritePanels.php on line 418” while reading upstream, client: xx.xx.xx.xx, server: xxxwp.org, request: “GET /wp-admin/post.php?post=6983&action=edit HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.1-fpm-xxx.sock:”, host: “xxxwp.org:40739”, referrer: “https://xxxwp.org/wp-admin/edit.php?post_type=dlm_download”
Running WP 6.2.2 on a Nginx web server.
]]>Hi there, after adding a download path and then trying to delete the old download path, I now get this critical error warning (and no download path options).
]]>I was following the ‘Add download paths’ article in the knowledgebase
I can’t see Settings > Advanced > Add download paths in my CMS
Are these settings premium only or should be visible in lite?
Version 5.0.9
]]>I’ve been having this issue for a few days now. The error that is shown on the single download page is “You’re trying to serve files from your server that are not in the enabled allowed paths. Please contact the network administrator to add or enable the path(s) for your website.”
The instructions provided do not match my plugin settings. I’m using WP 6.4.5 and DM 5.0.9. It is a multi-site installation. Thank you
since the latest updates have been applied when a user now clicks on a download link it keeps retrying to download and even if they click on the manual download, nothing happens.
]]>Hi,
I found a bug in WP Multisite when files couldn’t be downloaded.
The reason is the route because sites/1 does not exist ever.
/home/customer/www/domain.com/public_html/wp-content/uploads/sites/1
Thanks
]]>Is there a way to prevent logging of downloads if it matches a predefined IP address?
(A bit like the blacklist IP)
Many employees here download files from the website, and it logs it every time, which skews the data for prospective customers who download the same files.
Thank you.
]]>Hi,
I get an error regarding the wp_download_log. Too many entrys. Is there no way to stop this behavior of the Plug In.
kind regards
Cay
]]>Hi
It happens when adding a new Download and Title input is empty. It should create a “untitled” post.
[11-Sep-2024 17:24:07 UTC] PHP Fatal error: Uncaught Exception: Download not found in /home/customer/www/mysite.com/public_html/wp-content/plugins/download-monitor/src/Download/WordPressDownloadRepository.php:73
Stack trace:
#0 /home/customer/www/mysite.com/public_html/wp-content/plugins/download-monitor/src/Admin/WritePanels.php(53): DLM_WordPress_Download_Repository->retrieve_single(1002)
#1 /home/customer/www/mysite.com/public_html/wp-includes/class-wp-hook.php(326): DLM_Admin_Writepanels->add_meta_boxes('dlm_download')
#2 /home/customer/www/mysite.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /home/customer/www/mysite.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/customer/www/mysite.com/public_html/wp-admin/includes/meta-boxes.php(1716): do_action('add_meta_boxes', 'dlm_download', Object(WP_Post))
#5 /home/customer/www/mysite.com/public_html/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post))
#6 /home/customer/www/mysite.com/public_html/wp-admin/post.php(206): require('/home/customer/...')
#7 {main}
thrown in /home/customer/www/mysite.com/public_html/wp-content/plugins/download-monitor/src/Download/WordPressDownloadRepository.php on line 73
Thanks
]]>
Hi
I get this message error because a script is enqueued before jQuery
Uncaught TypeError: jQuery(…).on is not a function
This is the script:
<script>
jQuery(document).on('dlm-xhr-modal-data', function(e, data, headers) {
if ('undefined' !== typeof headers['x-dlm-tc-required']) {
data['action'] = 'dlm_terms_conditions_modal';
data['dlm_modal_response'] = 'true';
}
});
</script>
It’s located here: /download-monitor/src/TermsAndConditions/classes/class-dlm-tc-modal.php
I fix it simply changing
add_action( 'wp_footer', array( $this, 'add_footer_scripts' ) );
by
add_action( 'wp_footer', array( $this, 'add_footer_scripts' ), 99 );
Thanks
]]>Hi,
There’s a really nice block available to list downloads in a category in a nicely formatted table.
The only problem is the sort order is a bit random, is there a way to alter the sort order?
Thanks!
]]>Hello! Strange issue I’m running into while using the Custom URL function within this great plugin.
When I try to create a download link for this URL, it does not save properly and the field shows empty/blank after refreshing: https://thecircle.founderscircle.com/wp-content/uploads/2024/01/PwC_StatesoftheIPOMarket.pdf?WT.mc_id=CT11-PL1000-DM2-TR1-LS2-SC_XS-BM-CN_DEAL-TheCircle
However, a different URL that also has similar UTM tracking parameters at the end of it works just fine: https://www.pwc.com/us/en/services/consulting/deals/us-capital-markets-watch.html?WT.mc_id=CT11-PL1000-DM2-TR1-LS2-SC_XS-BM-CN_DEAL-TheCircle
Only differences I can see between the two is that:
1) the first one is hostel locally with parameters (thecircle.founderscircle.com is our site) while the second one is hosted outside of the site
2) the first one is a PDF while the second one is an html page
Are either of these differences the deciding factor between it working and not working, and if so can someone help me understand why? Thank you!
]]>I have read quite a bit and I am still unclear on what payment platforms are supported? Do the sales go through WooCommerce and whatever payment platform you have set up, like Stripe, or does this plugin allow for sales outside of WooCommerce? Specifically, does it support Stripe?
]]>