Echec de la recherche avec erreur sql
Quand on est logé, la recherche provoque une erreur sql en rapport avec le plugin fulltext. Si on refait la même recherche, il n'y a plus d'erreur affichée, mais il n'y a pas de résultat.
- url : https://contrib.spip.net/spip.php?page=recherche&recherche=plu1212 (changer la chaine cherchée à chaque fois)
- L'erreur : Erreur SQL 1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 15
SELECT t.id_article, t.surtitre, t.titre, t.soustitre, t.chapo, t.texte, t.ps, t.nom_site, t.url_site, t.descriptif, MATCH(t.`titre`) AGAINST ('plu1212*' IN BOOLEAN MODE) * 8 + MATCH(t.`surtitre`,t.`titre`,t.`soustitre`,t.`chapo`,t.`texte`,t.`ps`,t.`nom_site`,t.`url_site`,t.`descriptif`) AGAINST ('plu1212*' IN BOOLEAN MODE) * 1 + IF(SUM(o1.score) IS NULL,0,SUM(o1.score)) + IF(SUM(o2.s etc etc
- "squelette" :
/opt/nursit/sys/home/nursit/matrice/public/4.0/03/spip/plugins/plugins/fulltext/inc/recherche_to_array.php
- "boucle" :
inc_recherche_to_array_dist(){ sql_select(); }
- ligne : 339
Il semble que ça se produise pas quand on est pas logé.