Tuesday, 05 March 2024
  4 Replies
  720 Visits
1
Votes
Undo
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?
joomhoo set the post as Normal priority — 1 year ago
joomhoo set the type of the post as  Technical — 1 year ago
1 year ago
·
#234313
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

1 year ago
·
#234321
0
Votes
Undo
Hi,

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

Hope you can help.
1 year ago
·
#234338
0
Votes
Undo
Hi,

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

cli-jevents-finder-02.png
1 year ago
·
#234341
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

joomhoo marked this post as Resolved — 1 year ago
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.