Cronjob triggers Smart Search plugin to index the content:
/usr/local/bin/php /home/[USER]/domains/[DOMAIN]/public_html/cli/finder_indexer.php --purge
All batches processed without any errors
We see these warnings (in the cron e-mail we receive):
Warning: Use of undefined constant JPATH_COMPONENT - assumed 'JPATH_COMPONENT' (this will throw an Error in a future version of PHP) in /home/[USER]/domains/[DOMAIN]/public_html/administrator/components/com_fields/models/group.php on line 74
Joomla! 3.9.5
MariaDB 5.5.63
PHP 7.2.16
Apache/2
Labels |
Added:
?
|
Labels |
Added:
J3 Issue
|
Status | New | ⇒ | Information Required |
This is unrelated to smart search and rather an issue in the fields group model.
I think that the CLI doesn't provide a component context so JPATH_COMPONENT isn't set while indexing.
But yes the problem seams to be in com_fields that tries to find out which component is active using this constant.
@laoneo Can we remove this check because we only add a table search path here.
Why not adding an additional
define('JPATH_COMPONENT', JPATH_COMPONENT_ADMINISTRATOR);
inside cli script.
I think that the CLI doesn't provide a component context
But finder_indexer.php
does:
define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_ADMINISTRATOR . '/components/com_finder');
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-04-17 17:25:02 |
Closed_By | ⇒ | Quy |
Closed_By | Quy | ⇒ | joomla-cms-bot |
Please test PR #24630.
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/24607
@HLeithner can you please comment?