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

La sauvegarde de recherches "casse" Leed #1

Open
kvnco opened this issue Aug 30, 2021 · 0 comments
Open

La sauvegarde de recherches "casse" Leed #1

kvnco opened this issue Aug 30, 2021 · 0 comments

Comments

@kvnco
Copy link
Contributor

kvnco commented Aug 30, 2021

Vu avec Leed 1.9, sur Debian 10.10, NGINX, MariaDB

Après avoir utilisé la sauvegarde de recherche, le chargement de la page se bloque après l'affichage du menu contenant les flux.

Les logs serveur affichent l'erreur suivante :

[error] 5729#5729: 34548 FastCGI sent in stderr: "PHP message: Leed error: Can't find FULLTEXT index matching the column listPHP message: Leed query: SELECT COUNT()
FROM leed_event
WHERE MATCH(title) AGAINST("+toto" IN BOOLEAN MODE) AND unread=1PHP message: PHP Fatal error: Uncaught Error: Call to a member function fetch_row() on bool in /var/www/leed/plugins/search/classes/leedsearch.php:109
Stack trace:
#0 /var/www/leed/plugins/search/classes/leedsearch.php(116): LeedSearch->getSearchCount('+toto')
#1 [internal function]: LeedSearch->formatSearch(Array)
#2 /var/www/leed/plugins/search/classes/leedsearch.php(29): array_map(Array, Array)
#3 /var/www/leed/plugins/search/search.plugin.php(29): LeedSearch->getSearchNames()
#4 /var/www/leed/Plugin.class.php(312): search_plugin_menuForm(Object(User))
#5 /var/www/leed/cache/tmp/settings.22cbc366a97a7f8a434511ca3bbd2a81.rtpl.php(31): Plugin::callHook('setting_post_li...', Array)
#6 /var/www/leed/RainTPL.php(175): include('/var/www/leed/...')
#7 /var/www/leed/footer.php(4): RainTPL->draw('settings')
#8 /var/www/leed/settings.php(58): require_once('/var/www/leed/...')
#9 {main}
thrown in /var/www/leed/plugins/search/classes/leedsearch.php on line 109" while reading upstream, client: 0.0.0.0, server: xxx.com, request: "GET /leed/settings.php?plugin_search=app HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock:", host: "xxx.com"

Il semble qu'un index soit nécessaire.
J'ai corrigé en ajoutant l'index nécessaire avec la requête suivante :
ALTER TABLE leed_event ADD FULLTEXT(title);

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

1 participant