Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error by indexing pages #448

Closed
p-view opened this issue Dec 7, 2022 · 3 comments
Closed

error by indexing pages #448

p-view opened this issue Dec 7, 2022 · 3 comments

Comments

@p-view
Copy link

p-view commented Dec 7, 2022

become in typo3 11.5 ke_search 4.5.1:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: An exception occurred while executing 'SELECT pages.*, GROUP_CONCAT(CONCAT("#", tx_kesearch_filteroptions.tag, "#")) as tags FROM pages, tx_kesearch_filteroptions WHERE (pages.uid IN (565,1000195,1000196,1000197,1000198,1000199,1000201,1000202,1000203,1000204,1000205,1000206,1000207,1000208,1000209,1000210,1000211,1000212,1000229) AND pages.tx_kesearch_tags <> "" AND FIND_IN_SET(tx_kesearch_filteroptions.uid, pages.tx_kesearch_tags)) AND (((pages.deleted = 0) AND (tx_kesearch_filteroptions.deleted = 0)) AND ((pages.hidden = 0) AND (tx_kesearch_filteroptions.hidden = 0))) GROUP BY pages.uid': 'typo3_2022.pages.pid' isn't in GROUP BY

@christianbltr
Copy link
Collaborator

What database are you using and in which version?
Could you explain a bit more how to reproduce this issue?

@p-view
Copy link
Author

p-view commented Dec 12, 2022

i use MariaDB 10.1.48
the problem comes from indexerBase.php #250
$tagQuery = $queryBuilder
->add('select', $fields)
->from('pages')
->from('tx_kesearch_filteroptions')
->add('where', $where)
->groupBy('pages.uid')
->execute();

solutions by google keeps me this: "In mysql array, set strict => false to disable MySQL's strict mode"
But for me is not possible to configurate this.

christianbltr added a commit to tpwd/ke_search that referenced this issue Jan 13, 2023
@christianbltr
Copy link
Collaborator

This error only occurs when sql_mode ONLY_FULL_GROUP_BY is set.
This is now fixed in version 4.6.2.
Thanks for reporting.

Please use https://github.com/tpwd/ke_search/issues for reporting further issues because that's the official issue tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants