-
Search Results
-
Hello,
I would like to report what appears to be a bug in WP Download Manager Free 3.3.51.
We are seeing a very large number of PHP warnings like this:
preg_match(): Delimiter must not be alphanumeric or backslashThe warning points to:
/content/plugins/download-manager/src/__/__.phpAfter debugging, the warning appears to originate from:
WPDM\__\__::sanitize_var($value, $sanitize = '')In the default branch, the method does this:
if($sanitize !== ” && $value !== ” && @preg_match($sanitize, ”) !== false) {
$value = preg_replace($sanitize, ”, $value);
}In our case, $sanitize is repeatedly the string:
"array"Since “array” is not handled by any explicit case in sanitize_var(), it falls into the default branch, and the code effectively does:
@preg_match('array', '')which triggers:
preg_match(): Delimiter must not be alphanumeric or backslashWe added temporary debugging and a backtrace. The relevant call chain looks like this:
– do_shortcode()
– WPDM\Package\Shortcodes::singlePackage()
– WPDM\Package\Package / PackageController::fetchTemplate()
– PackageController::metaData()
– wpdm_sanitize_var()
– WPDM\__\__::sanitize_var()
– WPDM\__\__::sanitize_array()
– WPDM\__\__::sanitize_var() again, this time with $sanitize = ‘array’This happens while rendering pages with WPDM shortcodes. In our test, a single page with 6 download packages already triggered many repeated occurrences.
We are seeing the same issue in two separate projects. We use a monitoring system that still captures these warnings despite the “@” operator, so the logs for both projects are being flooded. Because even a page with only 6 downloads already produces many repeated warnings, this becomes a real operational problem in monitoring and log volume.
So it looks like “array” is being used as a sanitize/validate value somewhere in the package metadata/template flow, but sanitize_var() has no case for “array”, and the default logic incorrectly treats unknown sanitize values as regex patterns.
This does not look like an isolated site-specific regex issue, but like a plugin-side fallback bug for unknown sanitize values.
Suggested fix:
– add an explicit case ‘array’, or
– do not treat unknown $sanitize values as regex patterns in the default branchFor example, the default branch could simply skip preg_match()/preg_replace() for unknown sanitize values.
Could you please confirm whether this is a known issue?
Best regards
Hi,
We are experiencing an issue where the download limit is not being enforced correctly.
We have a membership site using WP Download Manager where members should be limited to 50 downloads per 365 days.
Current configuration
WPDM → Settings → General → Download Limit
Annual membership Subscription: 50
Reset days: 365
Subscriber: 0
Guests: 0
Other roles are also set to 0.
Downloads are restricted to the role:
Annual membership Subscription
Subscribers cannot access the download pages.
Issue
A member account downloaded 200+ models within two days, despite the 50 download limit being set.
The downloads are visible in:
WPDM → Downloads → History
However, the download counter for the user did not increment correctly, and the system did not stop the downloads once the 50 limit should have been reached.
Additional context
Files are delivered via external Dropbox URLs
“Allow repeated download of already downloaded file” is currently enabled
“Count unique downloads only” is currently disabled
The user originally had the Annual membership Subscription role
Once the downloads were noticed, the account was manually changed to Subscriber, which correctly removed access to download pages
Expected behaviour
Once a user reaches 50 downloads, WPDM should prevent further downloads until the reset period.
Actual behaviour
The user was able to download over 200 files without being blocked.
Questions
Are download limits reliably enforced when using external file URLs (Dropbox)?
Are there any known issues where the download counter does not increment correctly?
Are there recommended settings for enforcing download limits in this scenario?
This limit is important for our membership model, so we need to ensure it is enforced consistently.
Any guidance would be appreciated.
Kind regards,
AnnaI have the plugin installed. It shows in the purchase history of my account. The area for front end category management exists. Categories are listed, but when I click edit on one of them or add new category, the whole screen is blurred out.
I also noticed the toggle for activating it says edit/delete – nothing about adding.
I want to restrict this functionality to admin and new role ‘library manager’, but need to at least fix admin access before trying to get it working for a new user role. I tried adding User Role Editor, but there are no settings for categories under the Downloads post type section.
there’s some modal div being put on top of the content: classes- “modal-backdrop fade wpdm-modal-backdrop in” that has the blur and a semi-transparent overlay, so I’m guessing there is some setting that is preventing me from seeing the controls for add/edit OR there’s some kind of AJAX issue? Would minifying js loading or any optimization of the page becausing this?

I am experimenting with adding a gallery plugin to my website to display videos that I have set up as downloads. When I go to add the files, I see “Download Manager” as an option, but when I click it says “Coming soon…” Is that a Pro feature, or is it just unavailable?
Alternatively, I have determined that I can get the videos to work using the master download link for a given package. Is there a way for me to bulk export my video packages and include the master download link in the resulting spreadsheet file? I’d be willing to purchase the Pro plan if I can, because then I could export all my video downloads and import them with the gallery plugin.
Thank you,
We are using the Gallery view template to display a mix of files and images. When we click on a file (PDF) and downloads and is seen in the stats. When we click an image it opens in a lightbox rather than downloads, and if we manually save the image via the browser it does not show in the stats.
We want the image to download, not open in lightbox – what can we do?
Topic: Guest User in Download Stats
Do you know what can be causing the user to display as “Guest” in our download stats? We use SSO so all of our users are registered and have assigned roles. It doesn’t make sense that we would have any downloads from a user who isn’t named because we actually don’t even have any true “guest” users.
Hi,
We are using your plugin together with WPML. We are using the following shortcode: [wpdm_packages template="individual_download" order_by="post_title" order="asc" paging="asc" items_per_page="10" async=0 cols=3 paging=1 colsphone=1 colspad=1]However, this is showing all of the different packages on all of the languages. So, https://www.heskins.com/all-downloads/? is the same as https://www.heskins.fr/tous-les-t%C3%A9l%C3%A9chargements/
How do we have the English downloads on the UK site and French downloads on the French site?
Hi team,
I just installed Google Tags for WPDM to track download events, but I’m unable to get it working and would appreciate some guidance.
**Use Case:**
We have real estate property pages with downloadable documents and I want to track when visitors download these documents and ultimately see which properties get the most engagement.**What I’ve Attempted:**
1. Installed and activated the addon through WordPress
2. Configured GTM with:
– Custom Event trigger named “WPDM.newDownload”
– GA4 Event tag set to fire on the above trigger
3. Used GTM Preview Mode to test
4. Downloaded files from property pages**Current Issue:**
When I test downloads using GTM Preview Mode, the WPDM.newDownload event is not being pushed to the dataLayer. No custom events from WPDM appear at all!**What I Need:**
1. Step-by-step implementation instructions for the addon
2. Are there settings I need to configure in WordPress after activation?
3. Is there documentation available that I might have missed?
4. How can I confirm the addon is properly integrated and sending events?
5. Are there any known compatibility issues or requirements?I’m happy to provide additional information about my setup if needed. Any help getting this working would be greatly appreciated!
Thank you,
Andre