jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.x - (This is the current version!) => General => Topic started by: IngoLammers on 17.09.2026 10:44:04

Title: Download counter
Post by: IngoLammers on 17.09.2026 10:44:04
It's also still the case that all downloads from the same IP address are counted, even though the settings are configured to only count one download per 60-minute period. This is obviously being used manipulatively to artificially inflate the download numbers. This problem has existed for years...
Title: Re: Download counter
Post by: ColinM on 17.09.2026 12:33:08
Hi
Think this is a bug
Colin
Title: Re: Download counter
Post by: IngoLammers on 25.10.2026 14:47:32
Problem also resolved. The issue lies within this file. The time query should be handled using UTC time; otherwise, the setting will not take effect.

httpdocs/components/com_jdownloads/src/Helper/JDHelper.php
Search for this line within the function in the editor.
$query->where('log_datetime <= NOW() AND log_datetime >= (NOW() - INTERVAL '.$duration.' MINUTE)');
Replace them with:
$query->where('log_datetime <= UTC_TIMESTAMP() AND log_datetime >= (UTC_TIMESTAMP() - INTERVAL '.$duration.' MINUTE)');
Title: Re: Download counter
Post by: Arno on 05.11.2026 11:11:33
Hi Ingo,
thank you for investigating this and sharing your solution. The UTC adjustment looks plausible, and I have noted it for verification and inclusion in a future maintenance release.

Version 4.1.8 is already frozen and focuses on security fixes, so this change will not be included in that release.

The release of version 4.1.8 is scheduled for tomorrow.

Best regards
Arno

Title: Re: jD 4.1.8 Release
Post by: ColinM on 07.11.2026 18:30:21
It seems that some more Security items have been identified.  So in consequence version 4.1.8 is delayed - it is estimated to be cleared for release by Wednesday 11th or Thursday 12th.
ColinM