jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => General => Topic started by: Bucari on 13.06.2025 12:23:29

Title: joomla.php finder:index error when enabling smart search plugins
Post by: Bucari on 13.06.2025 12:23:29
Hi, i have a Joomla 5.2.6  installation with jDownloads Version 4.0.47.
Since i need to run every night a cron job to start a reindex using "php joomla.php finder:index" cli command, this cron job fails if i enable Smart Search - jDownloads and Smart Search - jDownloads Categories plugins.

The error is Call to a member function authorise() on null in CategoriesHelper.php line 214

How can i fix that?
Title: Smart Search
Post by: ColinM on 13.06.2025 15:41:40
Hi
With Smart Search you do not need to re-index as it automatically adds items to the index when they are created. This one of the features of Smart Search in Joomla 5.

I do not know why your cronjob fails but maybe Smart Search cannot be started that way!!
However I did find a reference that implies it can run as a Cron Job
https://forum.joomla.org/viewtopic.php?t=1012807
https://forum.joomla.org/viewtopic.php?t=1012807#p3733316
Colin
Title: Re: joomla.php finder:index error when enabling smart search plugins
Post by: Bucari on 13.06.2025 17:41:34
I know that, but i need to reindex manually because i insert/update contacts informations directly in the db with a sql script, so the need to run the cron job.
It works, there is the error only jdownloads plugins are enabled.