jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: ghicar on 26.10.2025 10:33:02

Title: Null pointer exception when attempting access a category that the user is not permissioned to see
Post by: ghicar on 26.10.2025 10:33:02
Joomla ver 5.4.0 and 5.3.4
jDownloads ver 4.0.47
PHP ver 8.3.26

If a non logged in user tries to access a category link, say for example after a browser update and reload of tabs, then you used to get redirected to login again. Now you get a PHP null pointer exception:

Call to a member function setAdditionalUrlParam() on null
~/components/com_jdownloads/src/View/Category/HtmlView.php (106)


Simple fix is to modify above HtmlView.php file line 106 from:

$pagination->setAdditionalUrlParam('catid', $app->getInput()->get('catid', [], 'int'));

to

if($pagination)$pagination->setAdditionalUrlParam('catid', $app->getInput()->get('catid', [], 'int'));
Title: Re: Null pointer exception when attempting access a category that the user is not permissioned to se
Post by: Arno on 26.10.2025 11:08:00
Hi,
thanks for the message and the fix.

We are currently revising the latest version to make it compatible with Joomla 6.
In the course of this I will also look at this.

(Fixed in next release)