No downloads found!

in Download Manager Free

Viewing 23 posts - 1 through 23 (of 23 total)
Mar 2, 2026 at 5:27 pm
#212454
Participant
Craig B
OP

Hi,

We’ve been using Download Manager for about a year without issues, but in the last month or so (possibly after an update) none of our downloads are showing. Whether we use the shortcode or the Gutenberg block, and no matter what theme we use, we only get the downloads showing on the first page load. If we try to search or go to another page it will always return “No downloads found!”.If we clear WordPress’s cache it’ll show again but only the page you request. For example if you load the page for the first time after the cache clear with ?skw=issue&orderby=date&order=desc in the URL it’ll show downloads with issue in the name – if we then remove this from the URL we get “No downloads found!”.

It looks like it’s caching the first load and then only returning that – if any parameters are given it simply returns none. I’ve tried disabling the WordPress cache, disabling any other plugins, changing the theme, disabling and enabling the plugin but no luck. Any advice please? We’re using WP 6.9.1 and Download Manager 3.3.51.

Mar 2, 2026 at 5:32 pm
#212455
Moderator
Nayeem Riddhi
Staff

Hello Craig B,

Hope you are well. And sorry for the inconvenience. Please kindly share the related URLs. If possible, can you please, give your temporary wp-admin login details in a private reply to check the issue?

Thank you and regards

Mar 2, 2026 at 5:36 pm
#212456
Participant
Craig B
OP
This reply has been marked as private.
Mar 3, 2026 at 5:00 am
#212461
Moderator
Nayeem Riddhi
Staff

Please kindly share the related URLs so we can check the issue in further detail. Please kindly check.

Thank you

Mar 3, 2026 at 8:02 am
#212486
Participant
Craig B
OP
This reply has been marked as private.
Mar 3, 2026 at 11:17 am
#212505
Moderator
Nayeem Riddhi
Staff

I can’t able to access editor page of your shared page, also not founding from backend pages or posts, can please let me know which shortcode you are using there? Please kindly check and let me know.

Thank you and regards

Mar 3, 2026 at 2:43 pm
#212511
Participant
Craig B
OP
This reply has been marked as private.
Mar 3, 2026 at 4:05 pm
#212513
Moderator
Nayeem Riddhi
Staff

It is working properly on our testing site here, https://free.wpdm.online/packages-block-check/, I think it may have a conflict between your plugins or theme. You can disable one by one other plugins for testing if there any conflicts. You may also switch theme to another for checking. If you permit me I can also check the process. Please kindly check.

Thank you

Mar 3, 2026 at 4:07 pm
#212514
Participant
Craig B
OP

I’ve actually already tried that. I went back to the built in theme and had the same results. Would it help if I gave you a ‘paid account’ on our live site so you can see it for yourself there?

Mar 3, 2026 at 4:14 pm
#212515
Moderator
Nayeem Riddhi
Staff

It will also work in staging site. No need to check in live site, can I check the process in staging site? Please kindly check.

Thank you

Mar 3, 2026 at 4:23 pm
#212518
Participant
Craig B
OP
This reply has been marked as private.
Mar 3, 2026 at 8:02 pm
#212526
Participant
Craig B
OP
This reply has been marked as private.
Mar 3, 2026 at 8:16 pm
#212527
Participant
Craig B
OP

Also this page is not showing any package for me https://free.wpdm.online/packages-block-check/

It just says “Packages Block Check”.

Mar 3, 2026 at 9:07 pm
#212528
Participant
Craig B
OP

I have a fix for anyone else with this issue! It seems to only happen if you have memache such as when hosting on WP.com. Here’s what I had to do:

Fix #1: Missing posts_per_page Parameter
File: download-manager.php
Add:

<?php
// Fix for missing posts_per_page parameter
add_filter('wpdm_packages_query_params', function($params) {
    if (!isset($params['posts_per_page'])) {
        $params['posts_per_page'] = 10;
    }
    return $params;
}, 999);

What it does: Ensures WP_Query always receives a posts_per_page parameter. When pagination/sorting is active, this parameter was missing for me, causing WP_Query to return incorrect results (I verified this with console logs).

Fix #2: WordPress.com Caching Bug with found_posts
File: __/Query.php inserted at line 415
Insert:

<?php
// Fix for WordPress.com caching issue: if found_posts is 0 but we have posts, recalculate
if ($this->result->found_posts == 0 && !empty($this->result->posts)) {
    // Run a separate count query to get accurate total
    $count_params = $this->params;
    unset($count_params['paged']);
    unset($count_params['posts_per_page']);
    $count_params['fields'] = 'ids';
    $count_params['posts_per_page'] = -1;
    $count_params['no_found_rows'] = true;
    $count_query = new \WP_Query($count_params);
    $this->count = $count_query->post_count;
} else {
    $this->count = $this->result->found_posts;
}

What it does: Detects when WordPress.com’s object cache incorrectly returns found_posts=0 despite WP_Query returning actual posts. Runs a separate count query to get the accurate total, preventing the “No downloads found!” message from displaying and ensuring pagination shows all pages correctly.

Mar 4, 2026 at 4:52 am
#212531
Moderator
Nayeem Riddhi
Staff

Has the problem been resolved with the above code for your site? Please kindly let me know.

Thank you and regards

Mar 4, 2026 at 9:19 am
#212533
Participant
Craig B
OP

Hi, yes it works. I believe anyone hosting on WordPress.com or who uses memcache will need this.

Mar 4, 2026 at 11:08 am
#212534
Moderator
Nayeem Riddhi
Staff

Glad to hear that. However, if you need further help with anything else, then please don’t hesitate to open a new topic.

Thank you again and regards

Mar 4, 2026 at 11:10 am
#212535
Participant
Craig B
OP

Will this be merged? Else the next update will wipe it.

Mar 4, 2026 at 1:41 pm
#212536
Moderator
Nayeem Riddhi
Staff

If the next update comes, the adjustments will be removed. You adjusted it in the download manager plugin. However, can you share information on whether WordPress.com or users of Memcached are facing the issue for which you made a patch, the issue, and the adjustments that resolve it in two environments? Thus I can forward it to our developers. Please kindly check`.

Thank you

Mar 4, 2026 at 1:42 pm
#212537
Participant
Craig B
OP

Hi,

Yes I believe they’ll have the same issue as we had.

Mar 4, 2026 at 1:44 pm
#212538
Moderator
Nayeem Riddhi
Staff

Please kindly share the issue whole in detail and the adjustments need, thus I can forward it to our developers.

Thank you

Mar 4, 2026 at 1:45 pm
#212539
Participant
Craig B
OP

Hi,

I have in my previous post at Mar 3, 2026 at 9:07 pm 🙂

Mar 4, 2026 at 3:29 pm
#212545
Moderator
Nayeem Riddhi
Staff

Sorry for the inconvenience. We are checking the issue. I have already forwarded it to our related team authority regarding the issue. Please kindly check and let me know if you have any more queries.

Thank you and kind regards

Viewing 23 posts - 1 through 23 (of 23 total)

You must be logged in to reply to this topic.