User tests: Successful: Unsuccessful:
The class: administrator/components/com_finder/src/Indexer/Adapter.php
is extended by the finder plugins.
It contains the function: getListQuery
which in most cases is overwritten by the finder plugins.
Though if it is not overwritten, an exception is thrown, since it executes an empty query, which in turn generates an sql error.
In that case the Indexer's index will never finish.
Do note that this function is not abstract, hence should work even if it is not declared in the plugins.
Also the finder plugins do not necessarily return items (e.g. onFinderIndexAfterPurge event).
Remove the function: getListQuery
from the file: plugins/finder/content/content.php
Then go to com_finder and press the "Index" btn
Index to finish
Will never finish
No
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_finder |
Title |
|
Labels |
Added:
?
|
If you are not implementing getListQuery(), then you have to override getItems() and getItem(). Simply returning an empty array here will not be the solution.
Your argument is sensible. Though:
I have tested this item
I tested the patch with a negative result. The only difference is that now I can see a progress bar that never ends.
I have tested this item
it gave me this result:
undefined
syntax error, unexpected '{', expecting function (T_FUNCTION) or const (T_CONST)
@ggenovino This is a syntax error, which does not come from the patch.
Please check if you accidentally removed a bracket (}), trying to remove the getListQuery
function
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-06-15 17:23:38 |
Closed_By | ⇒ | sakiss |
If you are not implementing getListQuery(), then you have to override getItems() and getItem(). Simply returning an empty array here will not be the solution.