lcollong
FabriKant d'applications web
Hi,
The Joomla search is set on a list named "compagnies" which contains a dbj element to a foreign table as multi-select checkbox "type of compagnies". The search setup is on several columns including this one.
It crashes with the following ( see the last part WHERE with an unclosed quoted separator) .
It can be tested on the "vif" site of mySites. Just type some search in the top right joomla search field.
It should be due to some recent change in Joomla or Fabrik because a previous "clone" of this site running J3.6.5 /F3.5.1 has the same setup without generating this error.
The Joomla search is set on a list named "compagnies" which contains a dbj element to a foreign table as multi-select checkbox "type of compagnies". The search setup is on several columns including this one.
It crashes with the following ( see the last part WHERE with an unclosed quoted separator) .
It can be tested on the "vif" site of mySites. Just type some search in the top right joomla search field.
It should be due to some recent change in Joomla or Fabrik because a previous "clone" of this site running J3.6.5 /F3.5.1 has the same setup without generating this error.
PHP:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(SELECT GROUP_CONCAT(lookup.nom_type_co SEPARATOR '//) AGAINST ('test*' IN BOOL' at line 44 SQL=SELECT SQL_CALC_FOUND_ROWS DISTINCT `f_compagnies_maritimes`.`date_crea` AS `f_compagnies_maritimes___date_crea`,
`f_compagnies_maritimes`.`date_crea` AS `f_compagnies_maritimes___date_crea_raw`,
`f_compagnies_maritimes`.`id` AS `f_compagnies_maritimes___id`,
`f_compagnies_maritimes`.`id` AS `f_compagnies_maritimes___id_raw`,
`f_compagnies_maritimes`.`nom_compagnie` AS `f_compagnies_maritimes___nom_compagnie`,
`f_compagnies_maritimes`.`nom_compagnie` AS `f_compagnies_maritimes___nom_compagnie_raw`,
`f_compagnies_maritimes`.`time_frame` AS `f_compagnies_maritimes___time_frame`,
`f_compagnies_maritimes`.`time_frame` AS `f_compagnies_maritimes___time_frame_raw`,
`f_compagnies_maritimes`.`fk_pays` AS `f_compagnies_maritimes___fk_pays_raw`,
`f_pays`.`nom_fr_FR` AS `f_compagnies_maritimes___fk_pays`,
`f_compagnies_maritimes`.`fk_ville` AS `f_compagnies_maritimes___fk_ville_raw`,
`f_villes`.`nom_ville` AS `f_compagnies_maritimes___fk_ville`,
`f_compagnies_maritimes`.`site_internet` AS `f_compagnies_maritimes___site_internet`,
`f_compagnies_maritimes`.`site_internet` AS `f_compagnies_maritimes___site_internet_raw`,
`f_compagnies_maritimes`.`compagnie_logo` AS `f_compagnies_maritimes___compagnie_logo`,
`f_compagnies_maritimes`.`compagnie_logo` AS `f_compagnies_maritimes___compagnie_logo_raw`,
(SELECT GROUP_CONCAT(lookup.nom_type_co SEPARATOR '//..*..//') FROM f_compagnies_maritimes_repeat_type_compagnie
LEFT JOIN f_types_compagnie AS lookup ON lookup.id = f_compagnies_maritimes_repeat_type_compagnie.type_compagnie WHERE f_compagnies_maritimes_repeat_type_compagnie.parent_id = `f_compagnies_maritimes`.`id`) AS f_compagnies_maritimes___type_compagnie,
(SELECT GROUP_CONCAT(id SEPARATOR '//..*..//') FROM f_compagnies_maritimes_repeat_type_compagnie WHERE parent_id = `f_compagnies_maritimes`.`id`) AS `f_compagnies_maritimes___type_compagnie_raw`, (SELECT GROUP_CONCAT(type_compagnie SEPARATOR '//..*..//') FROM f_compagnies_maritimes_repeat_type_compagnie WHERE f_compagnies_maritimes_repeat_type_compagnie.parent_id = `f_compagnies_maritimes`.`id`) AS f_compagnies_maritimes___type_compagnie_id,
(SELECT GROUP_CONCAT(params SEPARATOR '//..*..//') FROM f_compagnies_maritimes_repeat_type_compagnie WHERE parent_id = `f_compagnies_maritimes`.`id`) AS `f_compagnies_maritimes___type_compagnie___params`,
`f_compagnies_maritimes`.`icone` AS `f_compagnies_maritimes___icone`,
`f_compagnies_maritimes`.`icone` AS `f_compagnies_maritimes___icone_raw`,
`f_compagnies_maritimes`.`ref_equasis` AS `f_compagnies_maritimes___ref_equasis`,
`f_compagnies_maritimes`.`ref_equasis` AS `f_compagnies_maritimes___ref_equasis_raw`,
`f_compagnies_maritimes`.`compagnie_statut` AS `f_compagnies_maritimes___compagnie_statut`,
`f_compagnies_maritimes`.`compagnie_statut` AS `f_compagnies_maritimes___compagnie_statut_raw`,
`f_compagnies_maritimes`.`parent` AS `f_compagnies_maritimes___parent_raw`,
`f_compagnies_maritimes_0`.`nom_compagnie` AS `f_compagnies_maritimes___parent`,
`f_compagnies_maritimes`.`compagnie_groupe` AS `f_compagnies_maritimes___compagnie_groupe`,
`f_compagnies_maritimes`.`compagnie_groupe` AS `f_compagnies_maritimes___compagnie_groupe_raw`,
`f_compagnies_maritimes`.`compagnie_gps` AS `f_compagnies_maritimes___compagnie_gps`,
`f_compagnies_maritimes`.`compagnie_gps` AS `f_compagnies_maritimes___compagnie_gps_raw`,
`f_compagnies_maritimes`.`formated_address` AS `f_compagnies_maritimes___formated_address`,
`f_compagnies_maritimes`.`formated_address` AS `f_compagnies_maritimes___formated_address_raw`,
`f_compagnies_maritimes`.`address` AS `f_compagnies_maritimes___address`,
`f_compagnies_maritimes`.`address` AS `f_compagnies_maritimes___address_raw`,
`f_compagnies_maritimes`.`id` AS slug
, `f_compagnies_maritimes`.`id` AS `__pk_val`
FROM `f_compagnies_maritimes`
LEFT JOIN `f_pays` AS `f_pays` ON `f_pays`.`alpha3` = `f_compagnies_maritimes`.`fk_pays`
LEFT JOIN `f_villes` AS `f_villes` ON `f_villes`.`id` = `f_compagnies_maritimes`.`fk_ville`
LEFT JOIN `f_compagnies_maritimes` AS `f_compagnies_maritimes_0` ON `f_compagnies_maritimes_0`.`id` = `f_compagnies_maritimes`.`parent`
WHERE ( (MATCH(`f_compagnies_maritimes`.`nom_compagnie`) AGAINST ('test*' IN BOOLEAN MODE) OR MATCH( `f_pays`.`nom_fr_FR`) AGAINST ('test*' IN BOOLEAN MODE) OR MATCH( `f_villes`.`nom_ville`) AGAINST ('test*' IN BOOLEAN MODE) OR MATCH( `f_compagnies_maritimes`.`site_internet`) AGAINST ('test*' IN BOOLEAN MODE) OR MATCH( (SELECT GROUP_CONCAT(lookup.nom_type_co SEPARATOR '//) AGAINST ('test*' IN BOOLEAN MODE)) )
ORDER BY `f_compagnies_maritimes`.`nom_compagnie` ASC LIMIT 0, 100