Forum PHPBoost
• Index
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
Edité par papy260_0 Le 21/09/10 à 12h05
Bonjour,
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
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
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.
bonjour j'ai le mém problème. j'ai vue que des membre donner leur login pour qu'un administrateur du site lui règle le problème c'est possible de faire pareille pour moi ?
personne pour m'aider svp ?
• Index
1 Utilisateur en ligne :: 0 Administrateur, 0 Modérateur, 0 Membre et 1 Visiteur
Utilisateur en ligne: Aucun membre connecté
Utilisateur en ligne: Aucun membre connecté
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie













Les partenaires
Le projet PHPBoost
Contribuer au Projet
Support PHPBoost