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'));
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)