News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Recent posts

#31
General / Upload files to remote host
Last post by mpordel - 07.06.2026 07:15:34
Hello,

Does this component support connecting to a remote host (download host) via FTP, allowing me to upload, manage, and organize files directly on that remote host?

Thank you.
#32
Bugs! / 404 redirects do not work when...
Last post by ibrahim - 06.06.2026 17:53:08
Hello,

I found a few issues related to jDownloads that may be useful to review for a future release.

Wrong URLs show the homepage instead of 404

When jDownloads is set as the homepage, invalid URLs like:

/test-wrong-url-123456

show the jDownloads homepage instead of a 404 page.

Because of this, redirecting missing URLs to a custom 404 page also does not work correctly.

I fixed this in:

components/com_jdownloads/src/Helper/LegacyRouter.php

by adding this inside the switch:

default:
    return;

This leaves unknown URLs unparsed, so Joomla returns the normal 404 page.

Expired downloads could still be downloaded

My paid downloads should expire after 180 days. In some cases, expired items were still downloadable.

To protect against this, I created a custom Joomla system plugin:

System - Jdaupguard

Folder:

plugins/system/jdaupguard/

The plugin checks the download before the file is delivered. If the purchase is older than 180 days, it blocks the download and shows a message asking the user to purchase the item again.

I also adjusted my jDownloads download-history template so users can see the expiry date and whether the item is expired.

Download history could contain items without a matching payment record

I found download-history rows in:

#__jdownloads_logs

where the user appeared to have an active downloaded item, but there was no matching AlphaUserPoints payment record.

This could allow access without a valid payment.

I created an SQL audit to find these rows and removed only the invalid jDownloads history entries. No AlphaUserPoints transactions were deleted.

It would be useful if jDownloads could validate that a paid download has a matching payment or entitlement record before allowing access.

Low wallet balance should block the download before file delivery

In some cases, a user could try to download a paid item without enough wallet balance.

My System - Jdaupguard plugin now blocks this before the file is delivered and shows a recharge message with a link to my purchase plans page.

Could you please review these points and include the relevant fixes or hooks in a future release? This would prevent my custom changes from being overwritten during updates.

Best regards,
#33
Bugs! / List All Downloads Front page ...
Last post by ibrahim - 06.06.2026 17:49:30
Hello,

I noticed an issue with the jDownloads router on the front page.

When the main jDownloads page is used as the front page, the generated URL includes:

/all

For example:

https://example.com/all

I would prefer the front page to use only:

https://example.com/

The relevant file appears to be:

/components/com_jdownloads/src/Helper/LegacyRouter.php

A possible solution is to add the downloads or all segment only when there is no matching menu item.

In other words:

If a menu item exists for the downloads view:
- Use the menu item URL
- Do not add `/all`

If no menu item exists:
- Add the fallback segment

This would keep the front page URL clean while still allowing the router fallback to work when no menu item is available.

Could you please check whether this can be added in the official router logic?


Best regards,
#34
Bugs! / UserPoints wallet deduction is...
Last post by ibrahim - 06.06.2026 17:45:59
Hello,

I found an issue in jDownloads when UserPoints is enabled and the user wallet balance is exactly the same as the file price.

Example:

Wallet balance: 4.00
File price: 4.00
User tries to renew an expired download
The file may download, but the wallet deduction can fail or the user may incorrectly receive a not-enough-points message.

If I add 0.10 extra credit, the same download works correctly and leaves 0.10 in the wallet.

The relevant file is:

/components/com_jdownloads/src/Helper/JDHelper.php

The current comparisons use floating-point values directly, for example:

$sum_aup_points <= $profil->points

and:

$profile->points >= $price

Using rounded values fixes the issue:

round((float) $sum_aup_points, 2) <= round((float) $profil->points, 2)

and:

round((float) $profile->points, 2) >= round((float) $price, 2)

There is also another point worth checking. After calling:

\UserPointsHelper::newpoints(...)

the code returns true directly.

If UserPoints rejects the deduction, jDownloads may still allow the download without reducing the wallet balance.

It may be safer to verify that the deduction was successful before returning true.

I tested the rounded comparisons locally together with a small fix in UserPoints, and the exact-balance case worked correctly.

Best regards,
#35
Bugs! / Re: jDownloads module changes ...
Last post by Arno - 05.06.2026 16:24:35
OK. If you encounter any further issues, please post them in a new thread.
Thanks!
#36
Bugs! / Re: jDownloads module changes ...
Last post by NJK - 05.06.2026 16:07:20
Hi Arno,

Some more testing shows that the "other" error is only seen on one particular dev site. And it's only a 500 error when debugging is turned on. Our production sites, and the other dev sites are ok. So I think I'll give it a rest for now.

Thank you for the bug fix!

Regards,
Frode
#37
Bugs! / Re: jDownloads module changes ...
Last post by Arno - 05.06.2026 13:44:38
Hi Frode,
thank you very much for your prompt reply. As we are unable to reproduce the issue on our test systems, a more detailed description of the Error 500 module would be very helpful.
#38
Bugs! / Re: jDownloads module changes ...
Last post by NJK - 05.06.2026 13:29:09
Hi Arno,

Thank you for the quick reply.

I installed the build:
1. Color changes are gone!
2. Tested Latest and Top.
3. Joomla 5.4.6, PHP 8.3 and 8.5. Cassiopeia template.
4. No.

So this is fixed. But I do see some other bugs with the modules, giving an Error 500 in some cases. Do you want a new report for that?

Regards,
Frode
#39
Bugs! / Re: jDownloads module changes ...
Last post by Arno - 05.06.2026 10:32:00
Hi.
Thanks again for the detailed report and clear reproduction steps.

We have prepared a pre-release 4.1.5 build and sent it to you via PM. 
This build includes a fix aimed at the module-related style side effects reported in this thread.

Please install the pre-release 4.1.5 package and test on the same pages where you observed the issue (jDownloads module + non-jD module/article on the same page).

After testing, please report back with:
1. Whether the color/style changes in non-jD content are gone.
2. Which jDownloads modules you tested (Latest, Top, etc.).
3. Joomla version, PHP version, and active template.
4. Whether you still see any related visual side effects.

Your feedback will help us confirm the fix before final release.
#40
Bugs! / Re: jDownloads module changes ...
Last post by NJK - 04.06.2026 18:10:20
Hi,

Yes, of course. But I have set to be notified by the forum's mailsystem, so I don't have to check this page all the time. But that doesn't seem to be working right now.