By joomhoo on Tuesday, 05 March 2024
Replies 4
Likes 0
Views 860
Votes 0
Hi,

I have been using Joomla! 4's Smart Search CLI (finder:index) to automate search indexing in a cron/scheduled task, but I noticed that auto-indexing stopped working after installing JEvents.

I did some troubleshooting in the Terminal/CLI using "php cli/joomla.php finder:index --verbose", and the JEvents Smart Search plugin came up causing issues. I've included a screen grab to illustrate.
cli-jevents-finder.png


When I disable the 'JEvents - Smart Search' plugin (via: Joomla! admin > Extensions > Plugins), and then run "php cli/joomla.php finder:index --verbose" again, everything works as expected.

Please can you look at fixing the CLI integration for JEvents so tat it doesn't conflich with the Smart Search CLI?
in the jevmodulehelper.php script in your debug trace can you change the getVisibleModules function to read:


static public function getVisibleModules()
{
if (PHP_SAPI === "cli")
{
return array();
}
return self::load();

}



That should resolve the issue
·
Tuesday, 05 March 2024 14:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I made your suggested changes... this is the next error;
cli-jevents-finder-02.png


Hope you can help.
·
Wednesday, 06 March 2024 08:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I tried again but unfortunately now there's a different error. See image;

cli-jevents-finder-02.png
·
Monday, 11 March 2024 05:55
·
0 Likes
·
0 Votes
·
0 Comments
·
I ran this through a PHP debugger and have ironed out the other problems - the fixes will be in a new release today.

Thanks for highlighting the issue
·
Monday, 11 March 2024 10:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post