Hello!
I had activated the "Compact Files layout with Checkboxes 3.9" plugin to allow downloading multiple files at the same time. In this version 4.1.3, the "Select all files" button appears but doesn't select any files. How do I get it working again?
Thanks
Hi,
I reproduced your result so I tried 'ticking' each individual box (select-all-files01.png). After clicking on the Continue button it listed the set of files in a Summary View as expected (select-all-files02.png). Next pressed the Download Button. This gave a 404 error 'Requested page cannot be found' (select-all-files03.png).
Joomla 6.1
jD 4.1.3 Stable
ColinM
Hi, thank you for testing!
In my case I am running Joomla 5.4.5 + jD 4.1.3. The checkbox "Select all files" was not working (neither select-all nor individual checkboxes were functional), but after applying the JavaScript workaround described below, both selecting files and downloading (including the ZIP package) work correctly — no 404 error.
So it seems there are actually two separate bugs:
1. Checkbox bug (Joomla 5 + PHP 8.x) — onclick attributes on both the toggle and individual checkboxes are malformed in the generated HTML (value onclick= instead of two separate attributes), so the handlers never fire and boxchecked stays empty.
2. 404 on Download — which you reproduced on Joomla 6.1 but I cannot reproduce on Joomla 5.4.5.
Workaround for bug #1 (add to the "User After layout" field of the active checkbox Files layout):
html
<script>
document.addEventListener('DOMContentLoaded', function () {
window.istChecked = function(isChecked, catid) {
var boxchecked = document.querySelector('input[name="boxchecked"]');
if (!boxchecked) return;
if (isChecked) {
boxchecked.value = 1;
} else {
var anyChecked = document.querySelectorAll(
'input[name="cb_arr[]"]:checked'
).length > 0;
boxchecked.value = anyChecked ? 1 : 0;
}
};
window.checkAlle = function() {
var toggle = document.querySelector('input[name="toggle"]');
if (!toggle) return;
var isChecked = toggle.checked;
document.querySelectorAll('input[name="cb_arr[]"]').forEach(function(cb) {
cb.checked = isChecked;
});
var boxchecked = document.querySelector('input[name="boxchecked"]');
if (boxchecked) boxchecked.value = isChecked ? 1 : 0;
};
document.querySelectorAll('input[name="toggle"]').forEach(function(t) {
t.addEventListener('change', checkAlle);
});
document.querySelectorAll('input[name="cb_arr[]"]').forEach(function(cb) {
cb.addEventListener('change', function() {
istChecked(this.checked, 160);
});
});
});
</script>
Lina
Clearly there is some missing code.
In my opinion the code you have defined should be included within jD itself, not in the Use After Layout section of the "Compact Files Layout with Checkboxes v3.9". There maybe other cases in other layouts so I will look at these.
Best wishes
ColinM
Lina
This is also a 'challenge' with layout "Standard Files Layout with Checkboxes" as expected. So any correction code really does need to be in jD itself
ColinM
Thank you ColinM for investigating this further and confirming the root cause. I'm glad the workaround helped identify the issue. Looking forward to the fix in a future version!
Best regards,
Lina
Have also tried with layout Standard Files Layout with Checkboxes v3.9
It has the same problem.
ColinM
Thank you
Lina
Hi Lina,
thank you for reporting this and for the helpful workaround.
We were able to reproduce the problem and found two issues in the legacy checkbox download flow. Both have now been fixed for the upcoming 4.1.4 version.
I will send you a PM with a 4.1.4 test package so you can check whether both the Select all function and the download link now work correctly in your setup.
Arno
Hi Lina,
Unfortunately, the bug hasn't been fully fixed yet. Sorry about that. So you don't need to test the version I sent you. I'll send you a new one today.
Thank you, Arno
Best regards,
Lina
Hi Arno,
I cannot see any attachment or download link for version 4.1.4 in the message.
Could you please send the package or the download link?
Thanks.
Hi Lina,
I sent you that version as an attachment to a private message. Not here in this thread.
But I've already released that version in the meantime, so you can install it in the usual way. ;)
Hi Arno,
I've already tried the new version and I don't think it's working without using the code in Use After Layout. The "Select all files" button doesn't select any files.
Quote from: LinaG on 15.05.2026 18:48:55Hi Arno,
I've already tried the new version and I don't think it's working without using the code in Use After Layout. The "Select all files" button doesn't select any files.
Either you don't have the latest version installed, or you should clear your browser cache and try again.
You're also welcome to see it working successfully for yourself on
the demo installation. See pics.
Hi Arno,
Thank you for the screenshot. I notice in your demo the layout looks different from mine.
I tested all three checkbox layouts available in jDownloads 4.1.4:
Compact Files Layout with Checkboxes v3.9
Standard Files Layout with Checkboxes v3.9
Standard Bootstrap 5 Files Layout - Minimal Compact with Checkboxes v4.1
In all three cases, the "Select all files" button appears at the top of the list (not the bottom as in your demo), and clicking it does not select any files — it only changes its own appearance.
Could you please verify if the fix in 4.1.4 covers these layouts as well?
I also checked my Content-Security-Policy headers and they only contain frame-ancestors 'self' — so CSP is not blocking inline JavaScript in my case.
Environment: Joomla 6.1.0 + PHP 8.5 + jDownloads 4.1.4.
Thank you!
Lina
Hi
I am still having the same problem as LinaG. I have cleared my browser cache.
ColinM
Hm.. strange.
I'll try to reproduce the error.
The Select all files tick box is not working. Have tried with layouts:
Compact Files Layout with Checkboxes v3.9
Standard Files Layout with Checkboxes v3.9
Standard Bootstrap 5 Files Layout - Minimal Compact with Checkboxes v4.1
Using Joomla 6.1.0 and jDownloads 4.1.4 Stable (15-05-2026)
Aware that it does work on the Test Site
ColinM
Hi,
The fact that it works on jd40 suggests that it's running on a 'clean' installation without any legacy issues or overrides, and that the checkbox logic is therefore working as expected.
Please check that you have also enabled the correct category layout. That is where the main checkbox is displayed. See screenshot.
To quickly narrow down affected installations, please check these point:
- Check in the browser DevTools which JavaScript file is actually being loaded (including path and modification time/cache status).
you can post the results of these point here (include a short screenshot from DevTools). We can then pinpoint exactly where your installation differs.
Hi,
I performed the requested checks.
Environment
Joomla 6.1.2
jDownloads 4.1.4
PHP 8.5.2 (PHP-FPM)
Apache
Originally I was using the Compact Files Layout with Checkboxes 3.9.
To rule out a layout-specific issue, I changed the category to use the Standard Bootstrap 5 Files Layout – Minimal Compact with Checkboxes v4.1.
The result is exactly the same with both layouts:
The "Select all files" checkbox is displayed.
The individual file checkboxes are displayed.
Clicking "Select all files" does not select any file.
Calling checkAlle(2,19) manually from the browser console also does not select any checkboxes and produces no JavaScript error.
I also verified in the browser DevTools that:
typeof checkAlle returns "function".
typeof istChecked returns "function".
The form down19 exists (document.forms.down19).
The file checkboxes (cb_arr[]) are present.
The checkAlle() function is loaded from:
/components/com_jdownloads/assets/js/jdownloads.js
I have attached a DevTools screenshot showing that the checkAlle() function is loaded from /components/com_jdownloads/assets/js/jdownloads.js.
As a temporary workaround, I added my own JavaScript in the Use After Layout field using addEventListener(). With this workaround, both "Select all files" and the individual checkboxes work correctly, and the ZIP download also works correctly.
So the behaviour appears to be independent of the layout, as I can reproduce it with both the legacy checkbox layout and the Bootstrap 5 checkbox layout.
Thank you.
Lina
Hi Lina,
thanks again for your feedback.
We have prepared a test fix for the "Select all / Mark all" issue.
The fix now supports both layout variants (older and newer structure), so it should work even if layout positions differ.
Could you please test this build in:
1. Category view
2. My Downloads view
Expected result:
1. "Mark all" selects all file checkboxes
2. Clicking again unselects all
3. No JavaScript errors in browser console
If possible, please test once with your current setup and once without jDownloads template overrides, then let us know both results.
Please note that this release is an unofficial pre-release version.
Thanks a lot for helping us verify this quickly.
Hi Arno,
I tested the new 4.1.6 pre-release in my local environment:
- Joomla 6.1.2
- PHP 8.5.5 (PHP-FPM)
- Apache 2.4.66
Category viewI tested both:
- Compact Files Layout with Checkboxes v3.9
- Standard Bootstrap 5 Files Layout – Minimal Compact with Checkboxes v4.1
In both layouts the fix works correctly:
- "Select all" selects all file checkboxes.
- Clicking again unselects all.
- Individual checkboxes work correctly.
- No JavaScript errors appear in the browser console.
My Downloads viewI also created menu items for List my Downloads and List All Downloads.
Both views display the download list correctly, but they do not display a "Select all files" checkbox, nor do they provide a menu option to select a checkbox layout. Therefore I could not test the new "Select all" functionality in those views.
I also confirmed that my Joomla installation does not contain any jDownloads template overrides.
Best regards,
Lina
Hi Lina,
thank you for your findings.
That means your problem is finally sorted.
There shouldn't be any tick boxes in the 'My Downloads' view at all, as they're unnecessary there. ;)