Erreur module recherche [Réglé]
Erreur fatale dans module recherche
Support des Modules
papy260_0 Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre papy260_0
- Inscrit le : 07/06/2008
- Site internet
Bonjour,Lorsque je fais une recherche, j'obtiens ce message :
Citation :
Erreur fatale : invalid while request
(SELECT
9 AS id_search,
a.id AS id_content,
a.title AS title,
( 2 * MATCH(a.title) AGAINST('téléchargement') + MATCH(a.contents) AGAINST('téléchargement') ) / 3 * 1 AS relevance, CONCAT(CONCAT(CONCAT('../articles/articles.php?id=',a.id),'&cat='),a.idcat) AS link
FROM phpboost_articles a
LEFT JOIN phpboost_articles_cats ac ON ac.id = a.idcat
WHERE
a.visible = 1 AND ((ac.aprob = 1 AND ac.auth LIKE '%s:3:"r-1";i:1;%') OR a.idcat = 0)
AND (MATCH(a.title) AGAINST('téléchargement') OR MATCH(a.contents) AGAINST('téléchargement'))
ORDER BY relevance DESC LIMIT 0, 10) UNION (SELECT 10 AS `id_search`,
q.id AS `id_content`,
q.word AS `title`,
( MATCH(q.description) AGAINST('téléchargement') + MATCH(q.word) AGAINST('téléchargement') ) / 2 * 1 AS `relevance`,
CONCAT('../dictionary/dictionary.php?l=',q.word) AS `link`
FROM phpboost_dictionary q
WHERE ( MATCH(q.word) AGAINST('téléchargement')
OR MATCH(q.description) AGAINST('téléchargement') )) UNION (SELECT 11 AS id_search,
d.id AS id_content,
d.title AS title,
( 3 * MATCH(d.title) AGAINST('téléchargement') + 2 * MATCH(d.short_contents) AGAINST('téléchargement') + MATCH(d.contents) AGAINST('téléchargement') ) / 6 * 1 AS relevance, CONCAT('../download/download.php?id=',d.id) AS link
FROM phpboost_download d
WHERE ( MATCH(d.title) AGAINST('téléchargement') OR MATCH(d.short_contents) AGAINST('téléchargement') OR MATCH(d.contents) AGAINST('téléchargement') ) AND d.idcat IN (1,2) ORDER BY relevance DESC LIMIT 0, 100) UNION (SELECT 12 AS `id_search`,
msg.id AS `id_content`,
t.title AS `title`,
MATCH(t.title) AGAINST('téléchargement') * 1 AS `relevance`,
CONCAT(CONCAT(CONCAT(CONCAT('..','/forum/topic.php?id='),t.id),'#m'),msg.id) AS `link`
FROM phpboost_forum_msg msg
JOIN phpboost_forum_topics t ON t.id = msg.idtopic
JOIN phpboost_forum_cats c ON c.level != 0 AND c.aprob = 1 AND c.id = t.idcat
WHERE MATCH(t.title) AGAINST('téléchargement')
GROUP BY t.id
ORDER BY relevance DESC LIMIT 0, 50) UNION (SELECT 13 AS id_search,
f.id AS id_content,
f.name AS title,
( 2 * MATCH(f.name) AGAINST('téléchargement') + MATCH(f.contents) AGAINST('téléchargement') ) / 3 * 1 AS relevance, CONCAT(CONCAT(CONCAT('../media/media.php?id=',f.id),'&cat='),f.idcat) AS link
FROM phpboost_media f
WHERE ( MATCH(f.name) AGAINST('téléchargement') OR MATCH(f.contents) AGAINST('téléchargement') ) ORDER BY relevance DESC LIMIT 0, 100) UNION (SELECT 14 AS id_search,
n.id AS id_content,
n.title AS title,
( 2 * MATCH(n.title) AGAINST('téléchargement') + (MATCH(n.contents) AGAINST('téléchargement') + MATCH(n.extend_contents) AGAINST('téléchargement')) / 2 ) / 3 * 1 AS relevance, CONCAT('../news/news.php?id=',n.id) AS link
FROM phpboost_news n
WHERE ( MATCH(n.title) AGAINST('téléchargement') OR MATCH(n.contents) AGAINST('téléchargement') OR MATCH(n.extend_contents) AGAINST('téléchargement') )
AND visible = 1 AND ('1285060405' > start AND ( end = 0 OR '1285060405' < end ) )
ORDER BY relevance DESC LIMIT 0, 100) UNION (SELECT 16 AS `id_search`,
q.id AS `id_content`,
q.title AS `title`,
1 AS `relevance`,
CONCAT('../smallads/smallads.php?id=',q.id) AS `link`
FROM phpboost_smallads q WHERE ((q.title LIKE '%téléchargement%')
OR (q.contents LIKE '%téléchargement%')))
Illegal mix of collations for operation 'UNION'
Ligne 338 : search.class.php
(SELECT
9 AS id_search,
a.id AS id_content,
a.title AS title,
( 2 * MATCH(a.title) AGAINST('téléchargement') + MATCH(a.contents) AGAINST('téléchargement') ) / 3 * 1 AS relevance, CONCAT(CONCAT(CONCAT('../articles/articles.php?id=',a.id),'&cat='),a.idcat) AS link
FROM phpboost_articles a
LEFT JOIN phpboost_articles_cats ac ON ac.id = a.idcat
WHERE
a.visible = 1 AND ((ac.aprob = 1 AND ac.auth LIKE '%s:3:"r-1";i:1;%') OR a.idcat = 0)
AND (MATCH(a.title) AGAINST('téléchargement') OR MATCH(a.contents) AGAINST('téléchargement'))
ORDER BY relevance DESC LIMIT 0, 10) UNION (SELECT 10 AS `id_search`,
q.id AS `id_content`,
q.word AS `title`,
( MATCH(q.description) AGAINST('téléchargement') + MATCH(q.word) AGAINST('téléchargement') ) / 2 * 1 AS `relevance`,
CONCAT('../dictionary/dictionary.php?l=',q.word) AS `link`
FROM phpboost_dictionary q
WHERE ( MATCH(q.word) AGAINST('téléchargement')
OR MATCH(q.description) AGAINST('téléchargement') )) UNION (SELECT 11 AS id_search,
d.id AS id_content,
d.title AS title,
( 3 * MATCH(d.title) AGAINST('téléchargement') + 2 * MATCH(d.short_contents) AGAINST('téléchargement') + MATCH(d.contents) AGAINST('téléchargement') ) / 6 * 1 AS relevance, CONCAT('../download/download.php?id=',d.id) AS link
FROM phpboost_download d
WHERE ( MATCH(d.title) AGAINST('téléchargement') OR MATCH(d.short_contents) AGAINST('téléchargement') OR MATCH(d.contents) AGAINST('téléchargement') ) AND d.idcat IN (1,2) ORDER BY relevance DESC LIMIT 0, 100) UNION (SELECT 12 AS `id_search`,
msg.id AS `id_content`,
t.title AS `title`,
MATCH(t.title) AGAINST('téléchargement') * 1 AS `relevance`,
CONCAT(CONCAT(CONCAT(CONCAT('..','/forum/topic.php?id='),t.id),'#m'),msg.id) AS `link`
FROM phpboost_forum_msg msg
JOIN phpboost_forum_topics t ON t.id = msg.idtopic
JOIN phpboost_forum_cats c ON c.level != 0 AND c.aprob = 1 AND c.id = t.idcat
WHERE MATCH(t.title) AGAINST('téléchargement')
GROUP BY t.id
ORDER BY relevance DESC LIMIT 0, 50) UNION (SELECT 13 AS id_search,
f.id AS id_content,
f.name AS title,
( 2 * MATCH(f.name) AGAINST('téléchargement') + MATCH(f.contents) AGAINST('téléchargement') ) / 3 * 1 AS relevance, CONCAT(CONCAT(CONCAT('../media/media.php?id=',f.id),'&cat='),f.idcat) AS link
FROM phpboost_media f
WHERE ( MATCH(f.name) AGAINST('téléchargement') OR MATCH(f.contents) AGAINST('téléchargement') ) ORDER BY relevance DESC LIMIT 0, 100) UNION (SELECT 14 AS id_search,
n.id AS id_content,
n.title AS title,
( 2 * MATCH(n.title) AGAINST('téléchargement') + (MATCH(n.contents) AGAINST('téléchargement') + MATCH(n.extend_contents) AGAINST('téléchargement')) / 2 ) / 3 * 1 AS relevance, CONCAT('../news/news.php?id=',n.id) AS link
FROM phpboost_news n
WHERE ( MATCH(n.title) AGAINST('téléchargement') OR MATCH(n.contents) AGAINST('téléchargement') OR MATCH(n.extend_contents) AGAINST('téléchargement') )
AND visible = 1 AND ('1285060405' > start AND ( end = 0 OR '1285060405' < end ) )
ORDER BY relevance DESC LIMIT 0, 100) UNION (SELECT 16 AS `id_search`,
q.id AS `id_content`,
q.title AS `title`,
1 AS `relevance`,
CONCAT('../smallads/smallads.php?id=',q.id) AS `link`
FROM phpboost_smallads q WHERE ((q.title LIKE '%téléchargement%')
OR (q.contents LIKE '%téléchargement%')))
Illegal mix of collations for operation 'UNION'
Ligne 338 : search.class.php
Ce bug a peut être déjà été signalé mais je n'ai rien vu.
Ce message apparait à chaque fois que je tape un mot dans le cartouche de recherche de mon site
Édité par papy260_0 Le 21/09/2010 à 12h05
"Rien ne me fascine plus que le travail. Je peux rester assis à le contempler pendant des heures !" (Jérome K. Jérome)
horn Membre non connecté
-
Modérateur
- Voir le profil du membre horn
- Inscrit le : 31/12/2007
- Site internet
- Groupes :
-
Equipe Historique
J'ai déplacé le sujet dans le forum du module de recherche.
Ce problème que tu évoques n'est pas vraiment un bug, c'est plutôt un problème de configuration de ta base de données.
Il est connu et la solution se trouve ici : http://www.phpboost.com/forum/topic-7006+bug-du-module-search.php
Voilà, j'espère ça t'aidera
Soyez polis, pas de langage SMS et soignez votre orthographe, merci.
papy260_0 Membre non connecté
Booster Fuzil
-
Booster Fuzil
- Voir le profil du membre papy260_0
- Inscrit le : 07/06/2008
- Site internet
Bonjour,Bien sûr pour le sujet je m'étais un peu trompé....
Et ensuite merci.
La table smallads des petites annonces était différente des autres. J'ai tout modifié via phpMyAdmin et çà roule.
Je classe mon post en réglé
A plus et encore merci pour l'aide rapide.
"Rien ne me fascine plus que le travail. Je peux rester assis à le contempler pendant des heures !" (Jérome K. Jérome)
bes138 Membre non connecté
Booster Fronde
-
Booster Fronde
- Voir le profil du membre bes138
- Inscrit le : 07/06/2012
- Site internet
- Groupes :
bes138 Membre non connecté
Booster Fronde
-
Booster Fronde
- Voir le profil du membre bes138
- Inscrit le : 07/06/2012
- Site internet
- Groupes :
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie